The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Embedding facebook videos..

3 posters

Go down

Solved Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 20:13

I seem to have some trouble with this..

There are many videos on facebook that I try to put in my forum with an embed code, and it just shows me a coded script and not the video...
Am I doing something wrong?

Embedding facebook videos.. 210

Thank you for your time.  Smile
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray Sun 6 Jul 2014 - 20:16

Do you have HTML on for the forum and in your profile?


Embedding facebook videos.. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 20:20

Yes I do.
The html actually has a configuration on the posts that if you click it, it doesn't make html work.. that is unchecked, and in my profile it is checked.. so I guess that my settings are correct.
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray Sun 6 Jul 2014 - 20:21

Please post the code for the video in the code tags.


Embedding facebook videos.. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 20:24

This is what I have...
Embedding facebook videos.. 310
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray Sun 6 Jul 2014 - 20:28

Please post just the code here in the code tags.


Embedding facebook videos.. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 20:29

Sorry.. Embarassed 

<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/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="https://www.facebook.com/photo.php?v=542876499097750" data-width="466"><div class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/photo.php?v=542876499097750">Post</a> by <a href="https://www.facebook.com/aldo.silva.9085">Aldo Silva</a>.</div></div>
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray Sun 6 Jul 2014 - 20:36

Are you sure that is the correct code, because I do not see anything about a video.

When I tried this in a HTML page, I got just this:

Post by Aldo Silva.


Embedding facebook videos.. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 20:41

If you check my first picture you can see I had the same thing (with some unknown extra codes changed by the forum..

Original facebook code:
Spoiler:

Code previewed in my forum:
Spoiler:
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray Sun 6 Jul 2014 - 21:03

I mean are you sure that is the correct code to use to share videos from Facebook.  Also did the video on Facebook exactly have a way to share it?


Embedding facebook videos.. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 21:07

This is the embed option I have from facebook..
Embedding facebook videos.. 410

edit:

I also found these interesting codes from facebook... but they also didn't work on my forum..

Spoiler:

Spoiler:
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray Sun 6 Jul 2014 - 21:21

So when you pressed the embed link and the pop up box appeared, you copied and pasted that code in your forum?


Embedding facebook videos.. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 21:23

Exactly that. Smile
Did you check the 2 spoilers I have on my last edited message?
Maybe you can understand them.. I know I can't.. Very Happy
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray Sun 6 Jul 2014 - 21:28

I was going to say that the code looked like a JavaScript code.


Embedding facebook videos.. Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Sun 6 Jul 2014 - 21:34

My thoughts exactly SLGray.. that's why I came to you guys to help me out.. maybe with a Java code or something..
I have no idea of Javascripts and how they work..
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Ange Tuteur Mon 7 Jul 2014 - 11:46

Hello Menos,

The problem comes from the inline <script> tag, it is not allowed to format. This isn't a bad thing as it prevents spammers and such from posting malicious code on your forum. You can of course make these videos work by doing the following :
Administration panel > Modules > JavaScript codes management

Create a new script :

Title : your choice
Placement : In all the pages
Paste the code below and submit :
Code:
(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/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));

Then remove the script from your HTML so you have :
Code:
<div id="fb-root"></div>
<div class="fb-post" data-href="https://www.facebook.com/photo.php?v=542876499097750" data-width="466"><div class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/photo.php?v=542876499097750">Post</a> by <a href="https://www.facebook.com/aldo.silva.9085">Aldo Silva</a>.</div></div>
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos Mon 7 Jul 2014 - 14:30

Your idea worked like a charm!  :wouhou: 
My respects Ange Tuteur!!
Topic is solved!
Menos
Menos
Forumember

Male Posts : 383
Reputation : 4
Language : Greek, English and Slovak

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Ange Tuteur Mon 7 Jul 2014 - 16:36

You're welcome :rose:

Topic archived

Have a good day ! Very Happy
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum