使用Facebook IOS SDK发贴给朋友墙 [英] Using The Facebook IOS SDK To Post To Friends Wall

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

问题描述

我正在使用Facebook IOS SDK,并希望获得最新的曝光度,我正在更新的应用程序。

I am using the Facebook IOS SDK and I want to gain maximum exposure for an app I currently updating.

如果用户尚未连接,应用程序会立即提示用户在应用程序加载时与Facebook连接。如果用户然后连接,我使用以下代码发送一个帖子到用户墙。

At the minute the app prompts the user to connect with facebook on the app load if the user is not already connected. If the user then connects I use the following code to send a Post to the users wall.

NSMutableDictionary *params = [NSMutableDictionary  dictionaryWithObjectsAndKeys:
                               @"http://itunes.apple.com/us/app/video-fx+/id530087007",@"link",
                               @"Video FX+ Live Video Editing",@"name",
                               @"Video FX+ is a fun, creative way to create stunning videos.",@"caption",
                               nil];
[self.facebook requestWithGraphPath:@"/me/feed"
                      andParams:params
                  andHttpMethod:@"POST"
                    andDelegate:self];

这是最好的方法吗?理想情况下,我希望该帖子出现在已经登录的用户的朋友墙上。

Is this the best approach? Ideally I want the post to appear on the friends wall of the user who has signed in.

以上工作或需要拉出用户列表的朋友然后循环通过该列表并将消息发布给每个用户?

Would the above work or do I need to pull a list of the users friends and then loop through that list and post the message to each individual user?

谢谢

推荐答案

发布到您自己的Feed,将向所有在线朋友显示该Feed,有可能(有时依赖于您最喜爱的Facebook最新/顶级故事由您的朋友选择),所以很可能会错过它。


另一方面,先把所有的朋友(我/朋友)拉过去,向所有的朋友发帖,然后迭代所有的朋友,并发贴消息是一个个不推荐的人可能有5000名朋友发贴5000墙贴可能会禁止/报告垃圾邮件您的申请。

Posting to your own feed, will display that feed to all your online friends likely (sometime depends on facebook Most Recent/ Top story selected by your friends) so chances are they can miss it.

On the other hand posting to all of your friends first by pulling all your friends (me/friends) and iterate over all friends and post the message is one by one is no recommended as person may have 5000 friends and posting 5000 wall post likely ban / report spam your application.

所以,更好地发布在自己的墙上。

So, its better to post on your own wall.

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

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