当我在墙上发布内容时,我想在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];
}
答案 0 :(得分: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];