[Facebook] A problem when authorizing Facebook pages in Bot Framework.
Pre-flight checklist
- [x] I posted a question about this issue on Stack Overflow using the tag
botframework. - [x] I have searched the existing issues before logging a new one.
System Information (Required)
- **SDK language (C#)
- **SDK version: 3.5.9
- **Development environment -:Azure App Service
Issue Description
The issue originates from the bot framework itself, when i add a new Facebook channel for the first time everything works as expected, what I am trying to do is connecting multiple FB pages to the same bot, I read somewhere that you can do this by re-entering the page info and clicking "resubmit", the problem is when the "resubmit" button is clicked without first clicking "Deautherize" first causes a problem, when i analyzed the request with the browser's inspector it seams that EnableChannelForBot method throws an error.
Also we are developing a service where users can register and link thier FB pages to the bot just like ChatFuel or any other famous bot platform, the main problem is that bot framework is asking for a specific page id and access token per FB bot and you must do it manually through the bot framework dashboard, can we have an easy way to register the bot to multiple FB pages and without having to do so manually through an API or someting Similar? Please work with us to provide a solution for this as soon as you can, bot framework is vital to our work and migrating to another SDK is going to be very costly and time consuming.
Steps to Reproduce
- Create your bot in the Bot framework and Create a new Facebook channel and autherize it.
- Without deautherizing the previous page try to enter the info for some other page and click then "resubmit" button.
- Nothing happens and if the inspector is checked you will find that the server side method EnableChannelForBot throws an exception.
With the new modifications made to the Bot framework platform it no longer throws the exception, if only an API is provided for automatic FB page binding with the FB channel; things will be perfect.
Hi. I am facing a similar issue, however, rather than a 500 error, when I try to save the page information, the page displays a Bad request 400 error: "Oops, something went wrong: Failed to register with Facebook with: BadRequest ID: hMIlBpLVqlk=".
I have never authorised the Facebook channel. The "Delete channel" button is also not accessible. The Facebook Page has not been published. - I tried publishing the Page and resubmitting the framework credentials, however, the error still persisted.
**SDK language (C#) **SDK version: 3.5.5 **Development environment -:Azure App Service
@AHMEDEVELOPER and @eyrdor If this is still an issue, have you tried with the newest SDK 3.8.1 at the time of this post?
The issue is fixed but the no APIs are provided yet to register the FB page with bot framework in an automated manner yet.
Hi there, I have problems with this issue "Unable to save. Failed to register with Facebook with: BadRequest ID"
@Rigo85 You are commenting on a closed issue, can you please open a new issue