2
我設法請求publish_actions權限,但由於它可從帳戶設置頁面上的應用程序選項卡中撤銷,我還必須能夠檢查權限是否仍被授予。我嘗試了以下方法:如何檢查用戶是否已授予publish_actions權限
// Check for publish_actions extended permission
var query = FB.Data.query('select publish_actions from permissions where uid={0}', fbuid);
query.wait(function(rows) {
if(rows[0].publish_actions == 1) {
console.log('The user has granted the extended permission');
} else {
console.log('The user has not granted the extended permission');
}
});
此方法的實例與publish_stream權限有關,但不與publish_actions權限一起使用。如果有人能夠幫助我會很高興,我完全沮喪。
UPDATE type error。它的工作原理,對不起:]