I am trying to add a Facebook Like button using iFrame on a page similar to http://domain.com/blog/competition-entries/?pid=6
There are a number of pages i.e. ?pid=7, ?pid=8 etc but when I added the Facebook code it always likes http://domain.com/blog/competition-entries
I have SEO by Yoast plugin installed but can’t work out how to have current URL as og:url tag.
Any pointers grateful
Facebook probably ignores $_GET parameters (anything after ?) so I think the only solution is to use permalinks – which you should use in the first place. Any good reason you dont? As an added bonus that also adds a bit to your SEO 😉
To enable them just go
Settings->Permalinksand select one – my suggestion would beDay and nameif you post a lot orMonth and nameif you’re not that frequent writer.