{"id":17722773,"url":"https://github.com/bramp/php-sdk","last_synced_at":"2025-03-31T13:25:13.118Z","repository":{"id":2099679,"uuid":"3040653","full_name":"bramp/php-sdk","owner":"bramp","description":"PHP SDK for the Facebook API","archived":false,"fork":false,"pushed_at":"2011-12-21T00:18:17.000Z","size":216,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T18:51:10.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bramp.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":"2011-12-23T14:50:12.000Z","updated_at":"2014-03-02T05:00:15.000Z","dependencies_parsed_at":"2022-08-29T00:20:32.411Z","dependency_job_id":null,"html_url":"https://github.com/bramp/php-sdk","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fphp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fphp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fphp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fphp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramp","download_url":"https://codeload.github.com/bramp/php-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246473273,"owners_count":20783236,"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-25T15:39:20.596Z","updated_at":"2025-03-31T13:25:13.091Z","avatar_url":"https://github.com/bramp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Facebook PHP SDK (v.3.1.1)\n==========================\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 access Facebook Platform from your PHP app. Except as otherwise noted, the Facebook PHP SDK\nis 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 '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/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    \nReport Issues/Bugs\n===============\n[Bugs](https://developers.facebook.com/bugs)\n\n[Questions](http://facebook.stackoverflow.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fphp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramp%2Fphp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fphp-sdk/lists"}