5

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.

4

1 回答 1

2

你不能开箱即用。此对话框由 Facebook SDK 提供,它只是内置在 ShareKit 的文件中 - 未更改。

我敢肯定,如果您在 ShareKit 的文件夹中进行一些挖掘,您会找到 Facebook SDK,但我不确定您是否可以编辑其外观(我知道您不允许更改共享按钮例子)

关于图标 - 这是从网络加载的,无法更改。该对话框直接来自 Facebook 网站,并且以某种方式拦截它并将其放在您自己的网站上会创建一个无效请求。

编辑:根据您可爱的编辑(喜欢喷雾注释:P),您可以在 Facebook 应用程序的设置页面中实现这一点。为此,请前往 Facebook 的开发者应用程序(应该在您 Facebook 帐户的应用程序部分)并为您的应用程序上传一个大分辨率图标。请记住,它要求一个 16x16 的小图标和不同大小的相同图标,如果它没有找到足够大小的图标,它将什么也不显示。

于 2011-07-05T17:18:25.453 回答