Facebook 邀请好友错误:抱歉,无法处理您的请求

发布于 2024-10-04 18:34:14 字数 998 浏览 3 评论 0原文

我有以下代码允许用户邀请他们的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

给不了的爱 2024-10-11 18:34:14

似乎这是一个已知问题: 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.

日记撕了你也走了 2024-10-11 18:34:14

另一件事是,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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文