开发者

iphone posting link to facebook wall - image

开发者 https://www.devze.com 2023-03-23 13:25 出处:网络
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 g

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 o开发者_高级运维f 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.

iphone posting link to facebook wall - image

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

iphone posting link to facebook wall - image

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

精彩评论

暂无评论...
验证码 换一张
取 消