0
我將Facebook連接放置在我的網頁上。我檢查用戶是否授予Facebook權限,但是我的網站認爲用戶沒有授予權限:facebook整合轉發到錯誤頁面
它應該在用戶授予權限後轉發到mysite.com,而是轉到yoursite.com。
FB.Event.subscribe('auth.login', function(response) {
if (response.perms) {
window.location = "http://www.mysite.com";
// user is logged in and granted some permissions.
// perms is a comma separated list of granted permissions
}
else{
window.location = "http://www.yoursite.com";
}
});