Closed (fixed)
Project:
Drupal for Facebook
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 May 2012 at 03:00 UTC
Updated:
5 Jun 2012 at 19:21 UTC
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
Comment #1
Dave Cohen commentedAmong 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/
Comment #2
luco commentedthanks for the reply.
what I meant is:
<fb:like></fb:like>-> general purpose buttonwe 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 verbetc.
that's why I marked as a feature request. I'd like to know whether it is feasible or not.
Comment #3
Dave Cohen commentedDrupal 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.