close

Crypto-virus Ransomware Academy

Facebook has now , and a is under way to add support in a future WordPress version.

If you want to try out the new Facebook oEmbed support today, you can download and install this plugin: or .

Here is an example of what the embed looks like:

If you prefer the code, here it is in its entirety:

<?php/*Plugin Name: Facebook oEmbedVersion: 1.1Author: khromov*//** *  */add_action('init', function() {    $endpoints = array(        '#https?://www\.facebook\.com/video.php.*#i'          => '        '#https?://www\.facebook\.com/.*/videos/.*#i'         => '        '#https?://www\.facebook\.com/.*/posts/.*#i'          => '        '#https?://www\.facebook\.com/.*/activity/.*#i'       => '        '#https?://www\.facebook\.com/photo(s/|.php).*#i'     => '        '#https?://www\.facebook\.com/permalink.php.*#i'      => '        '#https?://www\.facebook\.com/media/.*#i'             => '        '#https?://www\.facebook\.com/questions/.*#i'         => '        '#https?://www\.facebook\.com/notes/.*#i'             => '    );    foreach($endpoints as $pattern => $endpoint) {        wp_oembed_add_provider( $pattern, $endpoint, true );    }});
Share this:

endpoint security engineer     endpoint security business

TAGS

CATEGORIES