Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No icon when sharing with Sharekit

I am trying to do a really basic sharing on Facebook from my app, with ShareKit. Most things looks ok, but I don't understand why there's no icon to the left, just the small one in the footer. I can't find a way to put it there. How do I customize it? For me it looks like the left picture I attach, but I would like to have it like the right.

    NSURL *url = [NSURL URLWithString:@"http://itunes.apple.com/us/app/...?mt=8"];
item = [SHKItem URL:url title:[NSString stringWithFormat:@"I'm playing someGame on my iPhone! My Highscore is %i, think you can beat it?", 456]];

[SHKFacebook shareItem:item];

For me it's like the left, but I would like to have like the right one.

like image 768
Snilleblixten Avatar asked Nov 04 '22 18:11

Snilleblixten


1 Answers

You cannot out of the box. This dialog is provided by the Facebook SDK, which is just built into ShareKit's files - unchanged.

I am sure if you do a bit of digging around in ShareKit's folders you'll find the Facebook SDK, but I am not sure if you're allowed to edit its appearance (I know you aren't allowed to change the Share button for example)

With regards to the icon - this is loaded from the web and cannot be changed. The dialog comes from the Facebook website directly and somehow intercepting it and putting it on your own website would create an invalid request.

Edit: Based on your lovely edit (love the spray annotations :P), you can achieve this in the settings page for your app in Facebook. To do this, head over to Facebook's developer app (should be in the applications section of your Facebook account) and upload a large resolution icon for your app. Remember, it asks for a small 16x16 icon and the same one in different sizes, if it finds no icon with the sufficient size it'll display nothing.

like image 114
Pripyat Avatar answered Nov 09 '22 13:11

Pripyat