Zen Cart Logo
Forums / All Other Contributions/Addons / Facebook Like Button

Facebook Like Button

Views: 52,534

Results 201 to 220 of 347
3 Aug 2011, 9:29 AM
#201
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Facebook Like Button

NadiaUSA:

Hi,
I get this error when I click the Like Button.

Your page's type requires that a meta tag of the form <meta property="og:image" ...> be present.

> 
>  I may have misses some code, although I was careful I had to paste in the altered code because of my previous changes to those files.
> 
> I did place this in the html_header.....

I'm getting this same error for my site livvylougifts.co.uk

was there a fix please?
3 Aug 2011, 10:42 AM
#202
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

do you still have it installed on the site? I looked and didn't see any evidence of it.

5 Aug 2011, 10:58 AM
#203
tyger avatar

tyger

New Zenner

Join Date:
Jan 2010
Posts:
13
Plugin Contributions:
0

Re: Facebook Like Button

I am getting an error ..

Your page's type requires a meta tag of the form <meta property="og:image" ...> to be present.

when i try to like products, how can i fix this?

My site is https://www.the-north-wing-asylum.co.uk/store

5 Aug 2011, 1:41 PM
#204
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

You've got both the like button and the facebook sidebox installed - that may be the source of the error. I've not been able to get both working at the same time.

Plus the last one I checked with this error worked when I tried it.

5 Aug 2011, 4:48 PM
#205
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

yes, it is installed, i have two sites, the url i gave in my message http://www.livvylougifts.co.uk is the correct one, the other (in my forum signature) does not have the facebook like button as yet, at least not until i can get it working :D

5 Aug 2011, 6:55 PM
#206
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

No, you misunderstood. I see both the like button on your product pages and the facebook sidebox on the right. Pretty sure you can't run both on a webisite. Turn on that sidebox and see if your problem is fixed.

5 Aug 2011, 8:28 PM
#207
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

delia:

No, you misunderstood. I see both the like button on your product pages and the facebook sidebox on the right. Pretty sure you can't run both on a webisite. Turn on that sidebox and see if your problem is fixed.

sorry, silly question but i presume that is for OP as i do not have that facebook sidebox module installed?

6 Aug 2011, 12:40 PM
#208
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

bonnit:

sorry, silly question but i presume that is for OP as i do not have that facebook sidebox module installed?

Mud on my face! Looks like you haven't uploaded the meta_tags.php file to your custom modules directory.

Tyger - same thing on yours.

7 Aug 2011, 8:14 AM
#209
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

lol no problem, is there a repackaged version that can be downloaded?

7 Aug 2011, 8:30 AM
#210
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Facebook Like Button

bonnit:

lol no problem, is there a repackaged version that can be downloaded?

it is the one you should have put into the includes/modules/your_template folder

it came with the download of her mod

or in her read me it tells you exactly what to insert into the meta_tags.php file

make a duplicate of the meta_tags.php found in that path then add it to your templates folder...here is the code to add to it:

 metatags.php

Add this code (line 293 in 1.3.8):



    //bof facebook like button

    if($product_info_metatags->fields['products_image']!='') {

        $FBimgURL = (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ) . DIR_WS_IMAGES . $product_info_metatags->fields['products_image'];

        define('META_TAG_FBIMG', $FBimgURL); 

    } else {

        define('META_TAG_FBIMG', '');

    }

    define('META_TAG_FBTITLE', str_replace('"','',zen_clean_html($product_info_metatags->fields['products_name'])));

    //eof facebook like button



between this 



 } // CUSTOM META TAGS



and this



  } // EOF

  break;
7 Aug 2011, 9:47 AM
#211
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

Thanks for that DarkAngel and Delia, all working now

...well sort of, all is working fine, i am using it for a business fan page, however whenever someone likes one of my products (in testing by myself atm) this generates an entirely new fan page with that particular product details rather than using the main fan page for my business which is already set up.

have i misunderstood what this module should be doing or have i gone wrong somewhere down the line please?

my business fan page is ```
http://www.facebook.com/pages/LivvyLou-Gifts-Personalised-gifts-for-every-occasion/179264548805631


the newly generated fan page (from clicking the like button) is ```
http://www.facebook.com/pages/Red-Wine-And-Glass-Set/138327122922262

