当用户在我的应用程序中登录Facebook时,他们可以访问他们朋友的列表,选择朋友,然后按完成。 UIView显示所选朋友的名单。我希望应用程序在所选朋友的墙上发布消息,或者更好地发送私人消息或请求。我该怎么做?我真的无法理解,我找不到任何具体的示例代码。我试过这个:
- (void)postwall
{
NSString *string = @"I reached a score of ";
string = [string stringByAppendingString:[NSString stringWithFormat:@"%d", highscore]];
string = [string stringByAppendingString:@" can you beat me?"];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
//kAppId, @"app_id",
@"https://developers.facebook.com/docs/reference/dialogs/", @"link",
@"http://fbrell.com/f8.jpg", @"picture",
@"Watch Ma Balls", @"name",
@"How long can you keep out of the way of ma balls for", @"caption",
string, @"description",
nil];
[facebook dialog:@"feed" andParams:params andDelegate:self];
}
但是[facebook对话框,“Facebook”给了我一些问题。当我使用SDK导入文件时,我会遇到其他错误。