Hi, I want to login with facebook account from my website MVC4 razor c# and add permissions for a FB user and for a FB page. I was found this article and try to do the same https://github.com/aspnet/Docs/blob/master/aspnet/mvc/overview/older-versions/using-oauth-providers-with-mvc.md
but I'm facing this error : Login Failure. Unsuccessful login with service.
What does this error means and how can resolve that problem. Thanks.
Looking at the image I think you are missing re-directing URL, but take a look at this link
It is for Java developers but first section explains setp by step on how to register app on facebook.
Please always mention complete error details with your Current code so other users can understand your issue.
As per your current description trying checking these links
If you want better guide to add OAuth login for Facebook, google in your MVC application, read this article
You may have not registered application properly on facebook or inside your Application using OAuth.
Thanks Vikas You are right I'm not able to registered application properly on facebook This is the picture below Please can you told me how we can fill it Thanks . I'm working with Visual web developer 2010 Express and localhost I don't have a website online.
Thanks Vikas we can also use this article it very nice ..
Hi vikas I have set a redirect url please take a look at below picture :
leave app domain empty
website url empty
go to app->settings->advance settings
here is a field
Valid OAuth redirect URIs
It work now . Thanks.
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly