Lets other plugins include the facebook-php-sdk library they are compatible with. Should be used by other plugins as a dependency.
Author: | Piyush Mishra (profile at wordpress.org) |
WordPress version required: | 3.1 |
WordPress version tested: | 3.1.4 |
Plugin version: | 2.1.2 |
Added to WordPress repository: | 12-03-2011 |
Last updated: | 12-03-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://wordpress.org/plugins/facebook-php-sdk |
Total downloads: | 1 735 |
Active installs: | 20+ |
Click to start download |
Plugin keeps all versions of facebook php-sdk available on github after 2.1.1 Stricly to be used only as a dependency by other plugins on a WordPress installation.
= For Developers=
Use the following code to load the required facebook sdk version
add_filter('fb_php_sdk_load','your_filter');
function your_filter($array)
{
$array[] = '2.1.2'; //exact version number you need
return $array;
}
For latest tagged version use new Facebook for older versions, Add the version number replacing '.' with '' after 'Facebook' call to use the version needed. ex:- new Facebook_2_1_3() for version 2.1.3
Note
I run filter at priority 100 so you should either leave the third parameter blank or pick a lower number.