Skip to main content
 首页 » 编程设计

Facebook Open Graph 事件搜索

2024年11月24日128freeliver54

在 Graph API Explorer 上我可以执行此搜索:search?q=Barcelona&type=event

但是当我对应用程序访问 token 尝试相同的操作时,我收到此错误:

{ 
   "error": { 
      "message": "(#200) Must have a valid access_token to access this endpoint", 
      "type": "OAuthException", 
      "code": 200 
   } 
} 

其他搜索效果很好。

请您参考如下方法:

2017-11-27更新:
由于 Facebook 不再允许基于位置的事件搜索,我建议使用 https://github.com/tobilg/facebook-events-by-location-core

原始答案:

请引用https://developers.facebook.com/docs/reference/api/search/#access_tokens

其中指出,除页面和地点之外的所有搜索都需要用户访问 token 。