2

我正在开发一个应用程序,在该应用程序中,我必须通过我的帐户向朋友的墙发布问候。

我怎样才能做到这一点?

4

1 回答 1

1
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];

我使用 key like.message,picture ..etc 请参阅http://developers.facebook.com/docs/reference/api/post/

于 2012-11-01T10:04:39.663 回答