Facebook Like Widget For Drupal 5.x and 6.x Nodes

Creator: Phillip J Rhoades
Website: http://ungab.com
License: GNU GPL Version 3
Current Version: 20100423

This module adds the facebook "like" widget to the top of every node. (And I mean EVERY node). You can see it in use on all of the nodes of Ungab.com

This is a very early release and I intend to add options later (node type restriction, widget size, counter only mode, not/show in teaser, etc).

Download for Drupal 5.x:

Download for Drupal 6.x (updated for a bugfix 04-24-2010):


Trackback URL for this post:

http://www.ungab.com/trackback/101180
AttachmentSize
fblike20100423.tar.gz13.15 KB
fblike20100423.zip13.17 KB
fblike20100423_drupal_6x.tar.gz13.12 KB
fblike20100423_drupal_6x.zip13.36 KB
fblike20100424_drupal_6x.tar.gz12.97 KB
fblike20100424_drupal_6x.zip13.49 KB

Great job getting this out

Great job getting this out so quickly!

Why not release it through drupal.org?

I'll work on releasing it

I'll work on releasing it through drupal.org (it's my first module for drupal so I haven't done that before) :)

Check out the bugfix for 6.x (apparently my 6.x wasn't updated enough for a decent test, but it should now work with the current 6.16 drupal)

Now it works well with the

Now it works well with the current drupal. Thanks!

You're totally welcome. :)

You're totally welcome. :)

Great work, but i doesn't

Great work, but i doesn't work for me. When i activate the module this error appaers
Fatal error: Unsupported operand types in /home/***/***/includes/common.inc on line 1426

That error is fixed in the

That error is fixed in the 20100424 release. If you're still getting this error message then please make sure that:

A) You have the latest version of this module
B) You are using the latest 6.x (at least version 6.15)

Hi I have the latest

Hi I have the latest version. Also get an error. It does appear in all nodes and can it me configure differently?

What version of Drupal are

What version of Drupal are you using?

the

the fblike20100424_drupal_6x.zip download is missing the height pixels on the iframe - puts the like button into too much space

That is the actual size of

That is the actual size of the widget as distributed by facebook.

I'm working on an update

I'm working on an update that will include settings for width/height/style. Should be a few days.

Hi, I'm trying it. any idea

Hi, I'm trying it. any idea why the example like button from the Facebook Developers page opens a "Share with facebook" box to be able to post your like in facebook and this don't?
Click here http://developers.facebook.com/docs/reference/plugins/like-box and click on the like button to understand what I mean.

Well, this is the "like

Well, this is the "like button" not the like box, so it's probably related to that. . .

Sorry I paste the wrong

Sorry I paste the wrong address, try the Like Button
http://developers.facebook.com/docs/reference/plugins/like
When you click on it, a little box appears allowing you to share that.

Sorry I paste the wrong

Sorry I paste the wrong link, I mean in the Like button
http://developers.facebook.com/docs/reference/plugins/like
when you click on it, a little box appears allowing you to share that like.

Yes, Facebook distribute it

Yes, Facebook distribute it without pixel height. I think it's because of the show faces.

great module, would be good

great module, would be good if we could choose node type and if its displayed on teasers or main.

also might be better to be

also might be better to be able to choose if it display in links or node content

I'd love to use this, but

I'd love to use this, but because of the nature of the site I want to use it on, I need to be able to select which content types should have the Like button. Is this planned?

I do have some experience with coding modules, so let me know if I can help.

quick fix for this, the

quick fix for this, the height for the iframe has no value. Add 30px to it :)

demo: http://www.ipadbuy.org

quick fix for this, the

quick fix for this, the height for the iframe has no value. Add 30px to it :) demo: http://www.aydinla.com

Thanks, but I don't want to

Thanks, but I don't want to "fix" it that way. I want to make it configurable. I'll release a fix when I can. :)

Thanks though.

Thanks a lot, It was a good

Thanks a lot,

It was a good base for me. I changed the 6.x module a little bit;

* Add theme function.
* Add setting page. You can set the layout, show faces and color schema.
* It works only in page view.
* Add title and site_name meta tag.

http://istvan.palocz.hu/node/3

pp

Cool, where do you share

Cool, where do you share your modified code?

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.