如何使用app选择的多个收件人创建请求对话框 [英] How to create requests dialog with multiple recipients selected by app

查看:72
本文介绍了如何使用app选择的多个收件人创建请求对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

模拟人生社交有自己的朋友选择器。一旦你选择了你的朋友并点击了提交,就会抛出这个官方的Facebook请求对话框,其上有多个朋友,并且有一个复选框,上面写着在发送模拟人生社交请求之前不要询问......

The Sims Social has their own friend selector. And once you select your friends and hit submit, it throws up this official Facebook request dialog that has multiple friends on it and a checkbox that says "Don't ask before sending The Sims Social requests to..."

我如何复制这个?我已经尝试将数组发送到apprequests ui对话框,但是会出现错误消息:收件人太多。

How can I duplicate this? I've tried sending an array to the apprequests ui dialog, but that gives "Error Message: Too many recipients."

我没有使用Facebook好友选择器。我正在使用自己的并将其发送到apprequests对话框。模拟人生这样做,我无法重现它。

I'm not using the Facebook friend selector. I'm using my own and sending it to the apprequests dialog. The Sims does this, I just can't reproduce it.

FB.ui({
    method: 'apprequests',
    message: 'Send a gift',
    data: {},
    title: "Send a gift",
    to: uids[0] + "," + uids[1]
});

我用字符串列表1234,4567尝试了字段。我用阵列{1234,4567}尝试过它。但都不起作用。具有单个UID的数组工作正常。但是多个UID给出了错误消息:收件人太多。

I've tried the to field with a string list, "1234,4567". I've tried it with an array { 1234, 4567 }. But neither works. An array with a single UID works fine. But multiple UIDs gives "Error Message: Too many recipients."

推荐答案

我的猜测是你需要被Facebook列入白名单获得这种超级大国。模拟人生社交使用与您相同的参数,但能够指定多个收件人。您应该让Facebook为您的应用做同样的事情。

My guess is that you need to be whitelisted by Facebook to get this sort of super power. The Sims Social are using the same parameters as you do but have the ability to specify multiple recipients. You should ask Facebook to do the same for your app.

这篇关于如何使用app选择的多个收件人创建请求对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