Search for pages via Graph API, response empty

后端 未结 2 871
耶瑟儿~
耶瑟儿~ 2020-12-07 04:27

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

相关标签:
2条回答
  • 2020-12-07 04:55

    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
    0 讨论(0)
  • 2020-12-07 05:01

    Try this instead :
    https://graph.facebook.com/pages/search?q=[PageName]&fields=id,name,link,location&access_token=[access_token]


    it worked for me

    0 讨论(0)
提交回复
热议问题