iphone发布链接到Facebook墙壁 - 图像 [英] iphone posting link to facebook wall - image
问题描述
我通过fbgraph API发布了我的fb帐户的链接。事情是,当我发布链接到fb,一个图标出现在该链接的左侧,例如,如果我发布了www.google.com,那么谷歌图像出现在链接的左侧。 p>
如何将默认图标更改为我想要的图标? (或)从网站获取的默认图像位置是什么。
任何想法?
谢谢
您可以在Facebook中设置您的应用程序。
https://developers.facebook.com/apps
这是你的应用程序图标。
例如我的是一个巨大的纵行; - )
要添加图片到您的帖子只需添加参数@图片并填写你想要看到的照片的网址。
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@myFacebookAppId,@app_id,
@http://www.homepage.com,@link,
@http // www.homepage.com / sillypicture.png,@picture,
@name的帖子,@name,
@我的帖子标题,@caption,
@我的帖子内容,@description,
@我的消息,@message,
nil];
[[[myAppDelegate sharedDelegate] facebook]对话框:@feedandParams:params andDelegate:self];
I am posting a link to my fb account via fbgraph API. The thing is that when I post the link to fb, an icon is appearing on left side of that link i.e, for example if I post www.google.com ,then the google image is appearing in left side of the link.
how to change that default icon to my desired icon ? (or) what is the default image location it is taking from the site. Any idea ?
Thanks
You can set in facebook for your app.
https://developers.facebook.com/apps
It is your app icon.
For example mine is a giant wale ;-)
To add a picture to your post just add the parameter @"picture" and fillin the url to the picture you want to see.
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"myFacebookAppId", @"app_id",
@"http://www.homepage.com", @"link",
@"http//www.homepage.com/sillypicture.png", @"picture",
@"name of the post", @"name",
@"caption of my post", @"caption",
@"content of my post", @"description",
@"my message", @"message",
nil];
[[[myAppDelegate sharedDelegate] facebook] dialog:@"feed" andParams:params andDelegate:self];
这篇关于iphone发布链接到Facebook墙壁 - 图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!