Page 2 of 2

Re: BBCode for Facebook Videos (Please help me)

Posted: Fri Nov 01, 2013 10:18 pm
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

Re: BBCode for Facebook Videos (Please help me)

Posted: Sat Feb 01, 2014 10:42 am
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>

Re: BBCode for Facebook Videos (Please help me)

Posted: Tue Feb 04, 2014 7:44 am
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.

Re: BBCode for Facebook Videos (Please help me)

Posted: Tue Feb 04, 2014 10:11 am
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 :)

Re: BBCode for Facebook Videos (Please help me)

Posted: Tue Feb 04, 2014 3:10 pm
by Lumpy Burgertushie
I am surprised that you can create bbcodes at all on a proboards setup.


robert

Re: BBCode for Facebook Videos (Please help me)

Posted: Thu Feb 06, 2014 5:52 am
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.

Re: BBCode for Facebook Videos (Please help me)

Posted: Thu Feb 06, 2014 6:24 am
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

Re: BBCode for Facebook Videos (Please help me)

Posted: Tue Dec 20, 2016 2:54 am
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?

Re: BBCode for Facebook Videos (Please help me)

Posted: Thu Feb 23, 2017 6:37 am
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.

Re: BBCode for Facebook Videos (Please help me)

Posted: Tue Jul 04, 2017 7:52 pm
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...

Re: BBCode for Facebook Videos (Please help me)

Posted: Wed Sep 20, 2017 5:47 pm
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>