gpt4 book ai didi

android - 当使用 facebooksdk4.2 将 applink 用作内容 url 时,Facebook 帖子预览未显示在 shareDialog 中

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

当我使用应用程序链接时,显示“将此内容发布到 facebook 后将添加预览”而不是播放内容、图像,然后在 facebook 共享对话框中发布,这是使用 setContentUrl() 使用 android facebook sdk4 的共享对话框设置的.2+.如何解决这个问题。请帮帮我...

使用以下代码 fragment 进行 facebook 分享......

 ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setContentTitle("Some title")
.setContentDescription("some description")
.setImageUrl(Uri.parse("http://png-3.findicons.com/files/icons/1782/classic_blue/256/classic_blue_android.png"))
.setContentUrl(Uri.parse("https://fb.me/390376541148098"))
.build();

shareDialog.show(linkContent);

我已将我的个人内容用于在我的 Facebook 墙上分享。

For setcontentUrl(): I have given a facebook app link which contains a url of my app in playstore.

For setContentDescription : I have given some text about my app.

setContenttitle() : It contains text of my app name.

Done all this and tested. then facebook share dialog opened but it consists of thumbnail with message like "a preview will be added after you post this to facebook" instead of showing preview that contains : a image, content description, contenttitle, which makes me worry lot.

but clicked on post . the content is posted as per my requirement well in my fb.

任何人都可以提出解决这个问题的建议......

最佳答案

来自 facebook 文档中的引用 here

注意:如果您的应用共享指向 iTunes 或 Google Play 商店的链接,我们不会发布您在共享中指定的任何图像或描述。相反,我们发布了一些我们直接使用 Webcrawler 从应用商店抓取的应用信息。这可能不包括图像。要预览到 iTunes 或 Google Play 的链接共享,请在 URL Debugger 中输入您的 URL .

关于android - 当使用 facebooksdk4.2 将 applink 用作内容 url 时,Facebook 帖子预览未显示在 shareDialog 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32087342/

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