dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on March 08, 2016, 10:11:31 PM

Title: Embed Facebook BBCode
Post by: Chip on March 08, 2016, 10:11:31 PM
http://custom.simplemachines.org/mods/index.php?mod=4062

This modification adds a BBCode to embed Facebook posts and videos into your forum.  Embedding posts and videos are simple way to put public posts and videos - by a Page or a person on Facebook - into the content of your web site or web page.  Only public posts from Facebook Pages and profiles can be embedded.

The BBCode takes these forms:
Code: [Select]
[facebook]{facebook URL}[/facebook]
[facebook width={x}]{facebook URL}[/facebook]
where {facebook URL} is the URL to the facebook photo post, post or video that you want to display and {x} is the width of the post desired.  Note that if the width isn't specified, the global setting will be applied.

now installed, tested via the mini-icon for facebook in the editor or wrap "["facebook"]" and "["/facebook"]" around the URL (minus the double quotes):

[facebook]https://web.facebook.com/911DispatchesFromTheEdge/photos/a.457864604305564.1073741826.457859364306088/560028974089126/?type=3&theater[/facebook]
SimplePortal 2.3.6 © 2008-2014, SimplePortal