Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to login using Facebook #206

Open
kudakwashegore opened this issue Mar 31, 2016 · 9 comments
Open

Failing to login using Facebook #206

kudakwashegore opened this issue Mar 31, 2016 · 9 comments
Labels

Comments

@kudakwashegore
Copy link

kudakwashegore commented Mar 31, 2016

I set up my MVC site to use Facebook and Google Auth. Google is working well, but I am always getting the following error when trying to use Facebook.

Message: Failed to retrieve an Access Token from Facebook.

StackTrace: 
at SimpleAuthentication.Core.Providers.BaseOAuth20Provider`1.RetrieveAccessToken(String authorizationCode, Uri redirectUri)
at SimpleAuthentication.Core.Providers.BaseOAuth20Provider`1.AuthenticateClient(NameValueCollection queryStringParameters, String state, Uri callbackUri)
at SimpleAuthentication.Mvc.SimpleAuthenticationController.AuthenticateCallback(AuthenticateCallBackInputModel inputModel)
@PureKrome
Copy link
Member

Hi @kudakwashegore

what nuget package version of SimpleAuth are you using?
also, what mvc version?
does your code redirect to the facebook site OK? you get asked to log in ok (with FB?) etc?

@kudakwashegore
Copy link
Author

Hi @PureKrome

I am using SimpleAuthentication.Mvc v0.6.0.0. on System.Web.MVC 4.0.0.0
The code redirects to Facebook and login without any problem. Then when Facebook redirects back to {domain_name_here}/authentication/authenticatecallback?providerkey=facebook&code={some long code here}

That's when the error is displayed.

@kudakwashegore
Copy link
Author

@PureKrome

I got it working by deleting SimpleAuthentication.Core installed via NuGet package manager & replacing it with SimpleAuthentication.Core.dll from GitHub source code. I noticed the GitHub version is more recent than the NuGet version

@PureKrome PureKrome added the bug label Jun 26, 2016
@manavpandya
Copy link

When im execute application nothing happen , what to do , guide me please

@PureKrome
Copy link
Member

@manavpandya We really need way more information. You might also want to create a new/separate issue with the details, etc.

@manavpandya
Copy link

@PureKrome

Total Error comes : 30
can not able to execute
There are multiple project in one solution

So telll me that how to execute specific project

@PureKrome
Copy link
Member

@manavpandya we need more info. like stack traces and steps to reproduce and code snippets so we can see what's going on.

@manavpandya
Copy link

@PureKrome
Sir i just want steps to run your source code
nothing else
than i can say more

@PureKrome
Copy link
Member

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

No branches or pull requests

3 participants