Facebook的饲料对话框不显示图片 [英] Facebook Feed Dialog not showing Picture

查看:347
本文介绍了Facebook的饲料对话框不显示图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的饲料对话框,画面,我想要使用没有显示。对话框出现了正确的描述和说明,但没有图片。

I'm using the feed dialog, and the picture that I'm trying to use isn't showing. The dialog comes up with the correct description and caption, but no picture.

下面是我的javascript:

Here's my javascript:

FB.ui(
  {
    method: 'feed',
    name: message,
    description: "...",
    caption: "...",
    link: "http://our_domain.com", 
    picture: "https://picture_stored_on_aws"
  },
  (response) ->
    window.close()
)

不过,它工作时,我用一张图片存储在其他位置,如从Facebook的开发站点此示例:http://fbrell.com/f8.jpg。

However, it works when I use a picture stored elsewhere, like this sample from the Facebook dev site: 'http://fbrell.com/f8.jpg'.

我试图消除HTTPS,仍然没有图片。任何人都遇到过这个问题吗?是否有什么关系在AWS上引用的图片?

I tried removing the https, and still no picture. Anyone else come across this problem? Does it have anything to do with referencing a picture on aws?

推荐答案

当你发现,你在S3中收到的链接已过期,因为该文件不是供公众使用,只为自己的帐户。你必须让你的形象公开使用它在你的Facebook订阅对话框。

As you found out, the link you received in S3 has an expiration because the file is not available for the public, only for your own account. You would have to make your image public to use it in your Facebook Feed Dialog.

登录到AWS控制台,进入S3,找到并单击您要使用,点击属性按钮,在顶部右侧的文件。你会看到一个窗口,在页面的底部。点击权限选项卡,并确保有是打开/下载为所有人的权限。当你切换回详细信息选项卡,然后,你会看到一个链接,是公共的。有了这个图片链接,图片也应该在你的Facebook显示订阅对话框。

Log in to the AWS Console, go to S3, find and click on the file you want to use, click on "Properties" button at the top right. You will see a window at the bottom of the page. Click on the "Permissions" tab and make sure that there is a permission for "Open/Download" for "Everyone". When you switch back to the "Details" tab then, you will see a link that is public. With this image link, the picture should also show in your Facebook Feed Dialog.

这篇关于Facebook的饲料对话框不显示图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