BBCode for Facebook Videos (Please help me)

Get help developing custom BBCodes or request one.
gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx »

t_backoff wrote:Sorry, I made a small mistake. Tested and working.

BBCode:

Code: Select all

[facebookvideo]{NUMBER1}, {NUMBER2}, {NUMBER3}[/facebookvideo]
HTML replacement:

Code: Select all

<iframe src="https://www.facebook.com/video/embed?video_id={NUMBER1}" width="{NUMBER2}" height="{NUMBER3}" frameborder="0"></iframe>
Thank you so much t_backoff. Now it's working!

You're such a great help. I am troubleshooting this thing in the past 3 weeks! Only yesterday that I resulted to ask some help. Thanks again and more power!

Best regards,
Hann
User avatar
kas5986
Registered User
Posts: 227
Joined: Sat Dec 26, 2009 11:16 am
Location: Karachi, Pakistan
Name: syed shafiq
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by kas5986 »

I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>
JMLeblanc23
Registered User
Posts: 2
Joined: Tue Feb 04, 2014 7:37 am

Re: BBCode for Facebook Videos (Please help me)

Post by JMLeblanc23 »

I'm extremely confused. I'm using a proboards forum that uses BBCode and I cannot for the life of me seem to get it to work.

Can you explain how you made it work? I don't understand the difference between the BBCode and HTML replacement.
User avatar
kas5986
Registered User
Posts: 227
Joined: Sat Dec 26, 2009 11:16 am
Location: Karachi, Pakistan
Name: syed shafiq
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by kas5986 »

JMLeblanc23 wrote:I'm extremely confused. I'm using a proboards forum that uses BBCode and I cannot for the life of me seem to get it to work.

Can you explain how you made it work? I don't understand the difference between the BBCode and HTML replacement.
https://www.phpbb.com/kb/article/adding ... in-phpbb3/

above tutorial may help you :)
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Lumpy Burgertushie »

I am surprised that you can create bbcodes at all on a proboards setup.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
JMLeblanc23
Registered User
Posts: 2
Joined: Tue Feb 04, 2014 7:37 am

Re: BBCode for Facebook Videos (Please help me)

Post by JMLeblanc23 »

kas5986 wrote:I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>
I'm normally pretty computer-literate, but coding has always been tough. What is the relationship between the usage and HTML replacement?

If I were to just paste the HTML replacement, what do I need the BBcode for?

I'm just confused on where the BBcode section goes, because all I see is an open code when I use that.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Lumpy Burgertushie »

you can't just paste the html in a post. html is not allowed in posts because it would allow just anyone to put code into your board that could do all sorts of terrible things to your web site.

therefore, the phpbb lets you create custom bbcodes that allow only the html you create the button for to be used.

I have no idea what this particular facebook bbcode is supposed to do. I do not use facebook nor do I want to know about it.

however, where it says {URL} is where you would put the actual url you get from facebook or the actual url of the phpbb post you are trying to send to facebook or whatever it is trying to do.

to use it, you click on the facebook bbcode button in your post, it will then display the bbcode like this:

Code: Select all

[facebook][/facebook]
you would then have to put whatever that url is in between those brackets, like this:

Code: Select all

[facebook]http://whatever.com[/facebook]
then, when you submit the post, it will show up whatever that bbcode is supposed to show .


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
buksida
Registered User
Posts: 336
Joined: Thu Feb 04, 2010 9:11 am

Re: BBCode for Facebook Videos (Please help me)

Post by buksida »

kas5986 wrote:I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>
That does work, thanks. Any way to just take the video though and not the whole post?
User avatar
newsbee
Registered User
Posts: 279
Joined: Sat Mar 29, 2003 1:07 pm
Location: Moscow
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by newsbee »

It works in 3.2, thanks.

Works great for photos and videos - just need to use the correct URL to show only the photo or the vid.
Jestcoyote
Registered User
Posts: 43
Joined: Sun Jul 07, 2013 5:58 am
Location: Omaha, NE
Name: Mark
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Jestcoyote »

Just found this thread... Thanks! I just used that this morning.
Happy 4th of July!
I guess that [bbvideo] isn't enabled on here...
User avatar
kas5986
Registered User
Posts: 227
Joined: Sat Dec 26, 2009 11:16 am
Location: Karachi, Pakistan
Name: syed shafiq
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by kas5986 »

JMLeblanc23 wrote: Thu Feb 06, 2014 5:52 am
kas5986 wrote:I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>
I'm normally pretty computer-literate, but coding has always been tough. What is the relationship between the usage and HTML replacement?

If I were to just paste the HTML replacement, what do I need the BBcode for?

I'm just confused on where the BBcode section goes, because all I see is an open code when I use that.

well i didn't tested but must work given below for videos only

bbCode usage :

Code: Select all

[facebookvideo]{URL}[/facebookvideo]
HTML replacement:

Code: Select all

  <!-- Load Facebook SDK for JavaScript -->
  <div id="fb-root"></div>
  <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));</script>

  <div class="fb-video" data-href="{URL}" data-width="500" data-show-text="false">
  </div>
User avatar
aamot
Registered User
Posts: 77
Joined: Fri May 20, 2005 11:16 am
Location: Norway
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by aamot »

I have tried the last 2 different bbcodes, but it seems that there is a access protection.
If I use the link ( [url] tag, I can open the file, but when I try the last 2 bbcodes,
this is what I get :
bbcode 1
bbcode 1
bbcode 2
bbcode 2

Regards
Asbjorn.
Asbjorn Aamot, Norway
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: BBCode for Facebook Videos (Please help me)

Post by Mick »

That seems like a FB issue to me but, have you tried phpBB Media Embed PlugIn? Most people use it these days. This topic is a smidge on the old side, I wouldn’t be surprised if custom BBCodes from 2013 don’t work properly in 2023.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
Post Reply

Return to “Custom BBCode Development and Requests”