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

BBCode for Facebook Videos (Please help me)

Post by gohannx » Tue Apr 23, 2013 2:00 am

Guys, good day! Can someone help me with the BBCode for facebook videos? It's suddenly not working in my forum site. We used to have it before but lately we noticed that its no longer functioning. Can someone help me with this? Thank you so much!

My BBCode which I used before was the one below but its no longer useful.

Image

User avatar
Lumpy Burgertushie
Registered User
Posts: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Lumpy Burgertushie » Tue Apr 23, 2013 3:47 am

that looks like it is supposed to be the youtube video bbcode.

can you give me a link to a facebook video so I can see exactly what the html replacement is supposed to be.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Tue Apr 23, 2013 2:29 pm

Lumpy Burgertushie wrote:that looks like it is supposed to be the youtube video bbcode.

can you give me a link to a facebook video so I can see exactly what the html replacement is supposed to be.


robert
Hi Robert,

Thanks for the reply. Here's the sample Facebook video. I hope you can help me configure the codes. Thank you so much!

https://www.facebook.com/photo.php?v=367998962713

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20256
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by RMcGirr83 » Tue Apr 23, 2013 6:11 pm

Do you see anything different between the link you posted and the html replacement you are using?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Lumpy Burgertushie
Registered User
Posts: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Lumpy Burgertushie » Tue Apr 23, 2013 6:31 pm

well the reason your old code doesn't work is because facebook changed the embed code for the videos just like youtube did some time ago.
It is now using a iframe code.

I am working on it but having a problem getting it to work.

the youtube one works just fine, and it should be the same but so far no luck,

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Tue Apr 23, 2013 8:15 pm

Lumpy Burgertushie wrote:well the reason your old code doesn't work is because facebook changed the embed code for the videos just like youtube did some time ago.
It is now using a iframe code.

I am working on it but having a problem getting it to work.

the youtube one works just fine, and it should be the same but so far no luck,

robert
I hope you can work on this problem sir Robert. Its giving me a headache on how to embed FB videos on our site. A lot of forumers are asking for it already.

Thank you so much for the help Robert.

gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Tue Apr 23, 2013 8:17 pm

RMcGirr83 wrote:Do you see anything different between the link you posted and the html replacement you are using?
So far, I can't figure out why its no longer functioning.

User avatar
Lumpy Burgertushie
Registered User
Posts: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Lumpy Burgertushie » Wed Apr 24, 2013 4:39 am

as I said above, it quit working because facebook changed how they do it to using a iframe instead of the way it was before.

however, I have tried just about every way possible to create a bbcode using the iframe embed code they give you and I can not make it work at all.

sorry, I give up.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Wed Apr 24, 2013 4:41 am

Lumpy Burgertushie wrote:as I said above, it quit working because facebook changed how they do it to using a iframe instead of the way it was before.

however, I have tried just about every way possible to create a bbcode using the iframe embed code they give you and I can not make it work at all.

sorry, I give up.

robert
It's OK Robert. Thanks a lot.

User avatar
5hocK
Registered User
Posts: 3012
Joined: Wed Nov 23, 2011 7:00 pm
Location: England
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by 5hocK » Thu May 02, 2013 9:46 am

This ones a bit fiddly to use but it works.
bbcode usage

Code: Select all

[iframe]{URL}, {NUMBER}, {NUMBER2}[/iframe]
html replacement

Code: Select all

<iframe src="{URL}" width="{NUMBER}" height="{NUMBER2}" frameborder="0"></iframe>
help line

Code: Select all

[iframe]http://example.com, 480, 270[/iframe]
Click embed under facebook options to get this code:
<iframe src="[color=#FF0000]https://www.facebook.com/video/embed?video_id=4965679772271[/color]" width="[color=#FF0000]640[/color]" height="[color=#FF0000]360[/color]" frameborder="0"></iframe>
highlighted is what's needed.
Example: http://www.phpbbmods.co.uk/viewtopic.php?f=2&t=11 (code edited in view of viewtopic.php?f=438&t=2180719&p=13296721#p13325935 )
Last edited by 5hocK on Sun Sep 22, 2013 12:13 pm, edited 2 times in total.

gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Thu May 09, 2013 3:39 am

5hocK wrote:This ones a bit fiddly to use but it works.
bbcode usage

Code: Select all

[iframe]{URL}, {NUMBER}, {NUMBER2}[/iframe]
html replacement

Code: Select all

<iframe src="{URL}" width="{NUMBER}" height="{NUMBER2}" frameborder="0"></iframe>
help line

Code: Select all

[iframe]http://example.com, 480, 270[/iframe]
Click embed under facebook options to get this code:
<iframe src="[color=#FF0000]https://www.facebook.com/video/embed?video_id=4965679772271[/color]" width="[color=#FF0000]640[/color]" height="[color=#FF0000]360[/color]" frameborder="0"></iframe>
highlighted is what's needed.
Example: http://www.headnog.com/viewtopic.php?f=2&t=11
Hi 5hock,

How will I get the embed under facebook options? I was able yo get the url but I cannot figure out the "height" and "width" numbers on it.

Thanks,
Hann

gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Thu May 09, 2013 7:37 am

Thank you so 5hock and robert for the help. I was able to make it work now in my forum site. God bless guys!

User avatar
tmbackoff
Former Team Member
Posts: 6996
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: BBCode for Facebook Videos (Please help me)

Post by tmbackoff » Thu Jun 13, 2013 6:31 pm

I highly advise NOT to use that BBCode. Any malicious user could embed any webpage using that format. I haven't tested, but how about something like this:

BBCode:

Code: Select all

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

Code: Select all

<iframe src="https://www.facebook.com/video/embed?video_id={NUMBER}" width="{NUMBER2}" height="{NUMBER3}" frameborder="0"></iframe>

gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Fri Nov 01, 2013 4:27 pm

t_backoff wrote:I highly advise NOT to use that BBCode. Any malicious user could embed any webpage using that format. I haven't tested, but how about something like this:

BBCode:

Code: Select all

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

Code: Select all

<iframe src="https://www.facebook.com/video/embed?video_id={NUMBER}" width="{NUMBER2}" height="{NUMBER3}" frameborder="0"></iframe>
seems not working dude...can you please check it again and maybe have a sample?

thanks much,
gohannx

User avatar
tmbackoff
Former Team Member
Posts: 6996
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: BBCode for Facebook Videos (Please help me)

Post by tmbackoff » Fri Nov 01, 2013 6:09 pm

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>

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 10 guests