2012-01-27 54 views
1

我遇到了一個奇怪的錯誤... 我要求的publish_actions權限(我想發佈在用戶的時間線上他剛剛登錄diveboard.com的潛水)我可能希望它能夠批量工作(比如發佈我所有的潛水),我希望它在後面完成,而不是通過前面。我仍然想要交互式請求前端的許可。不能請求額外的權限publish_actions單獨

當我問只爲「publish_actions」,在彈出的打開和關閉立即和明顯的權限未被授予(隱私檢查)

FB.login(function(response) { 
    if (response.perms != undefined && response.perms.match(/publish\_actions/)!=null) { 
     G_user_fbtoken = getFBCookie().accessToken; 
     fbtimelinepublish_dive(); 
     } else { 
     // user cancelled login 
     diveboard.notify("Unsufficient privileges","Could not get the adequate permissions to publish this action on your timeline"); 
     toggle_fb_spinner(); 
     return; 
     } 
    }, {scope:'publish_actions'}); 
}else{ 
    fbtimelinepublish_dive(); 
} 

任何線索!?

更新:我試着用:適用範圍: 'create_event,publish_actions,publish_stream,rsvp_event'

,並得到

auth window

resulting permisions

+1

所以我自我回答解決方案: 在Open Graph Beta中,'publish_actions'權限只能向開發人員和測試應用的用戶請求。如果有任何其他用戶的請求,'publish_actions'權限將被忽略。 和我搬到了新的認證窗口.... 希望這會爲他人節省一些挫折.... – 2012-01-27 16:20:07

回答

1

所以我自我回答解決方案:在Open Graph Beta中,只能向開發人員和您的應用的測試用戶請求「publish_actions」權限。如果有任何其他用戶的請求,'publish_actions'權限將被忽略。我搬到了新的認證窗口....希望這可以節省一些其他人的挫折....