I came across this problem in this particular scenario:
I would share the following link:
FB.ui({
method: 'share',
href: 'mysite.com?p=10&og=15',
}, function(response){});
And Facebook scraper would remove the og
parameter from the URL and would scrape the following URL: mysite.com?p=10
Reason
- I ask Facebook scraper to scrape this link:
mysite.com?p=10&og=15
. The scraper would make a request to the given URL and gets a response which looks like this:
<head>
<meta property="og:url" content="mysite.com?p=10">
<meta property="og:image" content="mysite.com?photo=1145">
// more meta tags...
</head>
- Facebook scraper grabs whatever value I am proving in
og:url
meta tag and would make a request to that URL and scrape that page.
Solution
I had to fix the value of og:url
meta tag to include all the required parameters.