{"id":15304627,"url":"https://github.com/monkeymars/facebook-php-sdk","last_synced_at":"2025-10-08T09:30:55.301Z","repository":{"id":149889569,"uuid":"10505039","full_name":"monkeymars/facebook-php-sdk","owner":"monkeymars","description":"Facebook PHP SDK","archived":false,"fork":true,"pushed_at":"2013-05-16T02:42:21.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-02T07:57:26.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://developers.facebook.com/docs/reference/php/","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"facebookarchive/facebook-php-sdk","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monkeymars.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-05T14:52:10.000Z","updated_at":"2014-10-14T20:04:09.000Z","dependencies_parsed_at":"2023-04-02T10:57:41.188Z","dependency_job_id":null,"html_url":"https://github.com/monkeymars/facebook-php-sdk","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Ffacebook-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Ffacebook-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Ffacebook-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Ffacebook-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkeymars","download_url":"https://codeload.github.com/monkeymars/facebook-php-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235700110,"owners_count":19031668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T07:57:19.364Z","updated_at":"2025-10-08T09:30:54.871Z","avatar_url":"https://github.com/monkeymars.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Facebook PHP SDK (v.3.2.2)\n\nThe [Facebook Platform](http://developers.facebook.com/) 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://www.apache.org/licenses/LICENSE-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\n    require 'facebook-php-sdk/src/facebook.php';\n\n    $facebook = new Facebook(array(\n      'appId'  =\u003e 'YOUR_APP_ID',\n      'secret' =\u003e 'YOUR_APP_SECRET',\n    ));\n\n    // Get User ID\n    $user = $facebook-\u003egetUser();\n\nTo make [API][API] calls:\n\n    if ($user) {\n      try {\n        // Proceed knowing you have a logged in user who's authenticated.\n        $user_profile = $facebook-\u003eapi('/me');\n      } catch (FacebookApiException $e) {\n        error_log($e);\n        $user = null;\n      }\n    }\n\nLogin or logout url will be needed depending on current user state.\n\n    if ($user) {\n      $logoutUrl = $facebook-\u003egetLogoutUrl();\n    } else {\n      $loginUrl = $facebook-\u003egetLoginUrl();\n    }\n\n[examples]: http://github.com/facebook/facebook-php-sdk/blob/master/examples/example.php\n[API]: http://developers.facebook.com/docs/api\n\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/bootstrap.php tests/tests.php\n\n\nContributing\n===========\nFor us to accept contributions you will have to first have signed the\n[Contributor License Agreement](https://developers.facebook.com/opensource/cla).\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/Bugs\n===============\n[Bugs](https://developers.facebook.com/bugs)\n\n[Questions](http://facebook.stackoverflow.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeymars%2Ffacebook-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkeymars%2Ffacebook-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeymars%2Ffacebook-php-sdk/lists"}