用iOS Facebook SDK发贴到朋友墙 [英] Post to Friend's Wall with iOS Facebook SDK

查看:128
本文介绍了用iOS Facebook SDK发贴到朋友墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用iOS Facebook SDK的对话框方法发布到活动用户的朋友的墙壁?也就是说,假设已经授予正确的权限?



使用对话框方法,使用feed作为行动,似乎只允许我发布到用户的流,而不是任何人流泪。我缺少什么?



[facebook dialog:feedandParams:... andDelegate:self] / p>

params 仅指定帖子的内容;似乎没有任何方式来指定我要发布的配置文件。

解决方案

通过图形路径发布在朋友墙上没有更多的工作
你的饲料动作工作..有参数像



  NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@Checkout我的APP_NAME,@name,
@访问我的APP_NAME,@caption,
[NSString stringWithFormat:@我刚加入APP_NAME可以吗?],@description,
@http:// www。 friendsmash.com/images/logo_large.jpg,@picture,
@FRIEND'S_FB_USER_ID,@to,

//为Deep Linking添加链接参数
[NSString stringWithFormat:@https://YOUR_WEB_LINK.com/],@link,
nil];

干杯...!


Is it possible to use the iOS Facebook SDK's dialog method to post to the active user's friends' walls? That is, assuming the correct permissions have been granted?

Using the dialog method, with "feed" as the action, only seems to allow me to post to the user's stream, not to anyone elses. What am I missing?

[facebook dialog:"feed" andParams:... andDelegate:self]

The params only specify the content of the post; there doesn't seem to be any way to specify the profile I want to post to.

解决方案

post on friends wall through graph path no more works your feed action works.. have params like

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   @"Checkout my APP_NAME", @"name",
                                   @"Come visit my APP_NAME", @"caption",
                                   [NSString stringWithFormat:@"I just joined APP_NAME Can you?"], @"description",
                                   @"http://www.friendsmash.com/images/logo_large.jpg", @"picture",
                                   @"FRIEND'S_FB_USER_ID", @"to",

                                   // Add the link param for Deep Linking
                                   [NSString stringWithFormat:@"https://YOUR_WEB_LINK.com/"], @"link",
                                   nil];

Cheers...!

这篇关于用iOS Facebook SDK发贴到朋友墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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