[support] help with FB button

Neil Adair neiltadair at gmail.com
Mon Nov 28 23:42:58 UTC 2011


You should make sure you have this line in your theme template

xmlns:fb="http://www.facebook.com/2008/fbml" I have
http://drupal.org/project/fb enabled (API only) which inserts this, but you
can add  it to your themes' page.tpl manually.

My like button code is
<div class="fb-like" data-send="true" data-layout="button_count"
data-width="450" data-show-faces="true" data-colorscheme="dark"></div>

What you posted is code for a like "box" which includes other stuff like a
feed and faces. For that you need to have the Facebook PHP SDK installed
see http://developers.facebook.com/docs/reference/php/

Neil

On Mon, Nov 28, 2011 at 6:22 PM, Alexander Garcia Castro <
alexgarciac at gmail.com> wrote:

> I am running druap 6 .22, this should be simple, and I have done it before
> but it is just not working this time. I have generated the FB button:
>
> <iframe src="//
> www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&amp;width=180&amp;height=258&amp;colorscheme=dark&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=false<http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&width=180&height=258&colorscheme=dark&show_faces=true&border_color&stream=false&header=false>"
> scrolling="no" frameborder="0" style="border:none; overflow:hidden;
> width:180px; height:258px;" allowTransparency="true"></iframe>
>
> in theory I should just paste the code in a new block. doesn't work, all I
> get is just code, it does not display the button .what am I doing wrong?
> how can I just have the I like it button in my drupal?
>
> --
> Alexander Garcia
> Florida State University Guest Professor
> http://www.alexandergarcia.name/
> http://www.usefilm.com/photographer/75943.html
> http://www.linkedin.com/in/alexgarciac
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20111128/c2158fd3/attachment.html 


More information about the support mailing list