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

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 July 6th 2014, 8:16 pm

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 : 51576
Reputation : 3525
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 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
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 July 6th 2014, 8:21 pm

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 : 51576
Reputation : 3525
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 July 6th 2014, 8:24 pm

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 July 6th 2014, 8:28 pm

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 : 51576
Reputation : 3525
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 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
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 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.


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 : 51576
Reputation : 3525
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 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:

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


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 : 51576
Reputation : 3525
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 July 6th 2014, 9:07 pm

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


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 : 51576
Reputation : 3525
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 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
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 July 6th 2014, 9:28 pm

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 : 51576
Reputation : 3525
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 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
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 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
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 July 7th 2014, 2:30 pm

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

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