{"repo":"laravel-notification-channels/facebook","free":true,"listed":false,"github":"https://github.com/laravel-notification-channels/facebook","clone":"git clone https://github.com/laravel-notification-channels/facebook.git","description":"📨 Facebook Notifications Channel for Laravel","language":"PHP","stars":152,"topics":["facebook","laravel-6-package","facebook-messenger","laravel-notifications","laravel-notification-channels","facebook-page","facebook-notification","laravel","php","notifications"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Facebook Notifications Channel for Laravel [![Join PHP Chat][ico-phpchat]][link-phpchat] [![Chat on Telegram][ico-telegram]][link-telegram] [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.md) [![Quality Score][ico-code-quality]][link-code-quality] [![Total Downloads][ico-downloads]][link-packagist] This package makes it easy to send notifications using the Facebook Messenger with Laravel. Contents - Installation - Setting up your Facebook Bot - Usage - Available Message methods - Available Button methods - Available Card methods - Contributing - Credits - License Installation You can install the package via composer: Setting up your Facebook Bot Follow the Getting Started guide in order to create a Facebook Messenger app, a Facebook page and a page token, which is connecting both. Next we need to add this token to our Laravel configurations. Create a new Facebook section inside config/services.php and place the page token there: Usage Let's take an invoice-paid-notification as an example. You can now use the Facebook channel in your via() method, inside the InvoicePaid class. The to($userId) method defines the Facebook user, you want to send the notification to. Based on the details you add (text, attachments etc.) will determine automatically the type of message to be sent. For example if you only add text() then it will be a basic message; using attach() will turn this into a attachment message. Having buttons or card","default_branch":null,"files":null,"tree":[],"storefront":"/r/laravel-notification-channels","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/laravel-notification-channels/facebook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}