Chances that you are publishing a Facebook publication link on the user timeline or to a Facebook fan page upon node creation are quite high.
The video tutorial and rules can help you greatly with that. The problem arises when you want to keep track of the changes in your node and reflect those changes in your Facebook publication. To do so you will need to store the facebook publication remote ID Facebook assigns to your publication when is posted.
The most common place to store this is in the Facebook Publication entity you created. Then the workflow is:
- Create the Facebook Publication entity.
- Publish the newly created entity to Facebook. This will return a facebook_publication_remote_id.
- Store the facebook_publication_remote_id in the Facebook Publication entity. There is a field specially designed for that.
- Save the Facebook Publication entity.
The only problem you need to solve is connect your node with the corresponding Facebook Publication entity(ies). The most simple way to do it is adding an entity reference field in your node type. This way you will need to:Read more
Adding a new Facebook publication type
Building upon the API
Using non standard Facebook features
Non standard facebook features are considered those features that do not apply to the vast majority of the facebook publication types. This would be, for instance, RSVP to an event.
Facebook likebox provides an optional submodule named fb_likebox_patterns since version 7.x-1.4, allowing full integration with the module patterns.
Patterns provides an extremely powerful way to perform automatic system configuration. A set of patterns with the most common configurations of Facebook Likebox are provided in the submodule, and the configuration of the module with patterns can be done in just one click.
Since version 7.x-1.7 of FB Likebox we recommend the use of Patterns 7.x-2.x.
How to enable patterns?
Patterns provides a very detailed documentation for site builders and developers. Here you can find the installation instructions for Patterns 7.x, that is the only version currently supported by FB Likebox.
Remember to enable the submodule "FB Likebox Patterns" at 'Modules' section ('admin/modules').
We wanted to declare a specific version of our logo as available when sharing to Facebook from a site, but also to retain the ability to select images from the shared page. The standard meta-tag method limited us to a single thumbnail, and prevented page-specific thumbnails from appearing.
To provide both static and page-specific thumbnails, add the new image for all pages to the header area of the page template and assign to it the existing Drupal “element-invisble” class. Facebook will still load and display this "invisible" image, along with other suitable images on the page.
Modified page.tpl.php code (second line added):
<div id="header"><div class="header-inner section clearfix">
<img class="element-invisible" src="http://www.example.com/sites/default/files/public/logo-for-fb.gif">
<?php print render($page['header']); ?>
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
Because the image doesn’t belong in the main flow of the document, we also added another class, with a rule to move it off-screen and confirm that it wouldn’t show up (left: -999px;).
After making changes, you may wish to clear Facebook's cache for a given page here:
FB Likebox is a simple module that provides a configurable block with the latest updates from Facebook for the given account. It is based on the likebox social plugin provided by Facebook:
http://developers.facebook.com/docs/reference/plugins/like-box. The widget settings are configurable directly in the block and they are available for users with 'administer blocks' permission.
- Install as usual, see http://drupal.org/node/70151 for further information.
- Go to Site > List > 'Theme' in D6 or Structure > Blocks > 'Theme' in D7
- The block will be called "'Your site name' on Facebook"
- Click on 'configure':
- As an alternative, in Drupal 7 you can access the settings directly using the contextual link 'Configure Block'
- Add the Facebook Page (i.e.: http://www.facebook.com/wikisaber.es) and configure the display and appearance settings.