facebook opengraph crawler doesn't send me fb_locale

橙三吉。 提交于 2019-12-10 17:40:56

问题


I have an opengraph object that supports multiple locales (in this example, en_US by default and fr_FR).

This is an example of the generated html page that is used by the facebook opengraph but when I call it myself.

Default:
  <meta property="og:locale" content="en_US"/>
  <meta property="og:locale:alternate" content="en_US" />
  <meta property="og:locale:alternate" content="fr_FR" />
  <meta property="og:title" content="chair" />

?fb_locale=en_US
  <meta property="og:locale" content="en_US"/>
  <meta property="og:locale:alternate" content="en_US" />
  <meta property="og:locale:alternate" content="fr_FR" />
  <meta property="og:title" content="chair" />

?fb_locale=fr_FR
  <meta property="og:locale" content="fr_FR"/>
  <meta property="og:locale:alternate" content="en_US" />
  <meta property="og:locale:alternate" content="fr_FR" />
  <meta property="og:title" content="chaise" />

Facebook crawler doesn't send me neither fb_locale nor X-Facebook-Locale.

Solution: Refresh the cache of facebook

curl -X POST -F "id=http://yoururl" -F "scrape=true" -F "locale=fr_fr" "https://graph.facebook.com" -s

(in my example, I used fr_fr)


回答1:


I edited the question, the answer is in the question.



来源:https://stackoverflow.com/questions/12201245/facebook-opengraph-crawler-doesnt-send-me-fb-locale

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!