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

Facebook Like Button

Views: 52,534

Results 241 to 260 of 347
15 Aug 2011, 7:00 AM
#241
dmagic avatar

dmagic

Totally Zenned

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

Facebook Like Button

Waiting resolve my problem . :huh:

15 Aug 2011, 9:20 AM
#242
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

dmagic:

Waiting resolve my problem . :huh:

not sure what is happening but to test it I went to your store and chose the ring magic trick....copied the link then went to FB

at FB I clicked on "link" then copied the link into there and as you can see it worked right for me....maybe a problem with what you have written for your FB settings?

is where you posted it your personal FB page? I went to one that is Kingmagic that shows your sites url and the items there show right.

15 Aug 2011, 10:46 AM
#243
dmagic avatar

dmagic

Totally Zenned

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

Re: Facebook Like Button

Ok , thank you for test , now i went to try with another computer !
..... i back . ....

You right if you put link from my products is ok . :laugh:
but if you put the link for www. king-magic . com

so have problem :dontgetit.

15 Aug 2011, 6:12 PM
#244
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

dmagic:

Ok , thank you for test , now i went to try with another computer !
..... i back . ....

You right if you put link from my products is ok . :laugh:
but if you put the link for www. king-magic . com

so have problem :dontgetit.

well I am confused --- you see the link I put at FB was from that www.king-magic.com NOT from any other place.

I went to the store, copied the link from the location bar in Firefox then went to FB and clicked on the "link" there to insert the link then hit attach for it to show into my post there..

Unless you mean you are only inserting the main store link....then that is why it will show that bit of info instead of the product...there is no product just the store link and you might be able to click on it to either delete it or change the name, not sure but it may be an FB issue not the store software/mods

yes i just tried it and you can change that meta part to whatever you want by just click on it to edit it

27 Aug 2011, 4:43 AM
#245
labatts03 avatar

labatts03

New Zenner

Join Date:
Mar 2011
Posts:
20
Plugin Contributions:
0

Re: Facebook Like Button

I have been trying to add the send button now available from facebook, anybody have any luck with that?

27 Aug 2011, 5:34 AM
#246
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

labatts03:

I have been trying to add the send button now available from facebook, anybody have any luck with that?

If it is not part of this module then a new thread should be started...that way folks won't get confused and think it is part of the mod.

31 Aug 2011, 2:24 PM
#247
delia avatar

delia

Totally Zenned

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

Re: Facebook Like Button

labatts03:

I have been trying to add the send button now available from facebook, anybody have any luck with that?

The new send button can be added in just like any other parameter. DarkAngel, can you explain exactly what you did to do the color scheme change? Thanks for helping!

The extra parameter is simply send=true.

1 Sep 2011, 12:35 AM
#248
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

delia:

The new send button can be added in just like any other parameter. DarkAngel, can you explain exactly what you did to do the color scheme change? Thanks for helping!

The extra parameter is simply send=true.

since I don't like that thumb image I took it off but to get the color change all I did was add this to the code given

<div id="likeButton"><fb:like colorscheme="dark"></fb:like></div>
1 Sep 2011, 3:19 AM
#249
labatts03 avatar

labatts03

New Zenner

Join Date:
Mar 2011
Posts:
20
Plugin Contributions:
0

Re: Facebook Like Button

delia:

The new send button can be added in just like any other parameter. DarkAngel, can you explain exactly what you did to do the color scheme change? Thanks for helping!

The extra parameter is simply send=true.

Thanks, I tried to set that up in the code and no luck, I am not sure how I entered wrong, but could not figure out how to do it correctly.

I ended up getting the code that face book provided and stuck that in the product_info page. It seems to work so far, do not know if it is right or not

6 Sep 2011, 4:33 PM
#250
delia avatar

delia

Totally Zenned

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

Re: Facebook Like Button

The full code for the facebook like button is this:

