<?php 
/** 
 * Template to display facebook comments
 *
 * @since BlogCentral 1.0.0
 *
 * @param global variable $blogcentral_layout_opts, passed to this template by the bcswp facebook comments shortcode.
 *
 * @package BlogCentral
 * @subpackage facebook-comments.php
 */
	

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit; 
}

global $wp_query;

$id = $wp_query->post->ID;
$permalink = get_permalink( $id );

?>
<div class="fb-comments" data-href="<?php echo esc_html( $permalink ); ?>" data-numposts="<?php echo esc_attr( $blogcentral_layout_opts['limit'] ); ?>" data-colorscheme="light"></div>