It worked correctly for me, however I used the wp_enqueue_scripts hook to add the JavaScript.
function mytheme_enqueue_scripts() {
wp_register_script('facebook-video', 'https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.3', '', '');
wp_enqueue_script('facebook-video');
}
add_action('wp_enqueue_scripts', 'mytheme_enqueue_scripts');
- Do you see any errors in your browser console or network tab?
- Do you see the JS added to your page if you inspect?
Related Posts:
- Facebook video on a post appears in a strange language [closed]
- How can I echo og:video url, if the post has video content?
- Facebook embeds fixing with functions.php
- Retrieving Default Image All Url Profile Picture from Facebook Graph API [closed]
- Official Facebook Connect button as PNG
- Use Device Login on Smart TV / Console
- Invisible characters – ASCII
- When do I need a fb:app_id or fb:admins?
- When do I need a fb:app_id or fb:admins?
- Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method of `ListView`
- Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method of `ListView`
- og:url is driving me crazy?
- Face recognition via facebook API
- FB is not defined javascript
- What are App Domains in Facebook Apps?
- Setting a post’s featured image from an embedded YouTube video
- How can I control the Facebook like image? [closed]
- Do_Shortcode not working for Embed
- How can I auto-add my posts to my site’s Facebook fan page?
- Get first video from the post (both embed and video shortcodes)
- Replace audio/video enclosure with player?
- Automatically Facebook Debug Posts on Publish [closed]
- If your blog was an app on Facebook
- Get FaceBook Friend Count [closed]
- Facebook OAuth, WP_Http::request() vs wp_remote_request()
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- How to add new embed handler not supported by oembed
- How to overwrite youtube embed?
- W3 Cache plugin and Facebook sharing [closed]
- FB – Comment Moderation Tool bug? [duplicate]
- Any Facebook component doesn’t work on WordPress website after update. Why?
- Facebook sharer and parameters in URL
- How to control Facebook share information for the front page?
- sharing video on facebook from wordpress
- Adding a “most liked post” box, based on facebook ranking?
- Open graph metadata isn’t pulled on Facebook until after I run that specific link through the debugger
- Should I use custom post types for a front page video feature (vimeo)?
- facebook like – image display and description
- Is there a method or plugin that will allow posts to be sortable by Facebook likes?
- How do I create a page for users to invite their facebook friends?
- Which social connect plugin do you recommend? [closed]
- How to generate “og:image” meta for Facebook sharing when the image in the post is not featured?
- Facebook Like Button in Jetpack [closed]
- Embed YouTube video from custom field value
- Open graph problem: Showing wrong description of homepage while sharing on Facebook [closed]
- How do I remove all hyperlinks that begin with a #?
- disable video URL auto-embedding for a part of the post
- Simple plugins to post info about new blog entries?
- Facebook link to website logo
- Get User’s Facebook Photos as WordPress Upload
- Video Embed with Captions in Turkish
- Trigger a function immeditely after a user posted a comment
- Hiding styles from Facebook
- RSVP form for Facebook events from a WordPress post?
- WordPress comments and Facebook comments
- Building a Member Directory Site on WordPress with Facebook API Integration?
- Facebook embeds loading the wrong language
- Extract an embedded video from the content
- WordPress get embedded/attachment video
- WP_Cron script not updating all posts in loop
- Automatically add simple custom buttons for print, Facebook share, & Tweet in Posts [closed]
- How to let user select role upon registration in Facebook-AWD?
- Choices for thumbnail image in a Facebook Link post
- Displaying Facebook comments count with tag
- How to preserve exact formatting when copy pasting from Facebook into WordPress (or elsewhere)?
- Send Facebook server-side event using shortcode and Official Facebook Pixel plugin
- Posting to Facebook via WordPress – 500 Internal Error
- How to auto embedded youtube with wp_insert_post()
- Remove text from my Facebook posts
- MP4 video on wordpress working on desktop, not on mobile devices
- How can I remove the first video from a post and feature it?
- fb share site shows blank image
- Facebook / LinkedIn share page – https opengraph issues [closed]
- How to integrate Facebook Share button without code?
- Facebook preview Open Graph Object Debugger
- Facebook share functionality in wordpress loop
- Integrating Facebook calender to WordPress
- Open Graph in posts loop page
- Is there a way of putting the facebook social plugins into page template php files?
- Conditional Facebook Share and Like links [closed]
- FB Comments box post to wall?
- Whenever I am sharing a post wordpress phrase is automatically added, can anyone help?
- Post image lacking when pasting link into Facebook despite the correct og:image meta tag
- Trouble displaying featured image as thumbnail when using Facebook share
- Website Preview Graphic for WordPress Site
- How do I set a featured image for the homepage? [closed]
- Can’t access site after plugin activation
- Use Facebook PHP SDK from WPBook
- Integrate open graph protocol without plugin?
- Adding a list of social media links
- How to embed .mp4 videos in a WordPress post?
- I want to enable facebook connect how to do this?
- How to embed local video in a wordpress post
- Facebook share image wrong on post not on debugger [closed]
- No post image when pasting link into Facebook
- file_get_contents_curl pulling wrong values
- Facebook Registration Tool: how to use in WordPress? [closed]
- Facebook Like – Display counter starting at Zero?
- How to see more WordPress images when posting to Facebook
- Embed/Link external web pages into my WordPress blog (Like Facebook grabs Image, Title, and Description)