Skip to content

Instantly share code, notes, and snippets.

@mpociot
Created January 30, 2018 20:22
Show Gist options
  • Select an option

  • Save mpociot/f1105accb8451e355030c31e73efc7c9 to your computer and use it in GitHub Desktop.

Select an option

Save mpociot/f1105accb8451e355030c31e73efc7c9 to your computer and use it in GitHub Desktop.
Facebook Multitenancy Config
<?php
return [
/*
|--------------------------------------------------------------------------
| Multitenancy Support
|--------------------------------------------------------------------------
|
| Here you can decide wether your chatbot supports multiple
| Facebook pages.
|
*/
'multitenancy_enabled' => true,
/*
|--------------------------------------------------------------------------
| Multitenancy Settings
|--------------------------------------------------------------------------
|
| Define the credentials for each Facebook page that your application
| supports.
|
*/
'multitenancy' => [
[
'page_id' => 1,
'token' => 'tenant-1',
'app_secret' => 'app-secret-1',
'verification' => 'verification-1'
],
[
'page_id' => 1,
'token' => 'tenant-2',
'app_secret' => 'app-secret-1',
'verification' => 'verification-1'
],
],
/*
|--------------------------------------------------------------------------
| Facebook Token
|--------------------------------------------------------------------------
|
| Your Facebook application you received after creating
| the messenger page / application on Facebook.
|
*/
'token' => env('FACEBOOK_TOKEN'),
/*
|--------------------------------------------------------------------------
| Facebook App Secret
|--------------------------------------------------------------------------
|
| Your Facebook application secret, which is used to verify
| incoming requests from Facebook.
|
*/
'app_secret' => env('FACEBOOK_APP_SECRET'),
/*
|--------------------------------------------------------------------------
| Facebook Verification
|--------------------------------------------------------------------------
|
| Your Facebook verification token, used to validate the webhooks.
|
*/
'verification' => env('FACEBOOK_VERIFICATION'),
/*
|--------------------------------------------------------------------------
| Facebook Start Button Payload
|--------------------------------------------------------------------------
|
| The payload which is sent when the Get Started Button is clicked.
|
*/
'start_button_payload' => 'GET_STARTED',
/*
|--------------------------------------------------------------------------
| Facebook Greeting Text
|--------------------------------------------------------------------------
|
| Your Facebook Greeting Text which will be shown on your message start screen.
|
*/
'greeting_text' => [
'greeting' => [
[
'locale' => 'default',
'text' => 'Hello!',
],
[
'locale' => 'en_US',
'text' => 'Timeless apparel for the masses.',
],
],
],
/*
|--------------------------------------------------------------------------
| Facebook Persistent Menu
|--------------------------------------------------------------------------
|
| Example items for your persistent Facebook menu.
|
*/
'persistent_menu' => [
[
'locale' => 'default',
'composer_input_disabled' => 'true',
'call_to_actions' => [
[
'title' => 'My Account',
'type' => 'nested',
'call_to_actions' => [
[
'title' => 'Pay Bill',
'type' => 'postback',
'payload' => 'PAYBILL_PAYLOAD',
],
],
],
[
'type' => 'web_url',
'title' => 'Latest News',
'url' => 'http://botman.io',
'webview_height_ratio' => 'full',
],
],
],
],
/*
|--------------------------------------------------------------------------
| Facebook Domain Whitelist
|--------------------------------------------------------------------------
|
| In order to use domains you need to whitelist them
|
*/
'whitelisted_domains' => [
'https://petersfancyapparel.com',
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment