Any ideas? :)

Comments

giorgio79’s picture

(http://drupal.org/project/contemplate very useful for theming node pages)

Dave Cohen’s picture

You're asking, can I include a facebook connect button in my node content? Do I understand?

For the connect button to work, you need three things

1) the little xmlns:fb attribute has to be in the html header. This is usually a change to theme's page.tpl.php.

2) the page has to have the facebook javascript included. The easiest way is to check the "primary application" checkbox. Then Drupal for Facebook will include the javascript on all pages. For more advanced control, see what fb_connect_block() does.

3) the XFBML markup has to appear, anywhere on the page.

So if you take care of #1 and #2, the <fb:login-button> markup can come from anywhere. A block, and node, a template, whatever. If you get it on the page, it should work, just like HTML.

Make sense?

giorgio79’s picture

Status: Active » Fixed

Thanks Dave, that is pretty clear, I understand it now.

Will be trying it and setting it for fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.