and that was generated from this product page```
http://www.livvylougifts.co.uk/index.php?main_page=product_info&cPath=49_50&products_id=1

7 Aug 2011, 9:55 AM
#212
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

bonnit:

Thanks for that DarkAngel and Delia, all working now

...well sort of, all is working fine, i am using it for a business fan page, however whenever someone likes one of my products (in testing by myself atm) this generates an entirely new fan page with that particular product details rather than using the main fan page for my business which is already set up.

have i misunderstood what this module should be doing or have i gone wrong somewhere down the line please?

my business fan page is ```
http://www.facebook.com/pages/LivvyLou-Gifts-Personalised-gifts-for-every-occasion/179264548805631

> 
> the newly generated fan page (from clicking the like button) is ```
http://www.facebook.com/pages/Red-Wine-And-Glass-Set/138327122922262

and that was generated from this product page```
http://www.livvylougifts.co.uk/index.php?main_page=product_info&cPath=49_50&products_id=1


I'm really unaware of any creation of a fan page - the purpose is to have the product liked so that it appears on wall posts. If you are just wanting to have your fan page liked - that's entirely different.
7 Aug 2011, 10:13 AM
#213
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

this isn't something i request , it is just something that is happening!? i wondered wether it was my admin account triggering this so i used my partners facebook account, which has registered the like but again created a new page instead:

generated facebook page ```
http://www.facebook.com/pages/Silk-My-Christening-Day-Bib/244040568961895


from this product ```
http://www.livvylougifts.co.uk/index.php?main_page=product_info&cPath=99&products_id=48

as you can see instead of crediting the like to my main business page it has instead created an entirely new page.

i have looked this up and there is a facebook developers discussion here:```
http://forum.developers.facebook.net/viewtopic.php?id=74607


im not a developer either (i did see you mention that in your readme) but do you have any ideas what is happening here please?
7 Aug 2011, 10:17 AM
#214
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

I'm sorry - I just don't know what you are talking about. I know nothing about new pages being created and don't see how that's possible but I haven't looked at any possible changes that facebook might have put into play.

Once again, when clicking on the like button, this puts a wall post up about the specific product and has nothing to do with a page.

7 Aug 2011, 10:25 AM
#215
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

it ok, i think i might have solved it now,instead of my facebook admin id i was using my app id, so this was generating a page using my app i presume. likes are now displaying on other peoples personal pages now.

thanks for bearing with me :)

7 Aug 2011, 10:26 AM
#216
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

bonnit:

it ok, i think i might have solved it now,instead of my facebook admin id i was using my app id, so this was generating a page using my app i presume. likes are now displaying on other peoples personal pages now.

thanks for bearing with me :)

I'm so glad you figured it out and posted it! Thanks.

7 Aug 2011, 10:39 AM
#217
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

just so you know as well, it seems that when you like from your own admin account (the one tied with this module) and unlike it , two options show up which go as follows

Like - 		
Be the first of your friends to like this. · Admin Page · Insights

its this click on the admin page option that seems to generate the random product page, its not an issue now, i just wont do it but i wanted to warn others of this little quirk :)

7 Aug 2011, 10:48 AM
#218
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Facebook Like Button

bonnit:

just so you know as well, it seems that when you like from your own admin account (the one tied with this module) and unlike it , two options show up which go as follows

Like -
Be the first of your friends to like this. · Admin Page · Insights


yours is different than mine...lol

when i click your FB button (I have a link for sharing) I get a new page entirely to post in my page...but in mine I get a popup window. Inside it is the image and the product description and a spot to write more...in mine

yours seems to be part of another mod too...some kind of widget?? sorry just being snoopy cause I have nothing at all about an admin anything in my link at all.
7 Aug 2011, 11:15 AM
#219
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Facebook Like Button

i dont have any other like for like modules installed, do you think ive gone wrong somewhere then!? i would much rather the actual function of this mod rather than what i have somehow managed to bodge lol

7 Aug 2011, 11:23 AM
#220
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Facebook Like Button

my code is :

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:40px"></iframe>

But in my FB have mistake with the picture ! it's from Bestsellers nor from the product .

How can fixed ?

http://www.king-magic.com

Thanks