2012-02-01 29 views

回答

2

我終於找到了解決辦法:

我有「認證引薦」在新的驗證對話菜單激活。 只要我取消選中此選項,我就可以在授權彈出窗口之前渲染我的畫布頁面。

0

使用JavaScript SDK,使用FB.getLoginStatus()函數來確定用戶應該看到的頁面。有關如何使用該功能的更多信息,請參閱http://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/

FB.getLoginStatus(function(response) { 
    if (response.status === 'connected') { 
    // the user is logged in and connected to your 
    // app, and response.authResponse supplies 
    // the user's ID, a valid access token, a signed 
    // request, and the time the access token 
    // and signed request each expire 
    var uid = response.authResponse.userID; 
    var accessToken = response.authResponse.accessToken; 
    } else if (response.status === 'not_authorized') { 
    // the user is logged in to Facebook, 
    //but not connected to the app 
    } else { 
    // the user isn't even logged in to Facebook. 
    } 
});