{"id":18471365,"url":"https://github.com/gomoob/php-facebook-messenger","last_synced_at":"2025-04-08T11:32:11.098Z","repository":{"id":62511767,"uuid":"94405237","full_name":"gomoob/php-facebook-messenger","owner":"gomoob","description":"A PHP Library to easily work with the Facebook Messenger REST Web Services.","archived":false,"fork":false,"pushed_at":"2018-02-27T14:20:03.000Z","size":350,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T11:51:18.126Z","etag":null,"topics":["facebook","facebook-messenger","facebook-messenger-bot","facebook-messenger-platform","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gomoob.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-15T06:01:10.000Z","updated_at":"2017-07-11T09:53:49.000Z","dependencies_parsed_at":"2022-11-02T10:32:47.893Z","dependency_job_id":null,"html_url":"https://github.com/gomoob/php-facebook-messenger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-facebook-messenger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-facebook-messenger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-facebook-messenger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomoob%2Fphp-facebook-messenger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gomoob","download_url":"https://codeload.github.com/gomoob/php-facebook-messenger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247833992,"owners_count":21003897,"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":["facebook","facebook-messenger","facebook-messenger-bot","facebook-messenger-platform","php"],"created_at":"2024-11-06T10:16:43.780Z","updated_at":"2025-04-08T11:32:10.419Z","avatar_url":"https://github.com/gomoob.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-facebook-messenger\n\n\u003e A PHP Library to easily send Facebook Messenger message with the REST Web Services.\n\n[![Total Downloads](https://img.shields.io/packagist/dt/gomoob/php-facebook-messenger.svg?style=flat)](https://packagist.org/packages/gomoob/php-facebook-messenger) \n[![Latest Stable Version](https://img.shields.io/packagist/v/gomoob/php-facebook-messenger.svg?style=flat)](https://packagist.org/packages/gomoob/php-facebook-messenger) \n[![Build Status](https://img.shields.io/travis/gomoob/php-facebook-messenger.svg?style=flat)](https://travis-ci.org/gomoob/php-facebook-messenger)\n[![Coverage](https://img.shields.io/coveralls/gomoob/php-facebook-messenger.svg?style=flat)](https://coveralls.io/r/gomoob/php-facebook-messenger?branch=master)\n[![Code Climate](https://img.shields.io/codeclimate/github/gomoob/php-facebook-messenger.svg?style=flat)](https://codeclimate.com/github/gomoob/php-facebook-messenger)\n[![License](https://img.shields.io/packagist/l/gomoob/php-facebook-messenger.svg?style=flat)](https://packagist.org/packages/gomoob/php-facebook-messenger)\n\n## First sample, creating a Facebook Messenger text message\n\n```php\n// Create a Facebook Messenger client\n$client = Client::create()-\u003esetPageAccessToken('XXXX-XXX');\n\n// Create a request to send a simple Text Message\n$request = TextMessageRequest::create()\n    -\u003esetRecipient(Recipient::create()-\u003esetId('USER_ID'))\n    -\u003esetMessage(TextMessage::create()-\u003esetText('hello, world !'));\n\n// Call the REST Web Service\n$response = $client-\u003esendMessage($textMessageRequest);\n\n// Check if its ok\nif($response-\u003eisOk()) {\n    print 'Great, the message has been sent !';\n} else {\n    print 'Oups, the sent failed :-('; \n    print 'Status code : ' . $response-\u003egetStatusCode();\n    print 'Status message : ' . $response-\u003egetStatusMessage();\n}\n```\n\nEasy, isn't it ? \n\n## Documentation\n\nIn progress.\n\n## About Gomoob\n\nAt [Gomoob](https://www.gomoob.com) we build high quality software with awesome Open Source frameworks everyday. Would \nyou like to start your next project with us? That's great! Give us a call or send us an email and we will get back to \nyou as soon as possible !\n\nYou can contact us by email at [contact@gomoob.com](mailto:contact@gomoob.com) or by phone number \n[(+33) 6 85 12 81 26](tel:+33685128126) or [(+33) 6 28 35 04 49](tel:+33685128126).\n\nVisit also http://gomoob.github.io to discover more Open Source softwares we develop.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomoob%2Fphp-facebook-messenger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgomoob%2Fphp-facebook-messenger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomoob%2Fphp-facebook-messenger/lists"}