{"id":12507,"date":"2011-03-12T20:20:22","date_gmt":"2011-03-12T20:20:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/facebook-php-sdk\/"},"modified":"2011-03-12T20:22:34","modified_gmt":"2011-03-12T20:22:34","slug":"facebook-php-sdk","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/facebook-php-sdk\/","author":2629064,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.1.2","stable_tag":"2.1.2","tested":"3.1.4","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Facebook php SDK","header_author":"Piyush Mishra","header_description":"","assets_banners_color":"","last_updated":"2011-03-12 20:22:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/facebook-php-sdk","header_author_uri":"http:\/\/www.piyushmishra.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2114,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[157,28642,28643,5283],"plugin_category":[56],"plugin_contributors":[84848],"plugin_business_model":[],"class_list":["post-12507","plugin","type-plugin","status-closed","hentry","plugin_tags-facebook","plugin_tags-facebook-php-sdk","plugin_tags-facebook-sdk","plugin_tags-fb","plugin_category-social-and-sharing","plugin_contributors-piyushmishra","plugin_committers-piyushmishra"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/facebook-php-sdk.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Plugin keeps all versions of facebook php-sdk available on github after 2.1.1\nStricly to be used only as a dependency by other plugins on a WordPress installation.<\/p>\n\n<p>= For Developers=<\/p>\n\n<p>Use the following code to load the required facebook sdk version\n    add_filter('fb_php_sdk_load','your_filter');\n    function your_filter($array)\n    {\n        $array[] = '2.1.2'; \/\/exact version number you need\n        return $array;\n    }<\/p>\n\n<p>For latest tagged version use new Facebook\nfor older versions,\nAdd the version number replacing '.' with '<em>' after 'Facebook<\/em>' call to use the version needed.\nex:- new Facebook_2_1_3() for version 2.1.3<\/p>\n\n<h4>Note<\/h4>\n\n<p>I run filter at priority 100 so you should either leave the third parameter blank or pick a lower number.<\/p>\n\n<h4>The filter runs with plugins_loaded hook so donot call the class before that or you'll get errors<\/h4>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>facebook-php-sdk<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I get the plugin to load my required version?<\/dt>\n<dd><p>Use the following code to load the required facebook sdk version\n    add_filter('fb_php_sdk_load','your_filter');\n    function your_filter($array)\n    {\n        $array[] = '2.1.2'; \/\/exact version number you need\n        return $array;\n    }<\/p><\/dd>\n<dt>How do I call the loaded class?<\/dt>\n<dd><p>Load the class after plugins_loaded has run or you will get errors.\nFor latest tagged version use new Facebook\nfor older versions,\nAdd the version number replacing '.' with '<em>' after 'Facebook<\/em>' call to use the version needed.\nex:- new Facebook_2_1_3() for version 2.1.3<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Lets other plugins include the facebook-php-sdk library they are compatible with.  Should be used by other plugins as a dependency.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12507"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/piyushmishra"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12507"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12507"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12507"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12507"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12507"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}