发布消息给朋友Facebook Wall post [英] Post Message on Friends Facebook Wall post

查看:145
本文介绍了发布消息给朋友Facebook Wall post的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理应用程序,我必须通过我的帐户向我的朋友发布问候语。

I am working on Application in which i have to post Greeting to my friends Wall post through My Account.

那我该如何执行呢?如果有人有想法请帮帮我。

So How can i Perform it ? If anyone have idea Please help me.

先谢谢。

推荐答案

试试这个

 NSMutableDictionary *parmaDic = [NSMutableDictionary dictionaryWithCapacity:4];
[parmaDic setObject:[NSString stringWithFormat:@"hello world"] forKey:@"message"]; // if you want send message  
[parmaDic setObject:@"http://icon.png" forKey:@"picture"];  // if you want send picture    
[parmaDic setObject:@"Create post" forKey:@"name"];         // if you want send name    
[parmaDic setObject:@"Write description." forKey:@"description"]; // if you want  description

[_facebook requestWithGraphPath:[NSString stringWithFormat:@"/%@/feed",facebook_user_id] 
                      andParams:parmaDic 
                  andHttpMethod:@"POST"
                    andDelegate:self];

我使用关键字like.message,图片..等请看 http://developers.facebook.com/docs/reference/api/post/

I use key like.message,picture ..etc please see http://developers.facebook.com/docs/reference/api/post/

这篇关于发布消息给朋友Facebook Wall post的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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