This project is not covered by Drupal’s security advisory policy.

Facebook Photo filter

Facebook Photo/Album Text format for Drupal

Demo: We can try the module on simplytest.me.

Install

  1. This module has no dependency, you can enable it like any other Drupal modules.
  2. Go to /admin/config/content/formats
  3. Apply "Facebook photo" filter to which text format we would like to support Facebook photo/album
  4. Reorder the filters, make sure FBPhoto filter processed berfore filter "Convert URLs into links"
  5. If you see extra spaces above and below the photo, it is due to the 'Convert line breaks into HTML (i.e. <br> and <p>) ' filter. Disabling the filter removes the space.

Usage

Then the filter is ready for our text. Try with:

  • Album: [fb:https://www.facebook.com/media/set/?set=a.380743478891.164254.8427738891&type=3]
  • Photo: [fb:https://www.facebook.com/8427738891/photos/a.380743478891.164254.8427738891/380744538891/]
  • We may need update the CSS to make the picture display nice on current Drupal theme.

Credits

Andy Truong started the module using

  • Facebook Graph API
  • CURL library

It is currently co-maintained by Alan Lobo.

Contribute

Feature request/bug reports please PR/file them on Github.

Supporting organizations: 
Started project

Project Information

Downloads