Facebook Photo Filter
Categories
Component ID
1351484
Component name
Facebook Photo Filter
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
2719
Component created
Component changed
Component body
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.
