Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 19th, 2011, 08:56 PM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default add facebook like and tweetmeme buttons

Hi,

I'm trying to add functional facebook like and tweetmeme buttons to the the store pages. and while i can add the code to the text file on the product page module (and the buttons show up) they do not function.

any ideas on how to make them work?
  #2  
Old December 19th, 2011, 10:56 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Welcome to the forums!

What are the requirements of that code? I'm not familiar with the code you are using so it's hard to say how to fix it.

Eric
  #3  
Old December 20th, 2011, 10:13 AM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

i'm using the manual code from the digg digg plugin that i'm using for posts, where it works fine.

it doesn't have to be this particular code, just any code that will allow customers to like and tweet the product.
  #4  
Old December 20th, 2011, 10:26 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Without seeing the code or knowing what parameters the functions require, it's impossible to help.

Eric
  #5  
Old December 20th, 2011, 11:00 AM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

what about adding the code that facebook offers to developers to add the like button to a website? should i post that here? is there any way to add the facebook like button to product pages?
  #6  
Old December 20th, 2011, 11:02 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi
Quote:
Originally Posted by DMAB22 View Post
what about adding the code that facebook offers to developers to add the like button to a website? should i post that here? is there any way to add the facebook like button to product pages?
Yes, you need to post the code here. Like I said, I'm sure it's possible but without seeing the code or knowing the parameters it accepts, it's impossible to help.

Eric
  #7  
Old December 20th, 2011, 11:31 AM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

this is the xfbml code from facebook. it's supposed to default to the current page, but it defaults to the store home page instead:

added to body tag:

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

added to html tag:

<html xmlns:fb="http://ogp.me/ns/fb#">

added to the text module in the products detail view:

<fb:like href="http://designermaternityandbaby.com" send="false" width="450" show_faces="false"></fb:like>
  #8  
Old December 20th, 2011, 11:35 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

You should probably add this to your Text module:

HTML Code:
<fb:like href="[server.url type='fullpage']" send="false" width="450" show_faces="false"></fb:like>
Eric
  #9  
Old December 20th, 2011, 11:35 AM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

also, i updated the last line of code to this: <fb:like send="false" width="450" show_faces="false"></fb:like>

but i'm still having the same problem.
  #10  
Old December 20th, 2011, 11:36 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Did you try what I posted in post #8?
  #11  
Old December 20th, 2011, 11:47 AM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

i did. and it creates a link to the store page not the product page.
  #12  
Old December 20th, 2011, 12:26 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Here's the reason it's not working: http://www.datafeedr.com/forums/show...6388#post26388

Your canonical link in your <head> tags all point to your store's homepage. This is very bad for SEO. I'm guessing one of your SEO plugins is adding that. It should be disabled on the Store page.

Eric
  #13  
Old December 20th, 2011, 12:56 PM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

ah, i usually don't activate the canonical url portion of the all in one seo. i've deactivated it. i'll need to clear my browser's cache to remove it from the header. i'll let you know how this goes.

thanks for your help. very much appreciated.
  #14  
Old December 28th, 2011, 01:04 PM
DMAB22 DMAB22 is offline
 
Join Date: Dec 2011
Posts: 14
Default

hi there,

so after removing the canonical url the product link (when added to facebook) defaults to the store front page. this is the code i'm using.

to the <head> i've added <html xmlns:fb="http://ogp.me/ns/fb#">

to <body> i've added <div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

and then I've added this to the text module in the product detail default template

<fb:like href="[server.url type='fullpage']" send="false" width="450" show_faces="false"></fb:like>

any ideas?
  #15  
Old December 28th, 2011, 08:27 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

It should be working. The source code looks fine!

Eric
  #16  
Old January 8th, 2012, 05:08 PM
roelkers roelkers is offline
 
Join Date: Nov 2011
Posts: 24
Default

Any luck getting Facebook "Like" working on your site DMAB22? Have a wordpress site and of course the Facebook Like plugin works on all other pages and posts but not the datafeedr store.

Is it as easy as adding some code to the store front and/or category pages?
  #17  
Old March 26th, 2012, 05:44 AM
Giftoly Giftoly is offline
 
Join Date: Dec 2011
Posts: 52
Default

Good Morning All,

I took would like to get this working as I really want to be able to update Facebook / G+ / Twitter etc with featured products.

At the moment, liking a page as above just returns the www.giftoly.co.uk/store page and images.

I notice people are talking about turning off canonical url which as a quite a noob to WP and Datafeedr, I am not sure how to do or really the meaning. Could someone confirm how to a) turn off this feature and b) if they have managed to get social network 'liking' working at product level ?

Really appreciate your help!

John
__________________
Many thanks

John
www.giftoly.co.uk
  #18  
Old March 26th, 2012, 05:47 AM
Giftoly Giftoly is offline
 
Join Date: Dec 2011
Posts: 52
Default

P.S

I meant to say...

these are the plugins that I have activated if anything jumps out as potentially causing the problem



and this is the Permalinks area of the Yoast SEO plugin if this is causing the canonical URL issue

__________________
Many thanks

John
www.giftoly.co.uk
  #19  
Old March 26th, 2012, 08:31 AM
Giftoly Giftoly is offline
 
Join Date: Dec 2011
Posts: 52
Default

Sorry about all the posts,

Also just noticed that even through the Datafeedr breadcrumb shows full details, the WP breadcrumb stays at www.giftoly.co.uk/store

Is this partly the cause ?



[Edited]

Oops just realised screenshot is of the wrong website but cloned WP site and Datafeedr store and same issue.
__________________
Many thanks

John
www.giftoly.co.uk

Last edited by Giftoly : March 26th, 2012 at 08:34 AM.
  #20  
Old March 26th, 2012, 08:46 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by Giftoly View Post
Is this partly the cause ?
Possibly... We will be looking into this issue in version 3.8.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Follow us on Twitter and Like us on Facebook stefan News & Announcements 0 December 16th, 2011 02:48 PM


All times are GMT -5. The time now is 03:34 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.