<p><fb:like></fb:like></p>

    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({appId: 'your application id', status: true, cookie: true,
                 xfbml: true});
		FB.Event.subscribe('edge.create', function(href, widget) {
// Do something, e.g. track the click on the "Like" button here
});
      };
      (function() {
        var e = document.createElement('script');
        e.type = 'text/javascript';
        e.src = document.location.protocol +
          '//connect.facebook.net/en_US/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>
<!-- eof Facebook Like Button -->

To add in any changes, change the first line to:

<fb:like send="true"></fb:like>

Any changes that are listed on the like button creation page can be added this way.

http://developers.facebook.com/docs/reference/plugins/like/

7 Sep 2011, 3:06 AM
#251
labatts03 avatar

labatts03

New Zenner

Join Date:
Mar 2011
Posts:
20
Plugin Contributions:
0

Re: Facebook Like Button

Duh... Thanks for spelling it out for me Delia

7 Sep 2011, 11:26 AM
#252
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Facebook Like Button

Thanks for a fabulous mod!

The only issue I've run into is that I'm getting a lot of W3C validation errors with the fb code (their fault - not yours). After doing some research on the fb developers forum, I've found a way around these errors, but it's going to take a whole lot of rewriting to fix 'em. Would it be worth my time to rearrange the mod code to avoid the W3C validation errors? Or does it not matter?

10 Sep 2011, 2:12 PM
#253
delia avatar

delia

Totally Zenned

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

Re: Facebook Like Button

kamelion0927:

Thanks for a fabulous mod!

The only issue I've run into is that I'm getting a lot of W3C validation errors with the fb code (their fault - not yours). After doing some research on the fb developers forum, I've found a way around these errors, but it's going to take a whole lot of rewriting to fix 'em. Would it be worth my time to rearrange the mod code to avoid the W3C validation errors? Or does it not matter?

I don't know that that's even possible to do. It is their problem but what I'm using is what they say must be used. If you want to play with it, go ahead, but if you stray from their code, what you do today may not work tomorrow.

11 Sep 2011, 1:54 AM
#254
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Facebook Like Button

delia:

I don't know that that's even possible to do. It is their problem but what I'm using is what they say must be used. If you want to play with it, go ahead, but if you stray from their code, what you do today may not work tomorrow.

The code wouldn't change - the changes mentioned on the fb forum suggest moving the code around, creating a javascript file, blah, blah, blah. Pretty simple stuff, but if the errors aren't an issue with google or any of the other search engines, what's the point?

I mainly wanted to get your take on if the errors were going to cause problems with search engines or not (the answers elsewhere were mixed).

11 Sep 2011, 1:03 PM
#255
delia avatar

delia

Totally Zenned

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

Re: Facebook Like Button

When I first did the mod, I did find there was a possible problem with search engines. I don't know if that has been corrected or not. There's a link to that info in the readme file. If you are just talking about non validating code - I doubt seriously that this can make any real difference.

19 Nov 2011, 10:02 PM
#256
gopinathgoswami avatar

gopinathgoswami

New Zenner

Join Date:
Nov 2011
Posts:
32
Plugin Contributions:
1

Re: Facebook Like Button

Dear Delia, First of all thanks for the great contribution. I could find many posts with the request to fix this error META_TAG_FBTITLE, but I could not find a solution.

In my experience, the module works perfectly on product pages. The product title, image and URL are picked up from META TAGS. But, the problem is only when you click Facebook Like button on home page or other non product display pages. The <?php echo META_TAG_FBTITLE; ?> statement on html_header.php returns simply META_TAG_FBTITLE on non-product pages.

To fix this error, we need to edit the custom META TAGs on meta_tags.php to the following effect.

If META_TAG_FBTITLE is not defined it should return default META_TAG_TITLE. Same should be followed for URL and Image tags also. Image may be directed to company logo.gif and URL may be the current page URL.

Since, I am not a programmer, it is beyond me to write a code. But, if the community contributes to this effect, this error can be fixed once and for all.

When I googled with the search string META_TAG_FBTITLE I could see many Facebook sharing posts (obviously used by visitors of many websites) with irrelevant page title of "META_TAG_FBTITLE".

Regards
Gopinath Goswami

19 Nov 2011, 11:15 PM
#257
delia avatar

delia

Totally Zenned

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

Re: Facebook Like Button

Yes, because this mod is only supposed to be installed on the product page.

Any other installation of the like button will result in that.

19 Nov 2011, 11:34 PM
#258
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

I was getting that too with the mod until I set the FB part of the coding to my own page NOT another one---I have my own and the forums has one too...so used my personal fb account number.

then when you click the link it will give the right title.

now if you go to fb and enter the link yourself then you will still get that coding but it can be edited, like most of fb can...by clicking on it and entering what you wish...along with the description.

26 Nov 2011, 9:31 PM
#260
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

Thanks but until I see that Google+ is going to stick around then I will just stay with the primary mod in this listing.

Although I do like the twitter follow but I just go there with new items or sales info anyway.