CasperLaiTW / laravel-fb-messenger

Laravel Facebook Messenger Provider
MIT License
105 stars 27 forks source link

Request: Sample Laravel App #59

Closed seatechdev closed 7 years ago

seatechdev commented 7 years ago

Is it possible for you to publish a sample laravel app?

joelcuevas commented 7 years ago

I second that motion!

CasperLaiTW commented 7 years ago

I will publish quickly.

seatechdev commented 7 years ago

Thanks. Also we know that you are overseas. But is there a way for you publish the interface to payments API? We can test it in the US.

CasperLaiTW commented 7 years ago

Hi guys

I create a demo project.

https://github.com/CasperLaiTW/fb-messenger-demo

I think it can help you to make your app.

If example is not fully, please create an issues in demo repository which template you want to get.

I will add more template to demo project for help you

CasperLaiTW commented 7 years ago

Main issue was solved

joelcuevas commented 7 years ago

Wow, what a great sample! Perfectly documented on the commits! Thanks! 😃

seatechdev commented 7 years ago

Thanks. I will try running it tonight.

seatechdev commented 7 years ago

What would the webhook for the app? I didn't see any entries in the routes. probably will need an exception added to the midleware as well.

CasperLaiTW commented 7 years ago

can you run php artisan route:list you will get the webhook path.

if you don't want to use /webhook you can change config at custom_url

2017-02-10 2 19 25
seatechdev commented 7 years ago

Yes i just saw that and submitted the webhook and it accepted it. I have updated the .env file with my token and verify token as well. But when i open the bot in messenger it doesn't do anything. It also doesn't reply back even if I ping it. I have added the csrf token exception in the middleware for webhook

seatechdev commented 7 years ago

Also in the subscription are we supposed to have only messages, messaging_account_linking, messaging_optins, messaging_postbacks or can I we have more fields?

CasperLaiTW commented 7 years ago

We move to https://github.com/CasperLaiTW/fb-messenger-demo/issues/1 to discuss :)