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

Facebook Like Button

Views: 52,534

Results 261 to 280 of 347
8 Jan 2012, 4:36 PM
#261
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Facebook Like Button

Hi, and thanks for this mod :)

I've been able to successfully install the mod (Zen cart 1.3.8), however, when I "like" and post the item to FB, it is always the incorrect item. Any ideas?

Also, I'd prefer not to have the faces. How might I achieve this?

Thanks again.

8 Jan 2012, 11:30 PM
#262
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

MeltDown:

Hi, and thanks for this mod :)

I've been able to successfully install the mod (Zen cart 1.3.8), however, when I "like" and post the item to FB, it is always the incorrect item. Any ideas?

Also, I'd prefer not to have the faces. How might I achieve this?

Thanks again.

in the includes/templates/your template/templates/tpl_product_info_display.php

I have my code right after this code:

//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>

That is how mine is set in and it shows only the link to share with...no button or faces...I get tired of seeing that thumb everywhere--fact is mine just shows a tiny facebook "F" button

<!-- bof Facebook Like Button -->
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: 'YOUR INFO HERE', 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 -->
9 Jan 2012, 5:30 AM
#263
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Facebook Like Button

DarkAngel:

in the includes/templates/your template/templates/tpl_product_info_display.php

I have my code right after this code:

//require(DIR_WS_MODULES . '/debug_blocks/product_info_prices.php');
?>

Thanks for the reply, DarkAngel. I've been able to modify the code itself and its placement to my satisfaction. However, the thumbnail image associated with the product when posted to FB is always Incorrect. The description and url are correct, just the thumbnail that is not. :huh:

Anyone else experiencing this?

Thanks again.

9 Jan 2012, 5:41 AM
#264
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

MeltDown:

Thanks for the reply, DarkAngel. I've been able to modify the code itself and its placement to my satisfaction. However, the thumbnail image associated with the product when posted to FB is always Incorrect. The description and url are correct, just the thumbnail that is not. :huh:

Anyone else experiencing this?

Thanks again.

I forgot to answer that part didn't I...lol

oh well you had asked about the faces too

anyway about the image it might be a naming issue. take a look at the image that is showing up and the one you want it to be and see if there are similarities in the name, non alpha characters in the names.

if you posted a link to the offending item then you would get more help cause they could actually see what is cooking.

also I would suggest you get with 1.3.9h for better security, 1.3.8 versions were easily hacked and hosts will suspend the stores that get hacked...I have had to bail out quite a few stores that were hacked.

9 Jan 2012, 5:50 AM
#265
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Facebook Like Button

DarkAngel:

I forgot to answer that part didn't I...lol

oh well you had asked about the faces too

anyway about the image it might be a naming issue. take a look at the image that is showing up and the one you want it to be and see if there are similarities in the name, non alpha characters in the names.
There are products that share the same name, however, that is not always the case with each incident. Is it possible to have the mod call the image in another, more specific way, such as model id?

Thanks again.

9 Jan 2012, 7:12 AM
#266
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

MeltDown:

There are products that share the same name, however, that is not always the case with each incident. Is it possible to have the mod call the image in another, more specific way, such as model id?

Thanks again.

without the direct link the people here can only guess and that won't get you to find the answer quicker.

crosstalk between images is the culprit in a lot of things not just this mod.

did you by chance change the code in anyway other than to get rid of the faces?

maybe something got left out or slightly changed.

9 Jan 2012, 6:31 PM
#267
plexy avatar

plexy

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: Facebook Like Button

Heya,

Ive been reading through this thread but can't find any solution to my problem.

I am getting an error when pressing the "Like" button.

The App ID "123179024441344" in the meta tag "fb:app_id isn't correct.

Anyone got a clue what's wrong?
Site: http://www.timstore.se
Version 1.3.9h

From tpl_product_info_display.php:

FB.init({appId: '123179024441344', status: true, cookie: true,

From html_header.php:

<meta property="fb:admins" content="123179024441344"/>

Thanks!

9 Jan 2012, 7:09 PM
#268
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

PleXy:

Heya,

Ive been reading through this thread but can't find any solution to my problem.

I am getting an error when pressing the "Like" button.

Anyone got a clue what's wrong?
Site: http://www.timstore.se
Version 1.3.9h

From tpl_product_info_display.php:

FB.init({appId: '123179024441344', status: true, cookie: true,

> ```
<meta property="fb:admins" content="123179024441344"/>
```Thanks!

Is that your FB appId -- is it a group or an individual account?

Check the number again to make sure it is right...copy then paste it into the coding

 when I click my stores link it sends the "like" to my individual account.

I tried a few of your like buttons and they gave me no error message but they also did not post to my FB page either
9 Jan 2012, 8:36 PM
#269
plexy avatar

plexy

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: Facebook Like Button

DarkAngel:

Is that your FB appId -- is it a group or an individual account?

Check the number again to make sure it is right...copy then paste it into the coding

when I click my stores link it sends the "like" to my individual account.

I tried a few of your like buttons and they gave me no error message but they also did not post to my FB page either

Thanks for your fast reply!
Yeah I now noticed that some products doesn't give a post.

Example 1, doesnt give a post: http://timstore.se/index.php?main_page=product_info&products_id=43
Example 2, gives a post http://timstore.se/index.php?main_page=product_info&products_id=1

For me it gives error messages on both examples though.

Any clue? :)

Edit:
Oh yeah. The url to the facebook page is http://www.facebook.com/Timstore
I checked the app id by hovering over some links from there and found a number "123179024441344"

9 Jan 2012, 9:06 PM
#270
plexy avatar

plexy

New Zenner

Join Date:
Jul 2011
Posts:
16
Plugin Contributions:
0

Re: Facebook Like Button

Okay I figured it out. You need an application as well to make it work, duuh.
Thought it was enough with only the actual page id.

Thanks for your fast support! :hug:

9 Jan 2012, 10:13 PM
#271
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

PleXy:

Okay I figured it out. You need an application as well to make it work, duuh.
Thought it was enough with only the actual page id.

Thanks for your fast support! :hug:

aha so that is why they worked now...I do not have any other account at FB except my own personal one---the store one is shared and when I like something to that number it won't work right so I just used my personal account ref=name to do my fb likes to.

10 Jan 2012, 6:36 AM
#272
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Facebook Like Button

MeltDown:

There are products that share the same name, however, that is not always the case with each incident. Is it possible to have the mod call the image in another, more specific way, such as model id?

Thanks again.
My bad... I was integrating with early versions of zencart and inadvertently replaced the wrong snippet of code in metatags.php.

Great mod!!

21 Jan 2012, 5:25 PM
#273
nut_cracker avatar

nut_cracker

New Zenner

Join Date:
Dec 2009
Posts:
4
Plugin Contributions:
0

Re: Facebook Like Button

Hi,

Does anyone know if Delia's Mod for Facebook Like button work with the new version of Zen Cart V1.5.0?

Thanks.:mellow:

21 Jan 2012, 10:27 PM
#274
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

nut_cracker:

Hi,

Does anyone know if Delia's Mod for Facebook Like button work with the new version of Zen Cart V1.5.0?

Thanks.:mellow:

If you go from a previous version -- 1.3.9h for example -- to 1.5 then yes because they are located in the template override folders. IF the mods had files in the admin/includes/boxes (I think that is right) then they will not show in the admin section.

If you are using a fresh install of 1.5 then they might not work if the code has not been fixed.

21 Jan 2012, 10:48 PM
#275
nut_cracker avatar

nut_cracker

New Zenner

Join Date:
Dec 2009
Posts:
4
Plugin Contributions:
0

Re: Facebook Like Button

Hi Dark Angel,

I have not install the Facebook button to my shop yet, but in the process. I'm using the latest Zen Cart V1.5.0. which was upgraded from the previous V1.3.9h. From everything that I have read in this forum about Delia’s Facebook mod was for the previous Zen cart versions so I was curious if it work for the V1.5.0. And if it is compatible, do I follow the same installation procedure?

Thanks.:smile:

21 Jan 2012, 11:04 PM
#276
darkangel avatar

darkangel

Totally Zenned

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

Re: Facebook Like Button

nut_cracker:

Hi Dark Angel,

I have not install the Facebook button to my shop yet, but in the process. I'm using the latest Zen Cart V1.5.0. which was upgraded from the previous V1.3.9h. From everything that I have read in this forum about Delia’s Facebook mod was for the previous Zen cart versions so I was curious if it work for the V1.5.0. And if it is compatible, do I follow the same installation procedure?

Thanks.:smile:

I would, hers is one that does not have admin side controls to it.

I would install her code into the duplicate of the files that are going to be placed into your template folder.

If there are core files to edit also use a duplicate to edit and please backup the store database prior to doing anything...you never know when the internet gods get hungry and eat your stuff.

It has been awhile since I installed her mod and as I said all my mods work in my 1.5 test store but then it is a direct copy of the live store and all files were in their override folders...now when they get their codes placed into the newer store files...who knows. We were supposed to uninstall mods which I totally forgot to do.

Some are getting ported to 1.5 files but not most of the ones I use so I am waiting to see when they do...since all the mods being ported are / should be in the mod area but not all have been placed with the 1.5 as the software it is for in their listing yet and have not gone thru the long listing in their thread to see which have been ported yet.

sure wish there were a way for the site to let us know which ones definitely work in the 1.5 software

21 Jan 2012, 11:07 PM
#277
nut_cracker avatar

nut_cracker

New Zenner

Join Date:
Dec 2009
Posts:
4
Plugin Contributions:
0

Re: Facebook Like Button

Hi DarkAngel,

I have not install the Facebook button to my shop yet, but in the process. I'm using the latest Zen Cart V1.5.0. which was upgraded from the previous V1.3.9h. From everything that I have read in this forum about Delia’s Facebook mod was for the previous Zen cart versions so I was curious if it work for the V1.5.0. And if it is compatible, do I follow the same installation procedure?

Also excuse me for replyinf twice on this question. I'm kind of new to posting and asking questions on the forum.

Thanks.:smile:

21 Jan 2012, 11:19 PM
#278
nut_cracker avatar

nut_cracker

New Zenner

Join Date:
Dec 2009
Posts:
4
Plugin Contributions:
0

Re: Facebook Like Button

I would have tested her code on my testing server, but the new version of Zen cart V1.5.0 doesn't work with the version of xampp that I have unless I install the new version of xampp. The demo store that is on my testing server is V1.3.9h so that doesn't help.

I guess I'm going to follow Delia's instruction and install it on the new V1.5.0 and if there is any problems I could always remove the code.

Thanks again DarkAngel for the response and help to my questions.:smile:

23 Jan 2012, 12:44 PM
#279
delia avatar

delia

Totally Zenned

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

Re: Facebook Like Button

I just checked the files for 1.5 and there are tiny changes in the html_header that do not affect functioning so yes, the mod can be used as is for 1.5.

Please do understand that the 1.5 changes are for pci complicance and you should look carefully for file changes this time. Do file compares and check the change log for file changes. Too many times I found the wrong version of a file being used on a site with 1.3.9h. Always check!

11 Feb 2012, 6:18 AM
#280
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Facebook Like Button

Sorry, did I miss the fix for the META_TAG_FBTITLE issue? It doesn't seem to be defined and therefore appears as the title in the post.

Thanks for your suggestions.