简体   繁体   中英

How to Login my ASP.NET MVC website through Facebook Login

I want to add facebook login button into my ASP.NET MVC website and I am getting error:

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

I assume you are going with the Server-Side Authentication route. This error means the domain of your redirect_url parameter is not listed in your Facebook App's "App Domains" list.

So either you entered redirect URL incorrectly in your OAuth dialog link, or the proper domain is not listed in your app's "App Domains" list. It is recommended you enter a wildcard domain in your app's App Domains list (eg, example.com) so subdomains are included (eg, www.example.com, blog.example.com)

You can view your Facebook App's App Domains by going to Settings -> Basic -> Basic Info.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM