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

[Feature Request] Multiple Facebook page access tokens

Open vjirovsky opened this issue 10 years ago • 31 comments

Hello, I would like to ask (ASAP, how else? :) for functionality of multiple facebook page access tokens for one bot => I would like to use one Microsoft Bot Framework's bot for multiple pages.

Scenario is: Our company has own Facebook page for every big product, but functionality of Bot is same - so that's why I would like to have one bot for all pages (for easier management and development)

Or if you have some workaround (like API for creating bots), please tell me.

Thank you! Vaclav

vjirovsky avatar Oct 23 '16 09:10 vjirovsky

hello, please do you have any update about that?

Thanks

vjirovsky avatar Dec 18 '16 20:12 vjirovsky

Same use case here

Same use case here as well... any updates?

kralmajster avatar Jan 26 '17 15:01 kralmajster

Hi! Anybody got the answer? I have the same case...

helbermc avatar Jan 29 '17 14:01 helbermc

At the moment the only way I see to achieve this ("one bot for X FB pages") is to create one bot config for each FB page and to set the endpoint of each bot config to the same botbuilder.

-- UPDATE : My solution is KO as bot config needs a unique Microsoft APP ID and bot builder can only reference 1 Microsoft APP ID (in the builder#ChatConnector)

any update?

amitbend avatar Feb 27 '17 10:02 amitbend

any update?

vovanb avatar Mar 01 '17 16:03 vovanb

It seem that one bot can configure for multiple pages. I tested with enter new 'pageId' & 'pagetoken' then resubmit. It work on all my pages.

The problem is UI can not manage , when deauthorize it delete all my pages. Anybody try it?

Vrety avatar Mar 18 '17 03:03 Vrety

@vjirovsky are you using C# or Node SDK for BotBuilder?

nwhitmont avatar Apr 18 '17 20:04 nwhitmont

+1 for this feature. Solution from @Vrety sounds good but it would be great to have an appropriate UI to manage this.

mrrenaud avatar Apr 25 '17 07:04 mrrenaud

@nwhitmont I am using C#, but this is more about Microsoft's website (administration of bots),isn't?

vjirovsky avatar Apr 25 '17 07:04 vjirovsky

Still no solution for this? If the Facebook's access token expires the bot stops completely until I manually access the bot framework site and enter the new access token by hand, this is hugely uneffecient and time consuming and the only way of solving this is to provide an API for people to update the bot's info or remove the pageid/access token entirely from FB bot requirement, I don't know the purpose of these since any page connecting to the bot will require a verify token which acts as a password, complicating things for us is not good Microsoft so please help us with this issue.

ahmedeveloper1985 avatar Jun 15 '17 07:06 ahmedeveloper1985

Any update on this?

shobankr avatar Sep 21 '17 18:09 shobankr

+1

yochail avatar Dec 21 '17 09:12 yochail

@vjirovsky The solution you mentioned has been working for me for almost a year. But starting from Yesterday any page I add replaces the one subscribed before it; This means that the bot stops working on the previous page. All the other pages subscribed over the last year remain working. Is this happening with you as well?

SamaraSara avatar Jan 16 '18 07:01 SamaraSara

+1

krystiangw avatar Jan 17 '18 12:01 krystiangw

This has turned out to be a bug and it's now fixed with no apparent indication of the intention to provide this feature.

SamaraSara avatar Jan 18 '18 09:01 SamaraSara

This feature is much needed, any update? @nwhitmont

amitbend avatar Feb 12 '18 13:02 amitbend

Nope. Unfortunately, I am building a Facebook bot without Microsoft Bot Framework in the middle.

SamaraSara avatar Feb 12 '18 13:02 SamaraSara

One possible workaround is to create multiple bot registrations, and point them all to the same hosted bot.

In .net, you can use a MultiCredentialProvider as explained here: https://github.com/Microsoft/BotBuilder/issues/2258#issuecomment-280506334

There is an explanation for how to do the same thing with a node bot here: https://www.microsoft.com/developerblog/2017/01/10/creating-a-single-bot-service-to-support-multiple-bot-applications

EricDahlvang avatar Feb 13 '18 20:02 EricDahlvang