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

前端 未结 5 1535
醉话见心
醉话见心 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:20

    To stop easily this issue, I just added "version : 'v1.0' " in my FB.init like this:

    window.fbAsyncInit = function() {
      FB.init({
        appId: '*****', 
        cookie     : true,  // enable cookies to allow the server to access 
                            // the session
        xfbml      : true,  // parse social plugins on this page
        version    : 'v1.0' // use version 2.0
      });
    };
    

    Of course this is temporary and need to look through the different documentations as suggested by Asymmetric

提交回复
热议问题