wp_connect_facepile

Description

The wp_connect_facepile function renders a Facebook Facepile based on the specified setting values. It can be used by theme designers who would like to add specific facepile(s) to their theme.

Usage

<?php wp_connect_facepile$url$width$max_rows$echo ); ?>

Parameters

$url
(string) (required). If you want the Facepile to display friends who have liked your page, specify the URL of the page here.
Default: None. Pass an empty string for the current page.
$width
(integer) (required) The width of the plugin in pixels.
Default: None
$max_rows
(integer) (required) The maximum number of rows of faces to display. The plugin will dynamically size its height; if you specify a maximum of four rows of faces, but there are only enough friends to fill two rows, the plugin will set its height for two rows of faces.
Default: None
$echo
(boolean) (optional) Whether to print the plugin code (TRUE) or return it as a PHP variable (FALSE).
Default: TRUE

Examples

Default Usage

Prints the Facepile plugin.

if ( function_exists( 'wp_connect_facepile' ) ){

	$url = 'http://www.mysite.com/my-post';
	$width = 480;
	$max_rows = 2;

	// render the facepile plugin in place
	wp_connect_facepile(
		$url,
		$width,
		$max_rows
	);
}

Change Log

Source File

wp_connect_facepile() is located in wordpress-connect/wordpress-connect-functions.php.

Related

wp_connect_activity_feed, wp_connect_comments, wp_connect_comments_default, wp_connect_like_box, wp_connect_like_button, wp_connect_like_button_default, wp_connect_live_stream, wp_connect_login_button, wp_connect_recommendations, wp_connect_send_button