I have used oAuth 2.0 for facebook login in my mvc 3 razor application. Its working fine for all browsers but not ONLY in Chrome on few computers. Its giving me error as
error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
I am not able to figure out the issue, as its not working only for some computers and unfortunately its not working on my Clients machine.
I got the solution of this issue. Chorme does exact match for your facebook application url and return url. You need to provide EXACT url of your app.
for eg. if your facebook app is http://www.mydomain.com/ then your url must contain http://www. part and not only mydomain.com
But now can anyone help me to restrict my site such that mysite should always open with www.sitename.com Like if i only enter sitename.com it should redirect to www.sitename.com. My site is in MVC 3.
sandy41
Member
7 Points
6 Posts
Dotnetopenauth issue for facebook in chrome
May 01, 2012 10:50 AM|LINK
Hi All,
I have used oAuth 2.0 for facebook login in my mvc 3 razor application. Its working fine for all browsers but not ONLY in Chrome on few computers. Its giving me error as
error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
I am not able to figure out the issue, as its not working only for some computers and unfortunately its not working on my Clients machine.
Please help me to get it done.
sandy41
Member
7 Points
6 Posts
Re: Dotnetopenauth issue for facebook in chrome
May 01, 2012 12:38 PM|LINK
I got the solution of this issue. Chorme does exact match for your facebook application url and return url. You need to provide EXACT url of your app.
for eg. if your facebook app is http://www.mydomain.com/ then your url must contain http://www. part and not only mydomain.com
But now can anyone help me to restrict my site such that mysite should always open with www.sitename.com Like if i only enter sitename.com it should redirect to www.sitename.com. My site is in MVC 3.
aarnott
Member
366 Points
74 Posts
Re: Dotnetopenauth issue for facebook in chrome
May 02, 2012 12:16 AM|LINK
I provided the answer to this over here: http://stackoverflow.com/questions/10396499/facebook-login-issue-with-only-chrome-while-using-dotnetopenauth-2-0-in-mvc-3-ap/10406093#10406093
Visual Studio Project & Build