如何在iPhone的Facebook好友墙上发布消息 [英] How to post message on Facebook friends wall in iPhone

查看:134
本文介绍了如何在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好友墙上发布消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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