本文介绍了如何在iPhone的Facebook好友墙上发布消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用NEWFacebook SDK选择朋友的target_id在Facebook好友墙上发布消息。
提前致谢。
How to post message on Facebook friends wall using NEWFacebook SDK selecting target_id of friend.Thanks in advance.
推荐答案
NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:4];
[variables setObject:[NSString stringWithFormat:@"Hi."] forKey:@"message"];
[variables setObject:@"http://icon.png" forKey:@"picture"]; //http://tinyurl.com/45xy4kw
[variables setObject:@"Create post" forKey:@"name"];
[variables setObject:@"Write description." forKey:@"description"];
[_facebook requestWithGraphPath:[NSString stringWithFormat:@"/%@/feed",facebook_user_id]
andParams:variables
andHttpMethod:@"POST"
andDelegate:self];
这篇关于如何在iPhone的Facebook好友墙上发布消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!