Facebook Share Story 图片第一次没有出现 [英] Facebook Share Story Image Does Not Appear For First time

查看:32
本文介绍了Facebook Share Story 图片第一次没有出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试分享文章或网页,但第一次分享时故事没有显示图像,但当我下次分享时,图像来了.

I try to share the article or web page but the story does not show the image when sharing for the first time but when i share for the next time, image is coming.

在 FB Debugger 中检查,同样的结果.图像第一次不来,下次来.

Checked in FB Debugger Also, same result.image not coming for the first time , next time it is coming.

<html class="no-js" lang="ar" dir="rtl" data-ng-app="mApp" xmlns:fb="http://ogp.me/ns/fb#">
<meta property="og:title" content="mytitle"/>
<meta property="og:url" content="http://mytest.com"/>
<meta property="og:image" content="http://mytest.com/1-773128.jpg"/>
<meta property="og:description" content="ffff2024"/>
<meta property="og:site_name" content="ggggggg"/>
<meta property="og:type" content="ARTICLE"/>
<meta property="fb:app_id" content="2444444444444"/>

推荐答案

https://developers.facebook.com/docs/sharing/best-practices#precaching 列出了避免此问题的方法

https://developers.facebook.com/docs/sharing/best-practices#precaching lists ways to avoid this problem, by either

  • 通过 API 预先抓取新文章,或

  • scraping new articles upfront via API, or

还通过 OG 元标记指定图像尺寸.

specifying the image dimensions via OG meta tags as well.

这篇关于Facebook Share Story 图片第一次没有出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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