Author Topic: Virtuemart & Facebook Like Button on flypage  (Read 13871 times)

idbrokers

  • Jr. Member
  • **
  • Posts: 83
Virtuemart & Facebook Like Button on flypage
« on: March 08, 2011, 16:11:30 pm »
Can anyone give me the definitive answer on how to get the facebook like button to work on the product flypage so that an image of the product and the correct link to the product is posted on Facebook. I have tried many variations to get this to work and just end up getting an error message from Facebook saying the page can not be found.
Have installed the like button SDK into the template index below the head and put the code for the like button into the flypage, all appears ok as it should but clicking like generates the error saying page not found and when I try the URL at Facebook Page Linter - http://developers.facebook.com/tools/lint - the error is the same, obviously. Have tried with and without SEF Urls etc etc....no joy. Any help appreciated as I am sure others would like to use this as well.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

idbrokers

  • Jr. Member
  • **
  • Posts: 83
Re: Virtuemart & Facebook Like Button on flypage
« Reply #2 on: March 08, 2011, 17:26:26 pm »

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Virtuemart & Facebook Like Button on flypage
« Reply #3 on: March 08, 2011, 17:36:51 pm »
you are not using MY code on that page. The code I posted works. I have tried it. I dont use it, but I tried it

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

idbrokers

  • Jr. Member
  • **
  • Posts: 83
Re: Virtuemart & Facebook Like Button on flypage
« Reply #4 on: March 08, 2011, 18:26:22 pm »
Sorry if you think I implied the code was yours, that was never intended. But I did copy and paste that code and pasted it into the flypage on my site and as you can clearly see it does give an error.

kevinwood

  • Jr. Member
  • **
  • Posts: 151
Re: Virtuemart & Facebook Like Button on flypage
« Reply #5 on: March 08, 2011, 19:34:00 pm »
You seem to have gotten it working.  I was going to point you to my plugin that creates the correct Open Graph tags for you, but perhaps you are already using it?

http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=610&Itemid=2

kevinwood

  • Jr. Member
  • **
  • Posts: 151
Re: Virtuemart & Facebook Like Button on flypage
« Reply #6 on: March 08, 2011, 19:37:34 pm »
Actually, I just noticed that you are embedding the URL for the product in the script source.  You shouldn't do that.

beachy

  • Jr. Member
  • **
  • Posts: 277
  • VirtueMart Version: 2.0.22
Re: Virtuemart & Facebook Like Button on flypage
« Reply #7 on: March 08, 2011, 21:17:43 pm »
BanquetTables.pro  - thank you for your code - works perfectly.

Is there however an easy way to add the price to the end of the product name so that it displays in FB?

I am not 100% if this is within their rules but I am sure I have seen others do it!
_______
Joomla 2.5.11 Virtuemart 2.0.22
Apache 2.2.24 PHP 5.4.13
Hosted By RochenHost.com - MVS

idbrokers

  • Jr. Member
  • **
  • Posts: 83
Re: Virtuemart & Facebook Like Button on flypage
« Reply #8 on: March 08, 2011, 21:37:29 pm »
Beachy: where are you putting that code ? I assumed the flypage, maybe thats my mistake here...

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10358
  • VirtueMart Version: 3+
Re: Virtuemart & Facebook Like Button on flypage
« Reply #9 on: March 08, 2011, 21:45:43 pm »
BanquetTables.pro  - thank you for your code - works perfectly.

Is there however an easy way to add the price to the end of the product name so that it displays in FB?

I am not 100% if this is within their rules but I am sure I have seen others do it!

They dont have rules about this.

BUT, I do not know how that would work.
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

beachy

  • Jr. Member
  • **
  • Posts: 277
  • VirtueMart Version: 2.0.22
Re: Virtuemart & Facebook Like Button on flypage
« Reply #10 on: March 08, 2011, 22:08:15 pm »
Hi idbrokers,

I placed the code my flypage.php as per http://forum.virtuemart.net/index.php?topic=80560  You seem to have it working as per my site.

Thanks for letting me know BanquetTables.pro I will dig around and will let you know if I find anything as I am sure someone else in the future may be interested!
_______
Joomla 2.5.11 Virtuemart 2.0.22
Apache 2.2.24 PHP 5.4.13
Hosted By RochenHost.com - MVS

idbrokers

  • Jr. Member
  • **
  • Posts: 83
Re: Virtuemart & Facebook Like Button on flypage
« Reply #11 on: March 08, 2011, 23:13:50 pm »
ok, so if I have the right code in the right place....why am I still getting this response ?

"The page at http://fuzzymouse.co.uk/index.php?page=shop.product_details&flypage=flypage_images.tpl&product_id=2&category_id=1&option=com_virtuemart&Itemid=2 could not be reached."

Sorry to appear dense but this really makes no sense if others have it working on their setup, theres nothing strange about my site....its joomla/virtuemart and a shape 5 template.

beachy

  • Jr. Member
  • **
  • Posts: 277
  • VirtueMart Version: 2.0.22
Re: Virtuemart & Facebook Like Button on flypage
« Reply #12 on: March 08, 2011, 23:35:58 pm »
I have just tested that link in both firefox and ie. Clicked the like link and it works fine! Check out the screenshot below of my facebook page!

Can you post a screenshot of the error!

[attachment cleanup by admin]
_______
Joomla 2.5.11 Virtuemart 2.0.22
Apache 2.2.24 PHP 5.4.13
Hosted By RochenHost.com - MVS

beachy

  • Jr. Member
  • **
  • Posts: 277
  • VirtueMart Version: 2.0.22
Re: Virtuemart & Facebook Like Button on flypage
« Reply #13 on: March 08, 2011, 23:38:41 pm »
If you are still stuck PM some login details and I will try to have a look tomorrow morning for you.
_______
Joomla 2.5.11 Virtuemart 2.0.22
Apache 2.2.24 PHP 5.4.13
Hosted By RochenHost.com - MVS

idbrokers

  • Jr. Member
  • **
  • Posts: 83
Re: Virtuemart & Facebook Like Button on flypage
« Reply #14 on: March 09, 2011, 00:28:58 am »
OK - it can be only one thing as its now resolved itself, I have to assume that its got something to do with facebook updating and resolving the URL for the like button to work properly. Lesson learned.....give it 24 hours.....