Embed Facebook BBCode

Started by dougiefresh, July 11, 2015, 02:33:41 PM

Previous topic - Next topic



Okay, I've personally gotten this mod to work on Chrome browsers, but failing miserably on FireFox browsers on my Windows 7 OS.....  I've followed Facebook's own instructions on how to embed this stuff and Firefox seems to want to snub it's nose at me....  I'm going to publish a new version, but it doesn't work on FireFox browsers (at least that I can tell)....  Gimme a little while to figure out how to make the necessary changes for it to work on Chrome.


I apologize to everybody for the enormous delay!  I'm working on the mod issues....

Okay, Firefox has a feature called "Tracking Protection".  Disabling it through about:config allows FireFox to correctly show the embedded stuff in the browser window.....  This irritating "feature" caused me much irritation while trying to figure out why FF was being a pain in my butt.  Anyways, an update is going to be out soon!

This mod is going to require some additional editing in order to bring some cool new features that almost every one of my video mods has: responsive video formats....  Sorry about the additional delay, but since the video tags have changed, it should be easy enough to add the required HTML code to make the video size responsive....

Quote from: FishingManMatt on November 19, 2018, 06:58:17 AM
Hi dougiefresh!
First of all, thank you for your mod.

Just wanted to report the same bug which Suki had made in his Ohara YouTube Embed mod.
I described the bug in this post.

In the installation script you can find the following:
<file name="$sourcedir/Post.php">
<search position="replace"><![CDATA['<img>]]></search>
<search position="replace"><![CDATA['<img>]]></search>

which results in:

Another issue worth to mention:
I think that many people use both mods Embed Facebook BBCode and Ohara YouTube Embed and both mods modify the same img tag in different manner:

Ohara YouTube Embed converts the img tag into:

Embed Facebook BBCode into:

Maybe there is some way to unify this code for both mods?

Best regards
It's been fixed.  Hopefully this mod won't conflict with anything else...


Quote from: dougiefresh on February 25, 2019, 10:29:29 PM
I apologize for having been absense for the last few months.  Life decided it wanted to rachect up the difficulty level some.... You know, computer problems, vehicle problems, work problems, etc.....

I'm looking for the cause of the issues that have been reported.....

Thank you very much. I hope you will quickly remove this problem.

Thank you.  :)


Once again, many thanks for your support, dougiefresh!


Uploaded v3.12 - May 22nd, 2019
o Added support for SMF 2.1 RC2.
o Removed support for SMF 2.1 Beta 1.
o Updated the code for the embedded Facebook video.
o Modified installer to change <img> to <img><div> in two different places.

@Everybody:  Let me know if this version fixes the issues that were brought up.  It's been a long while since I coded anything for SMF, and I've forgotten what I did with this mod since my last coding session.  Thanks for your assistance and (hopefully) your understanding!


Thanks , just now i made the update ......



Thank you so much for attempting to fix this.  I installed this a couple of days ago and at first all seemed to be ok.   

Unfortunately I've since had to disable it after reports of the following issues.

  • It stops the ability to insert quotes from underneath the Post reply box for all members [see image 1]
  • Members who use the Quick Reply function are no longer able to quote any posts.  If they attempt to do so then they just get a green loading bar across the top of the screen. [see image 2]

Uninstalling the mod restores the ability to use the quote functions in both scenarios.


PS the mod also seems to be unable to accept links which are in the following format
https://www.facebook.com/watch/?v=2260263807362303 and just displays  [ Invalid Facebook URL ]


Here "Default width of embedded Facebook video" I have the video width set, but unfortunately the embedded video is smaller than the value I entered. Anyone know how to fix this?


Does anyone know if this mod works in SMF 2.1.3, or whether there is an alternate mod to do the same thing (embed a facebook feed from a FB page)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.


Have successfully installed this mod, see Facebook button, but after making a post see nothing but the URL.

Please advise.

Thank you.