Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persistent menu error #96

Open
ibrahem-kamal opened this issue Jul 1, 2021 · 0 comments
Open

persistent menu error #96

ibrahem-kamal opened this issue Jul 1, 2021 · 0 comments

Comments

@ibrahem-kamal
Copy link

hi i am getting this error even though i ran

php artisan fb:get-start WELCOME_MESSAGE

and the output is success , i am following your demo but i dont know what i am doing wrong , here is the code i have

menu.php

Menu::locale('default', function () {
    Menu::postback('Test Button', 'WELCOME_MESSAGE');
    Menu::webUrl('WebUrl', 'https://github.com/CasperLaiTW/laravel-fb-messenger');
});

fb-messenger.php

return [
    'debug' => env('APP_DEBUG', false),
    'verify_token' => env('MESSENGER_VERIFY_TOKEN'),
    'app_token' => env('MESSENGER_APP_TOKEN'),
    'app_secret' => env('MESSENGER_APP_SECRET'),
    'auto_typing' => true,
    'handlers' => [
        ShowProductMenuHandler::class
    ],
    'custom_url' => '/chatbot',
    'postbacks' => [
        WelcomePostback::class,
        BuyProductPostback::class,
        ConfirmedProductPostback::class,
        CanceledProductPostback::class,
    ],
    'home_url' => [
        'url' => env('MESSENGER_HOME_URL'),
        'webview_share_button' => 'show',
        'in_test' => true,
    ],
];

(#100) You must set a Get Started button if you also wish to use persistent menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant