Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Facebook Photo/Album Text format for Drupal
Demo: We can try the module on simplytest.me.
Install
- This module has no dependency, you can enable it like any other Drupal modules.
- Go to /admin/config/content/formats
- Apply "Facebook photo" filter to which text format we would like to support Facebook photo/album
- Reorder the filters, make sure FBPhoto filter processed berfore filter "Convert URLs into links"
- 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
- Module categories: Content Editing Experience
- 11 sites report using this module
- Created by thehong on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
7.x-1.0-beta3
released 1 March 2014
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 7 Mar 2014 at 05:08 UTC