Facebook提要对话框问题

时间:2012-06-27 10:00:28

标签: objective-c ios facebook

我正在尝试实施Facebook对话框提要,但它没有显示任何内容。我跟着:

Post to user's Facebook wall with iPhone using latest FBConnect SDK

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];

}

非常感谢你的帮助。

Froi

1 个答案:

答案 0 :(得分:0)

我认为你必须像下面那样设置accessToken

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

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