Reputation: 319
3 days ago I updated description within the meta tag of facebook, but change does not reflect when sharing link on facebook. Instead old description still appears. According to Facebook, it scrapes your page every 24 hours to ensure the description (and other share data) are up to date. However, one can manually refresh it by entering the post URL into the Facebook URL Linter
I did manually refresh it as well as now waited for 3 days. When i see debugging output from linter, it shows the correct up-to-date description, but old description still shown when sharing a link.
How to reproduce:
This is our website: https://www.tradeinsports.se/#tis1 (It's in swedish so bear with me please). If you go to above link and click on any of the two available products, and then share on facebook, you can see the difference in description from the one which appears in linter debugging output.
Any help would be appreciated.
Upvotes: 10
Views: 16825
Reputation: 1560
I was having this issue too. The scraper shows the right information, but the share url was still populated with old data.
The way I got around this was to use the feed
method, instead of share
, and then populate the data manually (which isn't exposed with the share method)
Something like this:
shareToFB = () => {
window.FB.ui({
method: 'feed',
link: `signup.mydomain.com/?referrer=${this.props.subscriber.sid}`,
name: 'THIS WILL OVERRIDE OG:TITLE TAG',
description: 'THIS WILL OVERRIDE OG:DESCRIPTION TAG',
caption: 'THIS WILL OVERRIDE THE OG:URL TAG'
});
};
Upvotes: 1
Reputation: 885
Go to this page: https://developers.facebook.com/tools/debug/
Enter the url and click 'debug'.
Click 'fetch new scrape information'.
There's a lot of good data on that page that's helpful for the social media aspects of your site.
Upvotes: 14
Reputation: 4713
If you're implementing a Facebook Share or Facebook Like button, and your og: meta tags are being ignored, it's probably Facebook's overzealous cache.
The quickest way to clear Facebook's cache, and force Facebook to use the info from your og: meta tags, is to Lint the URL.
Enter the URL of the webpage that contains the og: meta tags in the Linter, and Facebook will clear its cache for that page. Your Share or Like button should then start pulling the correct info from your og: meta tags.
Upvotes: 8