只是关于在社交网络上分享图片的问题,比如Fb,Twitter…当它们存储在inkfilepicker上时。
在我的head部分,我放置了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">你知道它是从哪里来的吗?
谢谢,
7月
发布于 2013-10-12 21:12:57
<img src=" image link here " />请试着像上面那样写。
发布于 2016-08-31 10:25:51
我目前正在使用这个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
https://stackoverflow.com/questions/19334508
复制相似问题