VirtueMart Dev/Coding Central: VM1 (old version) > VirtueMart Extensions Directory
Tutorial: How to get Facebook Like working on your Virtuemart site
kevinwood:
Having received some requests for a tutorial on how to use VM Open Graph to get the Facebook Like button working in Virtuemart, I have written one. I hope you find it helpful.
Please visit it here:
http://www.bigskyphotography.ca/design/tutorial-facebook-like-virtuemart/
If you have any comments or questions about this tutorial, please post them below.
Thank you.
thanoss43:
Hi Kevin,
Thanks for your tutorial and your pluggins.
I have a problem with joomfish.
I am in English Language and i press like for a product. I have 1 like.
Then I change the language to Greek and go to the same product. I have 0 likes. I called some friends and told them to "like" a specific product, using the English language of my site. Now I have 7 likes for the product when in English language and 0 when viewing the same products in Greek.
Do you have any suggestions?
Thanks
kevinwood:
Can you post a link to your site?
kevinwood:
Okay, I learn something new every day, which is excellent. Joomfish, and presumably most other multi-language support extensions, changes the base URL to reflect different languages. So in your example your base URL for English will be:
www.mysite/en/index.php...
and your base URL for Greek will be:
www.mysite/el/index.php...
I have to think about this some more to determine what the best solution is.
In the meanwhile, I recommend not using the Add Canonical plugin. Instead, you could use the og:url tag to point to a single language. This will cause your English Likes to show up on the Greek URLs and vice-versa.
I have attached a modified version of the plugin that will add the og:url tag which will point all of your Greek pages to the English version. If you prefer it the other way around just reverse the languages on lines 155 and 156.
This version can also be used by anyone else looking for multi-language support with minimal changes.
Anyway, let me know if you have any problems with this.
[edit: attachment removed. functionality is now included in the plugin]
thisispipe:
Kevin,
Your post is useful to me, however after I click "like", a red error occur stating that the facebook could not reach my page.
I read a related post, in order to set up XFBML version, do we need to add something that called Javascript SDK to our pages?
Navigation
[0] Message Index
[#] Next page
Go to full version