[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8536":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":15,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":14,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":26,"discoverSource":27},8536,"facebook-php-sdk","facebookarchive\u002Ffacebook-php-sdk","facebookarchive","This SDK is deprecated.  Find the new SDK here: https:\u002F\u002Fgithub.com\u002Ffacebook\u002Ffacebook-php-sdk-v4","https:\u002F\u002Fdevelopers.facebook.com\u002Fdocs\u002Freference\u002Fphp\u002F",null,"PHP",3305,2764,1,2,0,5,32,true,false,"master",[],"2026-06-12 02:01:55","### New SDK Released\n\nWe've released version 4 of the Facebook SDK for PHP here: [https:\u002F\u002Fgithub.com\u002Ffacebook\u002Ffacebook-php-sdk-v4](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Ffacebook-php-sdk-v4)\nPlease use the new repository for new projects and contributions.\nSee the [Facebook Developers](https:\u002F\u002Fdevelopers.facebook.com\u002Fdocs\u002Fphp\u002F) site\n for documentation.\n\n-----\n\n-----\n\n-----\n\n-----\n\nFacebook PHP SDK (v.3.2.3) (DEPRECATED)\n\nThe [Facebook Platform](http:\u002F\u002Fdevelopers.facebook.com\u002F) is\na set of APIs that make your app more social.\n\nThis repository contains the open source PHP SDK that allows you to\naccess Facebook Platform from your PHP app. Except as otherwise noted,\nthe Facebook PHP SDK is licensed under the Apache Licence, Version 2.0\n(http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0.html).\n\n\nUsage\n-----\n\nThe [examples][examples] are a good place to start. The minimal you'll need to\nhave is:\n```php\nrequire 'facebook-php-sdk\u002Fsrc\u002Ffacebook.php';\n\n$facebook = new Facebook(array(\n  'appId'  => 'YOUR_APP_ID',\n  'secret' => 'YOUR_APP_SECRET',\n));\n\n\u002F\u002F Get User ID\n$user = $facebook->getUser();\n```\n\nTo make [API][API] calls:\n```php\nif ($user) {\n  try {\n    \u002F\u002F Proceed knowing you have a logged in user who's authenticated.\n    $user_profile = $facebook->api('\u002Fme');\n  } catch (FacebookApiException $e) {\n    error_log($e);\n    $user = null;\n  }\n}\n```\n\nYou can make api calls by choosing the `HTTP method` and setting optional `parameters`:\n```php\n$facebook->api('\u002Fme\u002Ffeed\u002F', 'post', array(\n\t'message' => 'I want to display this message on my wall'\n));\n```\n\n\nLogin or logout url will be needed depending on current user state.\n```php\nif ($user) {\n  $logoutUrl = $facebook->getLogoutUrl();\n} else {\n  $loginUrl = $facebook->getLoginUrl();\n}\n```\n\nWith Composer:\n\n- Add the `\"facebook\u002Fphp-sdk\": \"@stable\"` into the `require` section of your `composer.json`.\n- Run `composer install`.\n- The example will look like\n\n```php\nif (($loader = require_once __DIR__ . '\u002Fvendor\u002Fautoload.php') == null)  {\n  die('Vendor directory not found, Please run composer install.');\n}\n\n$facebook = new Facebook(array(\n  'appId'  => 'YOUR_APP_ID',\n  'secret' => 'YOUR_APP_SECRET',\n));\n\n\u002F\u002F Get User ID\n$user = $facebook->getUser();\n```\n\n[examples]: \u002Fexamples\u002Fexample.php\n[API]: http:\u002F\u002Fdevelopers.facebook.com\u002Fdocs\u002Fapi\n\nTests\n-----\n\nIn order to keep us nimble and allow us to bring you new functionality, without\ncompromising on stability, we have ensured full test coverage of the SDK.\nWe are including this in the open source repository to assure you of our\ncommitment to quality, but also with the hopes that you will contribute back to\nhelp keep it stable. The easiest way to do so is to file bugs and include a\ntest case.\n\nThe tests can be executed by using this command from the base directory:\n\n    phpunit --stderr --bootstrap tests\u002Fbootstrap.php tests\u002Ftests.php\n\n\nContributing\n===========\nFor us to accept contributions you will have to first have signed the\n[Contributor License Agreement](https:\u002F\u002Fdevelopers.facebook.com\u002Fopensource\u002Fcla).\n\nWhen commiting, keep all lines to less than 80 characters, and try to\nfollow the existing style.\n\nBefore creating a pull request, squash your commits into a single commit.\n\nAdd the comments where needed, and provide ample explanation in the\ncommit message.\n\n\nReport Issues\u002FBugs\n===============\n[Bugs](https:\u002F\u002Fdevelopers.facebook.com\u002Fbugs)\n\n[Questions](http:\u002F\u002Ffacebook.stackoverflow.com)\n","Facebook PHP SDK 是一个用于访问 Facebook 平台的开源 PHP 库，但请注意该项目已被弃用，建议使用新版本的 SDK。其核心功能包括用户认证、获取用户信息以及执行 API 调用等，支持通过 HTTP 方法和参数配置进行更复杂的操作。适用于需要与 Facebook 平台集成的 PHP 应用场景中，如社交登录、发布内容到用户的时间线等。尽管此版本已不再维护，但对于理解如何利用 PHP 与 Facebook API 进行交互仍具有参考价值。","2026-06-11 03:18:29","top_language"]