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

[Facebook] A problem when authorizing Facebook pages in Bot Framework.

Open AHMEDEVELOPER opened this issue 9 years ago • 6 comments

Pre-flight checklist


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

  1. Create your bot in the Bot framework and Create a new Facebook channel and autherize it.
  2. Without deautherizing the previous page try to enter the info for some other page and click then "resubmit" button.
  3. Nothing happens and if the inspector is checked you will find that the server side method EnableChannelForBot throws an exception.

capture

AHMEDEVELOPER avatar May 09 '17 15:05 AHMEDEVELOPER

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.

ahmedeveloper1985 avatar May 13 '17 07:05 ahmedeveloper1985

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

eyrdor avatar May 15 '17 20:05 eyrdor

@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?

JasonSowers avatar May 24 '17 21:05 JasonSowers

The issue is fixed but the no APIs are provided yet to register the FB page with bot framework in an automated manner yet.

ahmedeveloper1985 avatar May 27 '17 09:05 ahmedeveloper1985

Hi there, I have problems with this issue "Unable to save. Failed to register with Facebook with: BadRequest ID"

Rigo85 avatar Oct 03 '17 21:10 Rigo85

@Rigo85 You are commenting on a closed issue, can you please open a new issue

JasonSowers avatar Oct 03 '17 21:10 JasonSowers