Canvas 应用程序:向特定 FB 用户 ID 发送应用程序请求

发布于 2024-12-08 11:21:36 字数 655 浏览 1 评论 0原文

正在开发 Canvas 应用程序,但遇到了困难。应用程序执行某些功能并获得应用程序请求必须发送到的用户 ID 列表。按照本页上的步骤操作

http://developers.facebook.com/docs/reference/ dialogs/requests/

我相信我可以在“收件人”字段中指定用户 ID,并且它会起作用。事实上,该页面上的示例也说明了这一点。但是,当我从现在处于沙盒模式的应用程序中尝试它时,它会跳闸并显示“收件人太多”。

有问题的代码很简单。一些发帖者表示,您的应用程序需要被列入白名单才能发挥作用。我找不到任何允许我提交申请的页面/功能。为每个用户弹出对话框不是一个选项!请帮忙!

代码如下

FB.ui({method: 'apprequests', message: '试试我很酷的应用程序', 至:'123,1244', }, 请求回调);

当我使用一个 fbuserid 时它会起作用,当给出多个 fbuserid 时它会给出“太多接收者”。

Am developing a Canvas App and have hit a wall. The application performs some function and arrives at a list of user id's to which application requests must be sent. Following the steps on this page

http://developers.facebook.com/docs/reference/dialogs/requests/

I am led to believe that I can specify the userid's in the "to" field and it will work. Infact, the sample on that page also illustrates this. However, when I try it from my application which is in sandbox mode right now - it trips and says "Too many recipients.".

The code in question is trivial. Some posters have said that your application needs to be white-listed for this to work. I couldnt find any page / function that allowed me to submit my application. Popping up the dialog for each user is not an option! please help!

The code is below

FB.ui({method: 'apprequests',
message: 'Try out my cool app',
to: '123,1244',
}, requestCallback);

It works when I use one fbuserid, gives "too many recepients" when give more than one.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

回梦 2024-12-15 11:21:36

向多个用户发送应用程序请求的可能性是全新的。两天前才在这里宣布:http://developers.facebook.com/blog/post /569/

您必须在应用设置中专门启用 Requests 2.0。也有可能它根本还没有发挥作用。

The possibility to send an app request to more than one user is brand new. It was announced only two days ago here: http://developers.facebook.com/blog/post/569/

You have to specifically enable Requests 2.0 in the app settings. It's also possible that it's simply not working yet.

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