0

我有一個Facebook應用程序需要幾個權限(即讀取用戶commentsprofile picture,cover picture等)。這些是從我的應用程序的權限部分設置的。問題是,當用戶使用該應用程序時,被要求只允許訪問:Facebook應用程序權限錯誤

這個程序將得到:

您的基本信息

忽略所有其他權限,我原本需要。任何想法爲什麼是這樣的?

回答

1

在登錄用戶時設置權限列表。例如 -

FB.login(function(response) 
{ 
    if (response.authResponse) 
    { 
     console.log('Welcome! Fetching your information.... '); 
     FB.api('/me', function(response) 
     { 
      console.log('Good to see you, ' + response.name + '.'); 
     }); 
    } 
    else 
    { 
     console.log('User cancelled login or did not fully authorize.'); 
    } 
},{scope: 'email,user_likes'});