You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Yesterday it was working fine with repository code. Today, suddenly it started giving me 400 Bad request error in
facebookProvider.OAuthOperations.ExchangeForAccessAsync(code, callbackUrl, Nothing)
RestTemplate default exception error was not descriptive enough. I had to spend some time to figure out the real problem. Facebook was asking for "client_id" on https://graph.facebook.com/oauth/access_token call.
and problem was solved. I have no idea it was my configuration or suddenly facebook changed its implementation. I have checked their web site and client_id was mandatory.
FYI.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Yesterday it was working fine with repository code. Today, suddenly it started giving me 400 Bad request error in
facebookProvider.OAuthOperations.ExchangeForAccessAsync(code, callbackUrl, Nothing)
RestTemplate default exception error was not descriptive enough. I had to spend some time to figure out the real problem. Facebook was asking for "client_id" on https://graph.facebook.com/oauth/access_token call.
I have changed constructor to (see true in base parameters):
public FacebookOAuth2Template(string clientId, string clientSecret)
: base(clientId, clientSecret,
"https://graph.facebook.com/oauth/authorize",
"https://graph.facebook.com/oauth/access_token",
true)
{
}
and problem was solved. I have no idea it was my configuration or suddenly facebook changed its implementation. I have checked their web site and client_id was mandatory.
FYI.
The text was updated successfully, but these errors were encountered: