用iPhone使用最新的FBConnect SDK发布到用户的Facebook墙上

我很难find任何FBConnect iPhone SDK的良好文档。 我有SDK设置为从用户获得权限,但做一个简单的职位是逃避我。 我只能findPHP web SDK的文档。

任何人都可以指向我的iPhone SDK的一些文档或让我知道如何使用最新的图FBConnect SDK发布到用户墙?

谢谢!

你有没有在facebook-ios-sdksample目录下看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的个人资料或照片,从其他网站或您自己的网站configuration文件。