Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Facebook client_id on ExchangeForAccessAsync #1

Open
sozdogan opened this issue Aug 8, 2014 · 0 comments
Open

Facebook client_id on ExchangeForAccessAsync #1

sozdogan opened this issue Aug 8, 2014 · 0 comments

Comments

@sozdogan
Copy link

sozdogan commented Aug 8, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant