× Joomla Facebook Connect support forum

Topic-icon Problem with displaying fb like/comment box in virtuemart products

Active Subscriptions:

None
Hello,
I installed JFBconnect (latest version) on my joomla virtuemart web site, it displays JFBC like/comment boxes under articles on my web site but it does not display that box in product pages? There is no "like button" or "comment box" under virtuemart products?
Do I have to add some kind of code to virtuemart except your component?? If you want to check my website, I can give URL and admin/pass to you with PM.
Do you have any recomendations??
Thanks!
The topic has been locked.
Support Specialist
Cydonian,
Currently, it's not automatic to add those to a product page. However, there's 2 ways to add the Like button easily to each VirtueMart flypage:
1) Use the JFBCLike and/or JFBCComments module and set it to show on your VirtueMart Menu Item. This will show the Like button on all Virtuemart page, and the link will be to each individual page that it's shown on
2) Insert the {JFBCLike} or {JFBCComments} tags into your VirtueMart flypage (or other) template files. This allows you to easily add the Like button to any page in a very customizeable manner.

Additionally, it's a good idea to add the Open Graph link for each product into your Virtuemart Flypage template. Adding this will make sure that if a user Likes or Comments on the product, the right image appears in their profile. For more information on how to do that, see the article below (which is very similar to what we're recommending in step #2 above):
www.sourcecoast.com/jfbconnect/docs/thir...ation-for-virtuemart

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks, I did what you said in step2, it now displays "like button" under every virtuemart product. But there is a problem with product image displayed in facebook when a user clicks on "like button" under a product on my virtuemart page. It displays "email button" image near product link on facebook profile wall of that user.
Code I added in flypage.tpl.php file under /components/com_virtuemart/themes/default/templates/product_details :
{JFBCLike}
{JFBCGraph image= .................................................................. }

grrr code tag is NOT working correctly on this forum :( PLEASE FIX CODE TAG because it just strips some , ; ' $ ? from code lines and everything mess up.
this is the code line you mentioned in your message, code on this page
What is that I am doing wrong?

EDIT: okay, it is working now, I think there was a cache problem or something, sorry!
Thanks!!!
The topic has been locked.
Support Specialist
Yeah, we need to fix some things on this forum. We had an automated bot spammer the other day and really locked some things down.. will be easing up on those things soon.

As for your issue.. the Like button is an instantaneous change. Adding a Graph image can take between 1-3 days for Facebook to rescan the page and 'see' the new image, which is what is sounds like you were seeing.

Hope you're all set now!
Alex
The topic has been locked.
Active Subscriptions:

None
Hi,

I have a similar problem, after adding {JFBCLike} to my virtuemart flypage (/components/com_virtuemart/themes/default/templates/product_details/flypage.tpl.php)
when I open the article page the Like button is displayed fine, BUT when a product is selected from the dropdown box (a child product with color and size atributes), I see the tag on the flypage. See pics attached. Thanks in advance.

By the way, JFBConect is an excellent product, definitely worth the investment!
File Attachment:
File Attachment:
The topic has been locked.
Support Specialist
Gabitu,
Definitely strange, and haven't seen that before. If the {JFBCLike} tag isn't being translated, that means the JFBCSystem plugin isn't doing it's job. We've seen that before if the System - Cache plugin is enabled. If so, please make sure the Cache plugin is ordered higher/after the JFBCSystem plugin. If not, try disabling all caching (temporarily, at least), and try again.

Finally, if that doesn't work, it may be Virtuemart somehow loading the page while bypassing the system plugins. If so, that could be annoying, but we may be able to still help. Would it be possible to post (or Private Message) the URL of the pages with and without the issue?

Thanks,
Alex
The topic has been locked.
Support Specialist
Oh yeah, thanks for the compliments on JFBConnect! We definitely appreciate the feedback, and thank you for subscribing. Without subscribers, we couldn't continue adding great new features (JFBC v4.1 is coming later this month, and is going to rock) and provide a great level of support.

Thanks!
Alex
The topic has been locked.
Active Subscriptions:

None
As discussed, the System -Cache plugin is not enabled...

Also I quick question if I may, the JFBCGraph setting is sort of working for 'Like' button (kind off, is returning the first additional image thumbnail, not product's image thumbnail!) but not at all for "Comment"...

{JFBCGraph image=<php echo IMAGEURL.'product/'.$productArray; >}

Thank you for your support.
Gabriel
The topic has been locked.
Support Specialist
Gabriel,
Just tested on your page. We're going to have to do a little investigation. Selecting a new attribute is causing an AJAX request back to your site to reload just the 'inner' contents of the page with the new attribute information. That AJAX request is going straight to Virtuemart, bypassing Joomla altogether.. which means that our System plugin isn't firing. Is that how Virtuemart works out of the box, or is that something special you have installed? Know Virtuemart a little, but not completely.

We'll let you know what we find, but like I said, it will need some investigation.. so it won't be immediate.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thank you Alex for looking into this issue, no I don't have anything special, as you can see my design is pretty simple, I don't have unnecessary things on the article page...

Regarding the second issue, I read the forum and apparently I need to wait 24-48 hours for Facebook to 'see' new Open Graph tags on the page...

Cheers,
Gabriel
The topic has been locked.