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]
- 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`
- Face recognition via facebook API
- 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)
- If your blog was an app on Facebook
- Get FaceBook Friend Count [closed]
- Facebook OAuth, WP_Http::request() vs wp_remote_request()
- How to overwrite youtube embed?
- Any Facebook component doesn’t work on WordPress website after update. Why?
- 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]
- 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
- Facebook link to website logo
- Trigger a function immeditely after a user posted a comment
- 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?
- Extract an embedded video from the content
- WordPress get embedded/attachment video
- Automatically add simple custom buttons for print, Facebook share, & Tweet in Posts [closed]
- 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
- Remove text from my Facebook posts
- MP4 video on wordpress working on desktop, not on mobile devices
- fb share site shows blank image
- Facebook / LinkedIn share page – https opengraph issues [closed]
- Facebook preview Open Graph Object Debugger
- FB Comments box post to wall?
- Whenever I am sharing a post wordpress phrase is automatically added, can anyone help?
- Website Preview Graphic for WordPress Site
- 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
- 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 Like – Display counter starting at Zero?
- “This site is under development” when sharing on Facebook
- SFC Problem with the comment login
- Simple Facebook Connect: Access tokens not found
- Load facebook php sdk problem
- Unprotected page appears protected when posted to Facebook (S2Member)
- Facebook comment url is unreachable
- WordPress > Error when pasting link into Facebook
- How to install Facebook, Google+, & Twitter LIKE buttons for each individual post at frontpage?
- Facebook profile pic used as avatar
- Changing the Permalink Structure without Resetting the Facebook Like Counts?
- How do I get a list of users who LIKED a post to show in admin of page?
- WP / Facebook integration – recently read articles
- FB like adds WordPress install screen text to the wall
- Embed video from streamtape using direct link
- How to automatically search my entire site for any content embedded using oEmbed?
- Embedded videos not displaying on page
- How to transfer the Facebook instance articles from one WordPress to another WordPress with same domain name?
- how to embed a .mp4 video the url postfix with secret key
- Facebook sharing content problem
- Embedding Facebook in blog post not working
- Facebook and Google+ sharing suddenly stopped working properly in WordPress
- Disable Jetpack Publicize for blog but keep for custom post type [closed]
- Send and Embed Vine (in WP Post) on Facebook
- How not to show author’s name when sharing blogposts on Facebook?
- Facebook posts on wordpress blog
- Configuration Options for embedded YouTube Videos
- subscribe to wp through a Faceboo app
- Automatic connect wordpress to facebook with featured image?
- facebook like on twenty eleven
- How to make a share-this window drop when reaching end of post?
- Embed a page within WordPress dashboard?
- Problem with Simple Facebook Connect
- Facebook share post dialog not showing post information
- Facebook Comments not working in WordPress [closed]
- Post on facebook when I publish blog
- WordPress Site login problem with facebook, twitter and other social media
- get avatar from facebook graph [closed]
- Bigger images when sharing a link with facebook
- How to write ‘post to facebook’ action in Uncanny Automator