Linux 软件免费装

Plugin Name

开发者 piyushmishra
更新时间 2011年3月13日 04:22
PHP版本: 3.1 及以上
WordPress版本: 3.1

标签

facebook fb facebook php sdk facebook sdk

下载

2.1.2

详情介绍:

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. The filter runs with plugins_loaded hook so donot call the class before that or you'll get errors

安装:

  1. Upload facebook-php-sdk folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

常见问题:

How do I get the plugin to load my required version?

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; }

How do I call the loaded class?

Load the class after plugins_loaded has run or you will get errors. 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