2011-11-04 49 views
1

我正在構建一個FB應用程序。我在我的網站上使用JS SDK邀請朋友加入我的FB應用程序。apprequest後的facebook鏈接

FB.ui({ 
    method: 'apprequests', 
    display: 'iframe', 
    access_token: resp.accessToken, 
    message: 'Please join Bashman' 
}, function(response){ 
    //nothing important here 
}); 

當我邀請一些FB的朋友,然後對他們的通知欄,他們有一個鏈接,它指向我的應用程序,而不是讓他們接受我的邀請。

因此,用戶會立即重定向到我的應用程序,而不是有可能首先接受邀請。

我已經做了兩個應用程序請求的截圖中,第一個是不是我的,它重定向像預期的那樣在接受邀請區,它指向:

http://www.facebook.com/?sk=apps&scrollto=confirm_162129010502890&ref=notif&notif_t=app_request

下一個是從我的FB的應用程序,它直接指向我的應用程序,而不是詞義區域:

http://apps.facebook.com/orgbashman/?request_ids=293075284044707%2C182589535157904&ref=notif&notif_t=app_request enter image description here

我試圖同時使用

REDIRECT_URI

參數

FB.ui({ 
    method: 'apprequests', 
    display: 'iframe', 
    access_token: resp.accessToken, 
    message: 'Please join Bashman', 
    redirect_uri: 'http://www.facebook.com/sk=apps&scrollto=confirm_134863713284095&ref=notif&notif_t=app_request', 
}, function(response){ 
    //nothing important here 
}); 

,但沒有運氣。

如何讓通知區域中的鏈接指向接受FB應用程序按鈕,而不是直接指向我的FB應用程序?

回答

2

不是重寫被Facebook做出的博客文章中,我只是去鏈接到它:

http://developers.facebook.com/blog/post/464/

我有一個應用程序我建立測試了這一點,我得到了相同的結果和你一樣。但是,當編輯應用程序設置時,只要我在中禁用了Upgrade to Requests 2.0,請求就會按照您的要求工作。

這裏還有什麼可能性的詳細說明請提供2.0:

http://www.insidefacebook.com/2011/02/16/facebook-introduces-upgrade-to-requests-2-0-to-simplify-re-engagement/