Sunday, 29 September 2013

Facebook - multiple like buttons with one host page (GWT)

Facebook - multiple like buttons with one host page (GWT)

I want to add facebook like buttons to different pages and use different
titles, descriptions and images.
The problem now is: Facebook uses meta tags from the header to determine
this values, e.g.: . I use GWT and therefore I only have one host page
(e.g. index.html) and different content is rendered in this page:
"www.myurl.com#blogpost:1" would load the blogpost with id "1". Therefore
every blogpost would have the same title, description, image. I could
change the metatags with javascript according to which blogpost is
requested. But I guess javascript is not executed by the facebook parser.
Is there a way to realize different like buttons with only one host page?

No comments:

Post a Comment