0

我正在尝试实现 Facebook 对话提要,但它没有显示任何内容。我已关注:

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

和:

http://developers.facebook.com/docs/reference/dialogs/feed/

这是我的代码:

 -(void) facebookPost{


    NSString *kAppId = [[NSString alloc] initWithString:@"383032031757454"];

    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   kAppId, @"app_id",
                                   @"http://developers.facebook.com/docs/reference/dialogs/", @"link",
                                   @"http://fbrell.com/f8.jpg", @"picture",
                                   @"Facebook Dialogs", @"name",
                                   @"Reference Documentation", @"caption",
                                   @"Using Dialogs to interact with users.", @"description",
                                   nil];

    [facebook dialog:@"feed" andParams:params andDelegate:self];

}

非常感谢您的帮助。

弗洛伊

4

1 回答 1

0

我想你必须像下面一样设置 accessToken

[params setObject:facebook.accessToken forKey:@"access_token"];

[facebook dialog:@"feed" andParams:params andDelegate:self];
于 2012-06-27T10:04:40.493 回答