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)
You do not ever need og:url . Instead, use the existing rel=canonical standard to link to your canonical page URL. Facebook's own documentation states they support this [1]. Facebook treats the following as redirects before scraping: HTTP redirects, rel=canonical links, and og:url .
When content is shared for the first time, the Facebook crawler will scrape and cache the metadata from the URL shared.
Using Facebook Open Graph Debugger It's the easiest way to verify Open Graph informations. To access it, go to this page: https://developers.facebook.com/tools/debug/ by being connected to your FB developer account. Paste the URL of the page you want to check, then click on the “Debugger” button.
Just go to Page Settings > Social Image > Upload. If you need to add other OG tags and customize the default settings, go to Page Settings > Advanced > Page Header Code Injection. Read the following section on adding the tags manually and copy-paste the code there.
I edited the question, the answer is in the question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With