I'm attempting to use DotNetOpenAuth for some web single sign on functionality.
I got the samples working for Google and Yahoo but am struggling with Facebook.
I am using the CTP (4.0.0.11165) and have followed the example in this SO question.
However, I get a runtime error on the line:
IAuthorizationState authorization = client.ProcessUserAuthorization();
The error is:
Failed to obtain access token. Authorization Server reports reason: (unknown)
Any ideas?
The build you're using is incompatible with Facebook because Facebook is using an older spec of OAuth 2.0. You have to use an earlier CTP (one with a v3.5 version) to work with Facebook. Sorry. It stinks to be using OAuth 2.0 when everyone is on a different draft of the unfinalized spec.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With