Hi,
I use Panels for showing my nodes in full mode view, and I am trying to add the "dynamic fb like button" to a pane, but it is not possible since it does not appear in any of the categories that Panels offers.
In the miscellaneous category there is the "Static FB Like button", which is not the same.
Taking a look into the code, I see that the "Dynamic FB Like Button" is only presented to Drupal if node mode view is full. So this must be the problem of the integration with Panels.
Can you add support to this? Maybe a custom function called from the pane (¨New custom content¨ option)?
Thanks

Comments

eldrupalista’s picture

Status: Active » Closed (fixed)

For adding the Dynamic FB Like button to a pane, you have to do the following:
1.- Create a custom pane
2.- Add this to the body of the new pane:
<iframe src="https://www.facebook.com/plugins/like.php?href=http://example.com/node/%node:nid&amp;layout=standard&amp;show_faces=hide&amp;width=450px&amp;font=arial&amp;height=80px&amp;action=like&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 450px; height: 80px;" allowTransparency="true"></iframe>
Just replace example.com/node/%node:nid with the URL you want.
3.- Do not forget select "Full HTML" filter, and save.

Could you put this somewhere in the documentation?