The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Embedding facebook videos..

View previous topic View next topic Go down

Solved Embedding facebook videos..

Post by Menos on July 6th 2014, 8:13 pm

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?



Thank you for your time. Smile

Menos
Forumember

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

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray on July 6th 2014, 8:16 pm

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


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 6th 2014, 8:20 pm

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
Forumember

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

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray on July 6th 2014, 8:21 pm

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


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 6th 2014, 8:24 pm

This is what I have...

Menos
Forumember

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

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray on July 6th 2014, 8:28 pm

Please post just the code here in the code tags.


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 6th 2014, 8:29 pm

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
Forumember

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

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray on July 6th 2014, 8:36 pm

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.


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 6th 2014, 8:41 pm

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:
<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>

Code previewed in my forum:
Spoiler:
(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 = "http://connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
Post by Aldo Silva.

Menos
Forumember

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

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray on July 6th 2014, 9:03 pm

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?


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 6th 2014, 9:07 pm

This is the embed option I have from facebook..


edit:

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

Spoiler:

Spoiler:

Menos
Forumember

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

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray on July 6th 2014, 9:21 pm

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


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 6th 2014, 9:23 pm

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
Forumember

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

http://cbrxx.darkbb.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by SLGray on July 6th 2014, 9:28 pm

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


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 6th 2014, 9:34 pm

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
Forumember

Male Posts : 373
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 on July 7th 2014, 11:46 am

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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Embedding facebook videos..

Post by Menos on July 7th 2014, 2:30 pm

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

Menos
Forumember

Male Posts : 373
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 on July 7th 2014, 4:36 pm

You're welcome :rose:

Topic archived

Have a good day ! Very Happy

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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