首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Facebook共享,图像未显示

Facebook共享,图像未显示
EN

Stack Overflow用户
提问于 2013-10-12 21:04:10
回答 2查看 114关注 0票数 0

只是关于在社交网络上分享图片的问题,比如Fb,Twitter…当它们存储在inkfilepicker上时。

在我的head部分,我放置了opengraph标签或链接,但在分享时图像从不显示。

代码语言:javascript
运行
复制
<meta property="og:image" content="https://www.filepicker.io/api/file/pZFD49sHQ0yazsb1mTKD">
<link rel="image_src" href="https://www.filepicker.io/api/file/pZFD49sHQ0yazsb1mTKD">

你知道它是从哪里来的吗?

谢谢,

7月

EN

回答 2

Stack Overflow用户

发布于 2013-10-12 21:12:57

代码语言:javascript
运行
复制
<img src=" image link here " />

请试着像上面那样写。

票数 0
EN

Stack Overflow用户

发布于 2016-08-31 10:25:51

我目前正在使用这个Open Graph标签,它们工作正常,我已经将php中的数据库连接更改为页面的<header>部分,没有"og: image :width“和"og:image:height”标签,第一次分享文章时,由于Facebook缓存问题,没有显示任何图像。

代码语言:javascript
运行
复制
<meta property="og:image" content="/path/to/image" />
<meta property="og:image:width" content="image_width_in_pixels" />
<meta property="og:image:height" content="image-height_in_pixels" />
<meta property="og:url" content="url_being_shared" />
<meta property="og:type" content="article" />
<meta property="og:title" content="title_of_article" />
<meta property="og:description" content="description_of_article" />

有关这方面的更多信息,请访问:

https://developers.facebook.com/docs/sharing/best-practices/#precaching

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19334508

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档