I am unable to share wordpress page with my custom query string in facebook like box using facebook api. for example http://www.example.com/?page_id=10&myquery=10 after hit like button “myquery=10” is removed from above url, only we are getting “http://www.example.com/?page_id=10” in my wall.
Thanks&Regards,
Arunabathan.G
The problem here is the canonical URL you’ve set your page to.
How to discover the problem?
If you check out your URL on the facebook url debugger tool, you’ll see that the fetched URL if the url with the querystring (http://breakbounce.com/lookbook/?slideID=4), but the canonical URL does not have the querystring (http://breakbounce.com/lookbook/).
Where does this comes from?
This problem can be originated by two meta-tags, either
og:url
is defined to a different URL or a<link rel="canonical" ...>
is defined (being the last one your problem, view your page souce and search your code for<link rel='canonical' href='http://breakbounce.com/lookbook/' />
)How to fix it?
In a normal situation you need to alter or delete the tag you identified as problematic on the previous step.
In you case you need either to change or delete the
<link rel='canonical' href='http://breakbounce.com/lookbook/' />
tag.Importante Note: After changing or deleting the tag you’ll need to visit the facebook URL debugger again and enter your URL, in order to clear the cache of your url from Facebook.
Anything let me know.
You can also fix it like this:
the %26 is an equivalent for the ampersand. I had this problem when I tried additional parameters in a query, and this worked for me 🙂