Launched in 2015, The Facebook Instant Articles program allows publishers to create mobile-friendly articles, that can be customized and loaded very quickly within the Facebook environment.
Dailymotion & Facebook Instant Articles
Our HTML5 Player can be embedded in Facebook Instant Articles. It's not required that the video is uploaded directly to Facebook.
You can create your instant articles and then import them into Facebook with their REST API, RSS feeds, WordPress plugin, or other methods outlined here.
Autoplay on Facebook Instant Articles
Please note, instant articles don't support autoplaying videos via third party players, so all embedded video players would require user interaction.
How can I embed my Dailymotion video on a Facebook Instant Article
- The iframe player embed must be wrapped by the HTML <figure> element with the class
op-interactive
applied to it. - The width and height of the iframe should be specified in pixels up to a maximum of 960 pixels.
- The width & height are used to determine the aspect ratio of the player and its scaled accordingly automatically.
- In order to get a player full width of the screen add
no-margin
to the iframe, this is good for user experience and viewability.
The customization of the player can be handled just like a standard iframe embed, by passing a URL encoded query string parameters into the src URL, you can see a full list here.
<figure class="op-interactive">
<iframe no-margin frameborder="0" width="500" height="380" src="https://www.dailymotion.com/embed/video/x7mucht?syndication=YOUR_SYNDICATION_KEY" allowfullscreen allow="autoplay"></iframe>
</figure>