我深化發展一個Facebook應用程序的畫布用新的身份驗證對話框:https://apps.facebook.com/evaway_us/顯示應用畫布頁授權彈出前
我的問題是,用戶始終看到任何東西之前批准的應用程序,我有一個可怕的轉化率。
如何在任何需要授權的用戶操作之前讓畫布應用顯示頁面?
喜歡這個:http://apps.facebook.com/tradablebits/
我深化發展一個Facebook應用程序的畫布用新的身份驗證對話框:https://apps.facebook.com/evaway_us/顯示應用畫布頁授權彈出前
我的問題是,用戶始終看到任何東西之前批准的應用程序,我有一個可怕的轉化率。
如何在任何需要授權的用戶操作之前讓畫布應用顯示頁面?
喜歡這個:http://apps.facebook.com/tradablebits/
我終於找到了解決辦法:
我有「認證引薦」在新的驗證對話菜單激活。 只要我取消選中此選項,我就可以在授權彈出窗口之前渲染我的畫布頁面。
使用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.
}
});