在Facebook墙上发布消息从iPhone [英] Post message on facebook wall from iPhone
本文介绍了在Facebook墙上发布消息从iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Facebook墙上发布一些消息。
I want to post some message on Facebook wall.
我可以从iPhone登录并与Facebook连接。但是我很难找到解决方案。
I am able to log in and connect with Facebook from iPhone. But I have hard luck to finding out the solution.
你能告诉我如何实现这个功能吗?
Can you please tell me how I can achieve this functionality?
推荐答案
假设您有一个有效的FBSession对象:
Assuming that you have a valid FBSession Object:
FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
dialog.delegate = self; dialog.userMessagePrompt = @"Example prompt";
dialog.attachment = @"{\"name\":\"Facebook Connect for iPhone\"," "\"href
\":\"http://developers.facebook.com/connect.php?tab=iphone\"," "\"caption\":\"Caption
\",\"description\":\"Description\"," "\"media\":[{\"type\":\"image\"," "\"src
\":\"http://img40.yfrog.com/img40/5914/iphoneconnectbtn.jpg\"," "\"href
\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}]," "\"properties \":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}"; // replace this with a friend's UID // dialog.targetId = @"999999";
[dialog show];
这篇关于在Facebook墙上发布消息从iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文