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
我不知道问题可能出在哪里,因为在 Facebook 中没有真正的反馈错误。
I have the following code to allow users to invite thier Facebook friends:
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
});
}
When I click on send invitation, I get only an error from Facebook:
Sorry, your request could not be processed.
Please try again
I do not have any clue where the problem could be, since there is not a real feedback in the error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎这是一个已知问题: http://bugs.developers.facebook .net/show_bug.cgi?id=10874
不幸的是,它已经开放多年,没有真正的反馈/行动。
旁注 - 该错误似乎表明“action”参数存在问题。我将我正在使用的 URL 替换为由 bit.ly 缩短的 URL,它似乎有效。
It seems as though this is a known problem: http://bugs.developers.facebook.net/show_bug.cgi?id=10874
Unfortunately it has been open for ages with no real feedback / action.
Side note - that error seems to point to a problem with the 'action' parameter. I replaced the URL's I was using with URL's shortened by bit.ly and it seems to be working.
另一件事是,fb:multi-friend-selector 现在即将退出,将不再可用,如此处所述。
https://developers.facebook.com/docs/reference/fbml/ multi-friend-selector/
只需使用此页面上的示例即可。
https://developers.facebook.com/docs/reference/dialogs/requests/
Another thing the fb:multi-friend-selector is on its way out now and will no longer be available as mentioned here.
https://developers.facebook.com/docs/reference/fbml/multi-friend-selector/
Just using the example on this page would do.
https://developers.facebook.com/docs/reference/dialogs/requests/