{"id":37235351,"url":"https://github.com/janu-software/facebook-php-sdk","last_synced_at":"2026-01-16T04:47:12.961Z","repository":{"id":37588945,"uuid":"445144205","full_name":"janu-software/facebook-php-sdk","owner":"janu-software","description":"Alternative API client for deprecated Facebook Graph SDK.","archived":false,"fork":false,"pushed_at":"2025-02-12T14:08:10.000Z","size":374,"stargazers_count":70,"open_issues_count":0,"forks_count":21,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-11T23:55:29.980Z","etag":null,"topics":["facebook","facebook-api","facebook-graph-api","facebook-login","php","sdk"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janu-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"stanislavjanu","custom":["https://revolut.me/stanisp8hg"]}},"created_at":"2022-01-06T11:23:29.000Z","updated_at":"2025-11-02T06:03:01.000Z","dependencies_parsed_at":"2024-06-19T03:50:53.103Z","dependency_job_id":"606c3638-01dd-4084-801f-f4fa8ba72bb2","html_url":"https://github.com/janu-software/facebook-php-sdk","commit_stats":{"total_commits":82,"total_committers":3,"mean_commits":"27.333333333333332","dds":0.03658536585365857,"last_synced_commit":"a45b989267724fd827243b5c5d8f4cc331a1bd4b"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/janu-software/facebook-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Ffacebook-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Ffacebook-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Ffacebook-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Ffacebook-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janu-software","download_url":"https://codeload.github.com/janu-software/facebook-php-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janu-software%2Ffacebook-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["facebook","facebook-api","facebook-graph-api","facebook-login","php","sdk"],"created_at":"2026-01-15T04:01:39.563Z","updated_at":"2026-01-15T04:01:40.201Z","avatar_url":"https://github.com/janu-software.png","language":"PHP","readme":"# Facebook SDK for PHP\n\n[![Composer](https://github.com/janu-software/facebook-php-sdk/actions/workflows/composer.yml/badge.svg)](https://github.com/janu-software/facebook-php-sdk/actions/workflows/composer.yml)\n[![Code style](https://github.com/janu-software/facebook-php-sdk/actions/workflows/code_style.yml/badge.svg)](https://github.com/janu-software/facebook-php-sdk/actions/workflows/code_style.yml)\n[![Tester](https://github.com/janu-software/facebook-php-sdk/actions/workflows/phpunit.yml/badge.svg)](https://github.com/janu-software/facebook-php-sdk/actions/workflows/phpunit.yml)\n[![PhpStan](https://github.com/janu-software/facebook-php-sdk/actions/workflows/static_analysis.yml/badge.svg)](https://github.com/janu-software/facebook-php-sdk/actions/workflows/static_analysis.yml)\n\n[![Latest Stable Version](https://poser.pugx.org/janu-software/facebook-php-sdk/v/stable)](https://packagist.org/packages/janu-software/facebook-php-sdk)\n[![Total Downloads](https://poser.pugx.org/janu-software/facebook-php-sdk/downloads)](https://packagist.org/packages/janu-software/facebook-php-sdk)\n[![License](https://poser.pugx.org/janu-software/facebook-php-sdk/license)](https://packagist.org/packages/janu-software/facebook-php-sdk)\n[![Coverage Status](https://coveralls.io/repos/github/janu-software/facebook-php-sdk/badge.svg?branch=main)](https://coveralls.io/github/janu-software/facebook-php-sdk?branch=main)\n\nThis repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app. Based on `facebookarchive/php-graph-sdk` v6.\n\n## Installation\n\nThe Facebook PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:\n\n    composer require janu-software/facebook-php-sdk\n\nYou must use some client using `php-http/client-implementation`.\n\nFor example: Using with Guzzle:\n\n    composer require janu-software/facebook-php-sdk guzzlehttp/guzzle php-http/guzzle7-adapter\n\n## Compatibility\n\n| Version | PHP  |\n|---------|------|\n| 0.1     | ^8.0 |\n| 0.2     | ^8.1 |\n| 0.3     | ^8.1 |\n| 0.4     | ^8.3 |\n\n## Usage\n\nSimple GET example of a user's profile.\n\n```php\nrequire_once __DIR__ . '/vendor/autoload.php'; // change path as needed\n\n$fb = new \\JanuSoftware\\Facebook\\Facebook([\n  'app_id' =\u003e '{app-id}',\n  'app_secret' =\u003e '{app-secret}',\n  'default_graph_version' =\u003e 'v22.0',\n  //'default_access_token' =\u003e '{access-token}', // optional\n]);\n\ntry {\n  // If you provided a 'default_access_token', the '{access-token}' is optional.\n  $response = $fb-\u003eget('/me', '{access-token}');\n} catch(\\JanuSoftware\\Facebook\\Exception\\ResponseException $e) {\n  // When Graph returns an error\n  echo 'Graph returned an error: ' . $e-\u003egetMessage();\n  exit;\n} catch(\\JanuSoftware\\Facebook\\Exception\\SDKException $e) {\n  // When validation fails or other local issues\n  echo 'Facebook SDK returned an error: ' . $e-\u003egetMessage();\n  exit;\n}\n\n$me = $response-\u003egetGraphNode();\necho 'Logged in as ' . $me-\u003egetField('name');\n```\n\nComplete documentation, installation instructions, and examples are available [here](docs/).\n\n\n## Tests\n\n1. [Composer](https://getcomposer.org/) is a prerequisite for running the tests. Install composer globally, then run `composer install` to install required files.\n2. Create a test app on [Facebook Developers](https://developers.facebook.com), then create `tests/FacebookTestCredentials.php` from `tests/FacebookTestCredentials.php.dist` and edit it to add your credentials.\n3. The tests can be executed by running this command from the root directory:\n\n```bash\n$ ./vendor/bin/phpunit\n```\n\nBy default the tests will send live HTTP requests to the Graph API. If you are without an internet connection you can skip these tests by excluding the `integration` group.\n\n```bash\n$ ./vendor/bin/phpunit --exclude-group integration\n```\n\n\n## License\n\nPlease see the [license file](https://github.com/janu-software/facebook-php-sdk/blob/main/LICENSE) for more information.\n\n\n## Security Vulnerabilities\n\nIf you have found a security issue, please contact the maintainers directly at [s@janu.software](mailto:s@janu.software).\n","funding_links":["https://patreon.com/stanislavjanu","https://revolut.me/stanisp8hg"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanu-software%2Ffacebook-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanu-software%2Ffacebook-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanu-software%2Ffacebook-php-sdk/lists"}