0

当我在墙上发布内容时,我想在 Facebook 个人资料中显示我的应用程序图标。我已经完成了 facebook 开发者帐户并完成了创建新应用程序部分,我已在其中提交了我的应用程序图标。但是当我在墙上发帖时,我只能看到字符串而不是图标。

    here is my snippet of code.

    -(IBAction)btnPost:(id)sender
    {
        NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                       @"myPB", @"name",
                                       @"http://www.my-t3.com/", @"link",strFbmsg, @"message",
                                       nil];
        [appdelegate._facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
    }
4

1 回答 1

0

在您的字典中添加一个带有指向您图像的 http 链接的新对象,并使用键“图片”插入它。

例子:

     [[NSMutableDictionary alloc] initWithObjectsAndKeys:
     @"https://developers.facebook.com/ios", @"link",
     @"https://developers.facebook.com/attachment/iossdk_logo.png", @"picture",
     @"Facebook SDK for iOS", @"name",
     @"Build great social apps and get more installs.", @"caption",
     @"The Facebook SDK for iOS makes it easier and faster to develop Facebook integrated iOS apps.", @"description",
     nil];
于 2012-10-05T13:08:10.880 回答