![](/img/trans.png)
[英]Post on Facebook wall using UIActivityVIewController and FBConnect showing in different format?
[英]Post to user's Facebook wall with iPhone using latest FBConnect SDK
我很难找到FBConnect iPhone SDK的任何好文档。 我已经设置了SDK来获取用户的权限,但做一个简单的帖子就是逃避我。 我能找到的只是PHP Web SDK的文档。
任何人都可以向我指出iPhone SDK的一些文档,或者让我知道如何使用最新的图表FBConnect SDK发布到用户墙?
谢谢!
您是否在facebook-ios-sdk
的sample
目录下查看了DemoApp? 有一个可能有帮助的publishStream
方法。
或者,你可以使用
- (void)requestWithGraphPath:(NSString *)graphPath
andParams:(NSMutableDictionary *)params
andHttpMethod:(NSString *)httpMethod
andDelegate:(id <FBRequestDelegate>)delegate;
像这样:
[_facebook requestWithGraphPath:@"[user_id]/feed"
andParams:[NSMutableDictionary dictionaryWithObject:@"test wall post" forKey:@"message"]
andHttpMethod:@"POST"
andDelegate:self];
发表评论到[user_id]
的墙上。
你知道这个,详细说明:
NSMutableDictionary* params1 = [NSMutableDictionary dictionaryWithObjectsAndKeys:
appId, @"api_key",
@"Please join me...", @"message",
@"https://www.mybantu.com", @"link",
@"https:/www.mybantu.com/myphoto.png", @"picture",
@"my profile", @"name",
@"hi to all", @"description",
// @"100001309042820", @"target_id",
nil];
[facebook requestWithGraphPath:@"[friend_ID]/feed" andParams:params1 andHttpMethod:@"POST" andDelegate:self];
我们不能在这里使用Facebook个人资料或照片,从其他网站获取或您自己的网站个人资料。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.