-
-
Notifications
You must be signed in to change notification settings - Fork 344
Description
To create new Facebook bot using JBot I need to do the following:
1 Define fbSubscribeUrl, fbSendUrl and fbMessengerProfileUrl properties.
2 Define RestTemplate bean.
All these are internal implementation details that JBot users don't care at all. Having them complicates workflow and introduces copy paste from bot example.
I would suggest the following:
1 Hide internal properties behind JBot code and use Bot#getPageAccessToken method where you need page access token.
2 Hide RestTemplate bean behind JBot code.
So after the fix JBot users will need just to add it to dependencies, extend Bot class and use proper annotations.
Easy and quick and no strange magic code is required.
Please share your vision on this. If everybody is happy I will introduce a PR with a fix.