2017 © Pedro Peláez
 

library php-facebook-messenger

A PHP Library to easily work with the Facebook Messenger REST Web Services.

image

gomoob/php-facebook-messenger

A PHP Library to easily work with the Facebook Messenger REST Web Services.

  • Tuesday, February 27, 2018
  • by bgaillard
  • Repository
  • 7 Watchers
  • 6 Stars
  • 2,731 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

php-facebook-messenger

A PHP Library to easily send Facebook Messenger message with the REST Web Services., (*1)

Total Downloads Latest Stable Version Build Status Coverage Code Climate License, (*2)

First sample, creating a Facebook Messenger text message

// Create a Facebook Messenger client
$client = Client::create()->setPageAccessToken('XXXX-XXX');

// Create a request to send a simple Text Message
$request = TextMessageRequest::create()
    ->setRecipient(Recipient::create()->setId('USER_ID'))
    ->setMessage(TextMessage::create()->setText('hello, world !'));

// Call the REST Web Service
$response = $client->sendMessage($textMessageRequest);

// Check if its ok
if($response->isOk()) {
    print 'Great, the message has been sent !';
} else {
    print 'Oups, the sent failed :-('; 
    print 'Status code : ' . $response->getStatusCode();
    print 'Status message : ' . $response->getStatusMessage();
}

Easy, isn't it ?, (*3)

Documentation

In progress., (*4)

About Gomoob

At Gomoob we build high quality software with awesome Open Source frameworks everyday. Would you 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 you as soon as possible !, (*5)

You can contact us by email at contact@gomoob.com or by phone number (+33) 6 85 12 81 26 or (+33) 6 28 35 04 49., (*6)

Visit also http://gomoob.github.io to discover more Open Source softwares we develop., (*7)

The Versions

27/02 2018
27/02 2018
27/02 2018

1.0.0-alpha4

1.0.0.0-alpha4

A PHP Library to easily work with the Facebook Messenger REST Web Services.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Baptiste Gaillard
by Simon Baudry

notification push pushwoosh gomoob

03/08 2017

1.0.0-alpha3

1.0.0.0-alpha3

A PHP Library to easily work with the Facebook Messenger REST Web Services.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Baptiste Gaillard
by Simon Baudry

notification push pushwoosh gomoob

03/08 2017

1.0.0-alpha2

1.0.0.0-alpha2

A PHP Library to easily work with the Facebook Messenger REST Web Services.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Baptiste Gaillard
by Simon Baudry

notification push pushwoosh gomoob

29/06 2017

1.0.0-alpha1

1.0.0.0-alpha1

A PHP Library to easily work with the Facebook Messenger REST Web Services.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Baptiste Gaillard
by Simon Baudry

notification push pushwoosh gomoob