我有下面的代碼,以允許用戶邀請thier Facebook上的朋友:Facebook上邀請朋友錯誤:對不起,您的請求無法處理
function create_fb_friends() {
FB.init({
appId : 'xxxxxxx',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
FB.ui({
method: 'fbml.dialog',
fbml: (
'<fb:request-form action="/" target="_top"\
method="POST"\
invite="true"\
type="MyApp Application"\
content="Checkout this new application.">\
<fb:multi-friend-selector\
showborder="false"\
actiontext="Invite friends to...">\
</fb:request-form>'
),
size: {width:640,height:480}, width:640, height:480
});
}
當我點擊發送邀請,我從只得到一個錯誤Facebook:
Sorry, your request could not be processed.
Please try again
我沒有任何線索可以解決問題,因爲在錯誤中沒有真正的反饋。
url表單我的動作是「/」,這是我的應用程序的根。我的應用程序是獨立的,這可能是一個問題,不是嗎? – rtacconi 2010-12-01 16:22:08