hello,

I'm not lazy and I pay attention :) I've read the documentation but I can't seem to find a list of social plugins along with examples on how to use them.

the provided tag <fb:like></fb:like> gives a clue, but as for the rest, it's beyond me.

also the docs on https://developers.facebook.com differ a lot - I'm guessing because Drupal for Facebook simplifies most of the code?

anyway, I appreciate your help on the matter. thanks in advance!

cheers,
Luciano

Comments

Dave Cohen’s picture

Category: feature » support

Among other things, modules/fb will initialize facebook's javascript. That means you can put any of facebook's social plugins into your nodes, blocks, templates, and what have you. That is, in addition to regular HTML, all the social plugin markup is available to you.

https://developers.facebook.com/docs/plugins/

luco’s picture

Category: support » feature

thanks for the reply.

what I meant is:
<fb:like></fb:like> -> general purpose button

we could have stuff like:
<fb:like faces="nofaces"></fb:like> -> like button without faces
<fb:like send="off"></fb:like> -> like button without send button
<fb:like verb="follow me!"></fb:like> -> like button with custom verb

etc.

that's why I marked as a feature request. I'd like to know whether it is feasible or not.

Dave Cohen’s picture

Status: Active » Fixed

Drupal gives you numerous ways to add markup to a page. hooks, blocks, templates.... In any of those, you could put any of the above markup and expect it to work. Because modules/fb initializes facebook's javascript, you can put any such markup into your pages, just like regular HTML.

You might be confused by fb_example.module, which adds a like button to some pages. Instead of enabling fb_example.module, copy snippets of code into your own custom module. There, you can tweak the markup exactly the way you like it.

If you think user's need a module that let's them fully customize a like button without touching any code, I invite you to contribute that module to drupal.org. You can use modules/fb as a dependency.

Status: Fixed » Closed (fixed)

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