iphone:FBConnect 自动发布到用户墙
我想从我的 iPhone 应用程序自动发布到用户墙(没有“发布”“跳过”对话框)。我怎样才能做到这一点?
i want to auto post to a user wall from my iphone applications ( without that "publish" "skip" dialog box ). how i can do that ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该在实现
FBSessionDelegate
和FBRequestDelegate
的类中调用以下内容:这就是对 fb post 的调用(应该在同一个类中使用):
如果您想在其他用户的墙上发布消息,您应该在您的 params 字典中包含“uid”参数。请参阅http://developers.facebook.com/docs/reference/rest /stream.publish/
PS iPhone 中有所有必要的示例Facebook connect SDK示例代码,所以请不要害怕调查一点点;)
the following should be called in the class that implements
FBSessionDelegate
andFBRequestDelegate
:And that is the call for fb post (should be used in the same class):
If you want to post a message on the wall of other user you should include "uid" parameter in your params dictionary. Please consult http://developers.facebook.com/docs/reference/rest/stream.publish/
P.S. There are all the necessary examples in the iPhone Facebook connect SDK sample code, so please do not afraid to investigate just a little bit ;)