gpt4 book ai didi

iOS Facebook 应用缩放图标

转载 作者:行者123 更新时间:2023-11-29 02:21:50 26 4
gpt4 key购买 nike

我在 Facebook 共享方面遇到一些问题。发布的消息通过浏览器(iOS、PC 和 Mac 版本)看起来很正常:

Browsers

只有 FB iOS 应用程序显示错误:

enter image description here

这可能是什么原因?

UPD:我尝试了 200、600 和 158 像素的图像。结果: result

我的代码是:

public LevelUPFeed (int reachedLevel, string pictureURL) //LevelUPFeed : IFeed
{
_linkDescription = string.Format("Just reached Level {0} ", reachedLevel);
_picture = pictureURL;
}

public void SendFeed (IFeed feed, Action<bool> callback)
{
//... callback creating

FB.Feed (
feed.ToId, feed.Link,
feed.LinkName, feed.LinkCaption,
feed.LinkDescription, feed.Picture,
feed.MediaSource, feed.ActionName,
feed.ActionLink, feed.Reference,
feed.Properties, convertedCallback);
}

feed = new LevelUPFeed (level, pictureUrl);
FBManager.SendFeed (feed, onFeedSent);

feed.LinkName 是“游戏名称”,feed.Linkhttps://facebook.com ”,feed.LinkName 是“升级! ”。所有其他字符串都是 string.Empty

图片链接:

最佳答案

Open Graph Sharing Best Practices documentation 中有图像规范.使用 PNG 或 JPG、72 dpi、600 x 600 像素作为提要图像。 Feed Dialog文档说 200 x 200,但最佳实践文档中特别提到了游戏提要。

There are two different image sizes to use for game apps:

Open Graph Stories Images appear in a square format. Image ratios for these apps should be 600 x 600 px. Non-open Graph Stories Images appear in a rectangular format. You should use a 1.91:1 image ratio, such as 600 x 314 px.

如果这不能回答您的问题,您可以发布您的 API 调用代码吗?

关于iOS Facebook 应用缩放图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28046786/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com