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

[Nodejs, Fb Messenger] Error Changing Settings For Facebook Messenger in Azure Portal

Open rongyao2006 opened this issue 8 years ago • 23 comments

Hi, am still having the issue, unable to change my settings in the azure portal.

Bot Info

  • SDK Platform: NodeJS
  • SDK Version: 8.11.1
  • Active Channels: Facebook
  • Deployment Environment: Google Cloud Compute Engine

Issue Description

Whenever I try to change any settings for Facebook Channel, I get the following error

Unable to save. Failed to validate Facebook credentials: invalid token ID:

Reproduction Steps

  1. Go to Azure Portal
  2. Go to bot channel registration resource
  3. Go to channels
  4. Amend settings for Facebook Messenger
  5. Save Changes
  6. Error message in red bar appears on top

rongyao2006 avatar Apr 23 '18 13:04 rongyao2006

Can you please provide your app ID? This error also indicates that your Facebook credentials are invalid. can you please verify that they are all correct?

JasonSowers avatar Apr 23 '18 21:04 JasonSowers

@JasonSowers Here's my app ID: bb0b6524-2c77-4cb3-97b9-4777a4e48d54

Pretty sure I the credentials are correct, and i tried like more than 10 times but it just refuse to go through.

rongyao2006 avatar Apr 24 '18 00:04 rongyao2006

I tried deleting the channel and adding again, but that failed too.

rongyao2006 avatar Apr 24 '18 15:04 rongyao2006

Are your credentials perhaps in use by another bot?

JasonSowers avatar Apr 25 '18 20:04 JasonSowers

I'm experiencing the same issue - unable to save any changes to the Facebook channel settings with the following error:

Unable to save. Failed to validate Facebook credentials: invalid token ID:

App ID is 2573bec2-891f-4ade-b5ac-65d3e2f7148e

LMEdwards avatar Apr 27 '18 12:04 LMEdwards

I get the exact same error when I create a new Bot Channel Registration in Azure and try to configure a Facebook Messenger channel. I am using the correct Facebook credentials for sure but I get the "Unable to save. Failed to validate Facebook credentials" error. This must be a problem coming from Azure.

Do you know when this will be resolved?

algomaks avatar May 06 '18 22:05 algomaks

I have the same error when try to configure Facebook channel:

"Unable to save. Failed to validate Facebook credentials: invalid token ID:" App ID: 7e440ebd-e3df-4876-9168-dc1938d1e8d9

I have only one Bot Channel Registration now. A month ago I configured FB channel without any problem, but yesterday I changed Messaging endpoint and try to reconnect FB page and got the error. Then I deleted old Channel Registration and create a new one, during configuring FB channel got the same error.

Any updates from Azure guys ?

otiunov avatar May 07 '18 07:05 otiunov

Invalid Token errors typically mean that there's a problem with either the AppId, AppSecret or AccessToken. We validate those parameters via Facebook's debug_token api. You can try it yourself by making a get call in your browser to https://graph.facebook.com/v3.0/debug_token?input_token={accessToken}&access_token={appId}|{appSecret} and see what error comes back.

craigjensen avatar May 08 '18 17:05 craigjensen

@craigjensen I just did a validation as you said via debug_token: everything works (no errors). But Channel Registration still returns the same error.

Please check

otiunov avatar May 08 '18 21:05 otiunov

Would you mind sending me the debug_token output at cjensen (at) microsoft.com?

craigjensen avatar May 08 '18 22:05 craigjensen

@craigjensen Done. Please check email

otiunov avatar May 09 '18 19:05 otiunov

It works!!! Thanks

otiunov avatar May 09 '18 20:05 otiunov

Is this not resolved for anyone?

JasonSowers avatar May 18 '18 22:05 JasonSowers

@JasonSowers at 9 or 10th of May I was capable to create new Facebook channel. Looks like something was changed on the Facebook side and at least at that moment it was fine

pavlovps avatar May 21 '18 05:05 pavlovps

hi i too experienced the same issue ,can anybody please suggest me to resolve this error

priyatharshiniSundaram avatar Oct 10 '18 07:10 priyatharshiniSundaram

Try hitting the debug_token endpoint directly from your browser and see if it provides any clues as to what the problem might be: https://graph.facebook.com/v3.0/debug_token?input_token={accessToken}&access_token={appId}|{appSecret} (Make sure you substitute your accessToken, appId and appSecret)

craigjensen avatar Oct 10 '18 14:10 craigjensen

Please also verify that the returned profile_id matches the PageId that you entered into the Facebook settings page.

craigjensen avatar Oct 11 '18 14:10 craigjensen

hi thanks for your support.

Its working now,could you able to help me to automate my bot messenger in FB,any reference article.

Thanks & Regards,

Priyatharshini.S


From: craigjensen [email protected] Sent: Thursday, October 11, 2018 8:31 PM To: Microsoft/BotBuilder Cc: Priyatharshini Sundaram; Comment Subject: Re: [Microsoft/BotBuilder] [Nodejs, Fb Messenger] Error Changing Settings For Facebook Messenger in Azure Portal (#4516)

Please also verify that the returned profile_id matches the PageId that you entered into the Facebook settings page.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/4516#issuecomment-428985053, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkCw9djOpGn1fnimH8Cny54w20zdosEoks5uj11DgaJpZM4Tf32C.

Disclaimer:This message and the information contained herein is proprietary and confidential and subject to the 8KMiles policy statement at https://8kmiles.com/Email-Disclaimer/.

priyatharshiniSundaram avatar Oct 12 '18 06:10 priyatharshiniSundaram

We are facing the above issue all of a sudden from today morning. Our bot is working fine for the past one year and from today we are getting this error. "This Page access token belongs to a Page that is not accessible"

prasanthrpadharthi avatar Jan 09 '19 08:01 prasanthrpadharthi

Any quick help on how to solve the same. Advance thanks

prasanthrpadharthi avatar Jan 09 '19 08:01 prasanthrpadharthi