Is Technology Ruining Our Lives? (Video)
Written By Chris Ridgeway
My buddy Adam Graber is my long time collabaorator and discussion partner on the effects of technology on life, faith, and daily living and he and I were happy to join the Roscoe Village Open Forum for a public talk on “Is Technology Ruining Our Lives?”
Is it? Find out.
We are making important changes to the App Review process. Learn more.
Social Plugins
Comments
Embedded Comments
Embedded Posts
Embedded Videos
API
Group Plugin
Like Button
Page Plugin
Quote Plugin
Save Button
Share Button
oEmbed Endpoints
Child-Directed Sites
FAQs
Deprecated
Embedded Video & Live Video Player
With the embedded video player you can easily add Facebook videos and Facebook live videos to your website. You can use any public video post by a Page or a person as video or live video source.
Embedded Video Player ConfiguratorCode ExampleSettingsAdd Code Manually
Step-by-Step
1. Choose URL or Page
Pick the URL of a Facebook video you want to embed.
2. Code Configurator
Paste the URL to the Code Configurator and click the "Get Code" button to generate your embedded video player code.
3. Copy & Paste HTML snippet
Copy and paste the snippet into the HTML of the destination website.
Embedded Video Player Configurator
URL of video
https://www.facebook.com/malissa.mackey.5/videos/10100350473819920/
The pixel width of the video
800
Include full post [?]
Get Code
Full Code Example
Copy & paste the code example to your website. Adjust the value data-href to your video URL. Control the player size using the attribute data-width.
Your Website Title
Settings
The configurator above doesn't include all of the possible settings for the embedded video player. You can also change the following settings:
Setting Description Default
data-href
The absolute URL of the video.
n/a
data-allowfullscreen
Allow the video to be played in fullscreen mode. Can be false or true.
false
data-autoplay
Automatically start playing the video when the page loads. The video will be played without sound (muted). People can turn on sound via the video player controls. This setting does not apply to mobile devices. Can be false or true.
false
data-width
The width of the video container. Min. 220px.
auto
data-show-text
Set to true to include the text from the Facebook post associated with the video, if any. Only available for desktop sites.
false
data-show-captions
Set to true to show captions (if available) by default. Captions are only available on desktop.
false
Example Configuration
Getting your Code from a Video Post
1. Navigate to your Video Post
If you post a public video (see FAQ), you can get the embed code directly from the video post itself.
Choose Embed Video from the options menu:
Or when viewing a video in the full-page view select the Embed Video button on the bottom right:
For Pages only
When posting a public video on a Page (see FAQ) you can get the embed code directly from the Timeline. Click on the icon that appears in the top right corner of the post on Facebook.
Choose Embed Video from the drop down menu: (For Pages only)
2. Copy and Paste Code
You will see a dialog appear with the code to embed your video post in it. Copy and paste this code into your web page in the place where you want it to appear.
For technical details please refer to the section Add Code Manually
Add Code Manually
Besides the Code Generator, you can also embed the code manually.
1. Get Video Post URL
First you need to get the URL of a video post you wish to share. The video post must be public (see FAQ), which is indicated by the gray world icon, right next the post's publishing time:
For testing you can use this example URL:
"https://www.facebook.com/FacebookDevelopers/videos/10152454700553553/"
2. Load JavaScript SDK
To use the Embedded Video Player Plugin, or any other Social Plugin, you need to add the Facebook JavaScript SDK to your website. You need to load the SDK only once on a page, ideally right after the opening tag:
You can find more help on implementing the JavaScript SDK in the JavaScript SDK - Quickstart.
3. Place Embedded Video Player Tag
Next place the Embedded Video Player tag at any place of your website. Replace {your-video-post-url} with your posts' URL.
4. Testing
Once you completed these steps you're able to test your Embedded Video Player. A completed integration will look like something like this:
My Website
How to Share With Just FriendsHow to share with just friends.
Posted by Facebook on Friday, December 5, 2014