gpt4 book ai didi

iphone - 没有好友列表的 FBWebDialog

转载 作者:行者123 更新时间:2023-11-29 10:59:09 24 4
gpt4 key购买 nike

在我的应用程序中,我想使用 FBWebDialog 向多个用户发送“应用程序请求”。但我不想从 FBWebDialog 附带的列表中选择那些用户。我只想将好友从 FBfriendpicker viewcontroller 传递到 FBWebDialog 并从那里发送。是否可以?我怎样才能做到这一点?谢谢。

最佳答案

您需要按照下面引用的两个页面中的说明设置“to”参数,它将禁用下拉好友列表并仅发送给一个目标受众

https://developers.facebook.com/docs/howtos/send-requests-using-ios-sdk/

Sending targeted requests

You can filter the suggested list down or target one user. To filter down the list you can pass in a parameter, suggestions that contains a comma-separated list of friends to show in the selection. To target one recipient, pass that user's ID in a to parameter

并且还记录在请求对话框页面上

to A user ID or username, or a comma-separated list of them. These may or may not be a friend of the sender. If this is specified by the app, the sender will not have a choice of recipients. If not, the sender will see a multi-friend selector and will be able to select a maximum of 50 recipients. (Due to URL length restrictions, the maximum number of recipients is 25 in IE7/IE8 when using a non-iframe dialog.)

facebook 游戏部分的另一个文档带有图片 https://developers.facebook.com/docs/tutorials/ios-sdk-games/requests/

NSMutableDictionary* params =   [NSMutableDictionary dictionaryWithObjectsAndKeys:
// 2. Optionally provide a 'to' param to direct the request at
@"286400088", @"to", // Ali
nil];

关于iphone - 没有好友列表的 FBWebDialog,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16814769/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com