用iPhone使用最新的FBConnect SDK发布到用户的Facebook墙 [英] Post to user's Facebook wall with iPhone using latest FBConnect SDK
问题描述
任何人都可以指出一些iPhone SDK的文档,或者让我知道如何发布到用户墙使用最新的图形FBConnect SDK?
谢谢!
您在 facebook-ios-sdk
中的样本
目录下查看DemoApp?有一个 publishStream
方法可能有帮助。
或者,您可以使用
$ (NSString *)graphPath
和Params :( NSMutableDictionary *)params
和HttpMethod :( NSString *)httpMethod
andDelegate:(id< FBRequestDelegate>)delegate;
像这样:
[_ facebook requestWithGraphPath:@[user_id] / feed
andParams:[NSMutableDictionary dictionaryWithObject:@test wall postforKey:@message]
andHttpMethod:@POST
andDelegate:self];
发表评论到 [user_id]
的墙。
I'm having a tough time finding any good documentation for the FBConnect iPhone SDK. I have the SDK set up to get the permissions from the user but making a simple post is escaping me. All I can find is documentation for the PHP web SDK.
Can anybody point me to some documentation for the iPhone SDK or let me know how I can post to a users wall using the latest graph FBConnect SDK?
Thanks!
Have you looked at DemoApp under the sample
directory in facebook-ios-sdk
? There's a publishStream
method that might help.
Or, you can use
- (void)requestWithGraphPath:(NSString *)graphPath
andParams:(NSMutableDictionary *)params
andHttpMethod:(NSString *)httpMethod
andDelegate:(id <FBRequestDelegate>)delegate;
like this:
[_facebook requestWithGraphPath:@"[user_id]/feed"
andParams:[NSMutableDictionary dictionaryWithObject:@"test wall post" forKey:@"message"]
andHttpMethod:@"POST"
andDelegate:self];
to post a comment to [user_id]
's wall.
这篇关于用iPhone使用最新的FBConnect SDK发布到用户的Facebook墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!