• We just launched and are currently in beta. Join us as we build and grow the community.

How to Embed Facebook Video

tosca

Content Funnel Builder
T Rep
0
0
0
Rep
0
T Vouches
0
0
0
Vouches
0
Posts
121
Likes
175
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 500 XP
Step 1:

Prepare the link of the video that you want to embed to your page.

If you have no idea on how to get the URL of the video, simply right click on the facebook video, then click Show Video URL.

video_url.png

Step 2:

Go to Facebook Developer Page for embedding videos. Note: You don't have to login your facebook account.

Step 3:

Fill up URL of video field using the link of the video that you want to embed. Then click Get Code.

input_video.png

Step 4:

Take note of the Code generated and put them in the page where you want to embed the video.

Example

Here's the sample HTML with codes inserted to the page that I want to embed the video.

  1. <!DOCTYPE html>
  2. <html

    >
  3. <head

    >
  4. <meta

    charset

    =

    "utf-8"

    >
  5. <title

    >

    How to Embed Facebook Video</

    title

    >
  6. <link

    rel

    =

    "stylesheet"

    type

    =

    "text/css"

    href

    =

    "bootstrap4/css/bootstrap.min.css"

    >
  7. </

    head

    >
  8. <body

    >
  9. <div

    id

    =

    "fb-root"

    ></

    div

    >
  10. <script

    >

    (function(d, s, id) {
  11. var js, fjs = d.getElementsByTagName(s)[0];
  12. if (d.getElementById(id)) return;
  13. js = d.createElement(s); js.id = id;
  14. js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12';
  15. fjs.parentNode.insertBefore(js, fjs);
  16. }(document, 'script', 'facebook-jssdk'));</

    script

    >
  17. <div

    class

    =

    "container"

    >
  18. <h1

    class

    =

    "text-center"

    style

    =

    "margin-top:30px;"

    >

    Embed Facebook Video</

    h1

    >
  19. <hr

    >
  20. <div

    class

    =

    "row justify-content-center"

    >
  21. <div

    class

    =

    "col-sm-6"

    >
  22. <div

    class

    =

    "fb-video"

    data-href

    =

    " "

    data-width

    =

    "500"

    data-show-text

    =

    "false"

    ><blockquote

    cite

    =

    " "

    class

    =

    "fb-xfbml-parse-ignore"

    ><a

    href

    =

    " "

    >

    How to Share With Just Friends</

    a

    ><p

    >

    How to share with just friends.</

    p

    >

    Posted by <a

    href

    =

    "https://www.facebook.com/facebook/"

    >

    Facebook</

    a

    >

    on Friday, December 5, 2014</

    blockquote

    ></

    div

    >
  23. </

    div

    >
  24. </

    div

    >
  25. </

    div

    >
  26. </

    body

    >
  27. </

    html

    >

That ends this tutorial. Happy Coding :)


Download
You must upgrade your account or reply in the thread to view hidden text.
 

450,053

322,753

322,762

Top