botman / driver-facebook

BotMan Facebook Messenger Driver
MIT License
71 stars 72 forks source link

TODO: update documentation #106

Open feralheart opened 4 years ago

feralheart commented 4 years ago

Here I track what we should add to the Driver Documentation.

If you have any suggestions feel free to comment on this issue.

anothermorena commented 3 years ago

Please create thorough documentation for those not using Botman Studio. I bought you video course hoping it will be there but its only demonstrating how to use Botman with Botman Studio . I am tried setting up the Facebook driver and its other features like below and its not working.

`$config = [
    //driver-specific configuration
     'facebook' => [
       'token' =>  $_ENV["FACEBOOK_TOKEN"],
       'app_secret' => $_ENV['FACEBOOK_APP_SECRET'],
       'verification'=>$_ENV['FACEBOOK_VERIFICATION'],
       'start_button_payload' => 'GET_STARTED',
       'greeting_text' => [
        'greeting' => [
            [
                'locale' => 'default',
                'text' => 'Hello!',
            ],
            [
                'locale' => 'en_US',
                'text' => 'Timeless apparel for the masses.',
            ],
        ],
    ],
    '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',
              ],
          ],
      ],
  ],

  ]
];`

Is there anything else I am supposed to do or require the classes for them since I can not install them with artisan?