botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Feature Request] An issue regarding Facebook Expired Access Tokens and Page Linking.

Open ahmedeveloper1985 opened this issue 9 years ago • 4 comments

Hello, There is an issue when in some cases the Facebook access token expires when the page owner change their password or in some cases without any real reason, the bot stops when this happens and there's no way to fix this but to manually enter the new access token by hand in the Bot Framework site, this is a huge waste of time since I have a script that checks for invalid access tokens and if the token expires it updates it automatically, of course there's currently no way to accomplish this automatically without an API.

Another scenario is to open the possibility for multiple Facebook Pages to register themselves on the same Bot, this will require me to manually submit each page id and access token which is not acceptable because I want to automate the process for users like Chat Fuel.

There are 2 possible solutions I was hoping for the development team to consider:

1- Provide an API for us to register new pages with the bot by code; I believe an API already exists "api/bots/{bot_name}/channels/facebook" but it requires Microsoft Login to be Authorize requests, if you provide a simpler form of Token Bearer Authorization or any simpler direct method to let us use the API this would solve the problem.

2- Remove the Page ID and Access Tokens requirements entirely from the Facebook bot form, any page will use the "Verify Token" to authorize itself with the bot so (as far as I know) there's no direct need to enter these info in the bot itself.

Thanks in advance guys.

ahmedeveloper1985 avatar Jun 15 '17 07:06 ahmedeveloper1985

Will someone from Microsoft please provide any aid!

ahmedeveloper1985 avatar Jun 16 '17 09:06 ahmedeveloper1985

Hi, we are facing the same problem. Bot installation automation. did you have an update data about it?

tunybot avatar Jul 19 '17 11:07 tunybot

Nothing yet sadly.

ahmedeveloper1985 avatar Jul 19 '17 22:07 ahmedeveloper1985

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.

From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.

As part of this restructuring, we are closing all tickets in this repo.

For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here: https://github.com/microsoft/botbuilder-v3/issues

For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here: https://github.com/microsoft/botframework-services/issues

For product behavior, how-to, or general understanding questions, please use Stackoverflow. https://stackoverflow.com/search?q=bot+framework

Thank you.

The Bot Framework Team

JasonSowers avatar Oct 01 '18 22:10 JasonSowers