1

当用户在我的应用程序上登录 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”给我带来了问题。当我使用 ought SDK 导入文件时,我得到了其他错误。

4

0 回答 0