Search for pages via Graph API, response empty

好久不见. 提交于 2019-11-26 22:09:34

问题


When I send the request search?type=page&q=test&access_token=[access_token] to Graph API, the response is empty data. Is there a problem with the access token or is there something missing from the request URI? I also can't seem to find a comprehensive documentation of the search method, only that for places search.

This is the response I'm getting:

{
  "data": [
  ]
}

回答1:


Facebook made a lot of changes recently:

https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#search-4-4

You can no longer use the /search endpoint with the following object types:

  • event
  • group
  • page
  • user


来源:https://stackoverflow.com/questions/49704996/search-for-pages-via-graph-api-response-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!