0

只是一个关于在社交网络上以 Fb、Twitter 等方式共享图像的问题……当它们存储在inkfilepicker 上时。

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

<meta property="og:image" content="https://www.filepicker.io/api/file/pZFD49sHQ0yazsb1mTKD">
<link rel="image_src" href="https://www.filepicker.io/api/file/pZFD49sHQ0yazsb1mTKD">

它可能来自哪里的任何想法?

谢谢,

七月

4

2 回答 2

0
<img src=" image link here " />

请尽量写如上。

于 2013-10-12T13:12:56.530 回答
0

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

<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

于 2016-08-31T02:25:50.507 回答