The global ID is not allowed. Please use the application specific ID instead

前端 未结 5 1530
醉话见心
醉话见心 2020-12-14 10:48

In Graph API 2.0

When I using new graph api to access my friends information, I got the message below.

Here, xxx is an user id.

{
  \"error\"         


        
5条回答
  •  伪装坚强ぢ
    2020-12-14 11:06

    For apps using API version 2.0 - you can only use the App-Scoped-ID to access data about a user on v2.0+

    If you're an existing app upgrading some calls from v1.0 to v2.0 you can continue to use the user IDs you received for your app's users - for non-users of your app you must use the app-scoped ID if you want to access their data, and make the call from the same app which was given that ID

    There's more information about how App Scoped IDs work here: https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api

提交回复
热议问题