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.
Comments
Comment #1
giorgio79 commented(http://drupal.org/project/contemplate very useful for theming node pages)
Comment #2
Dave Cohen commentedYou'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?
Comment #3
giorgio79 commentedThanks Dave, that is pretty clear, I understand it now.
Will be trying it and setting it for fixed.