Here I will explain how to add facebook login website in asp.net or integrate facebook login button to website in asp.net and how to create application in facebook.

Description:

In previous post I explained many articles relating to Asp.net,JQuery, and SQLServer etc. Now I will
explain how to allow users to login with facebook accounts in website using
asp.net.

Before implement facebook login
authentication we need to create the facebook application for that open this
link http://developers.facebook.com/setup/ once open that will
display window like this

In this enter Application Name and
click Continue here App Namespace and web hosting both are optional. After enter
details and click Continue to display Security Check required screen like this

Enter security text and click submit
button once we click it will create application in facebook that would be like
this

Once our app created on facebook that
will be like as shown above image now we can change logo of our app and icon of
our application. After that we need to add Site URL, Canvas URL that would be
the url of your site (Ex: http://aspdotnet-suresh.com) which
site you are going to integrated login button. Actually facebook has stopped
support for localhost
sites (ex: http://localhost/Default.aspx) because of that we need to give hosted domain site url.

131
comments
:

Anonymous
said...

hey dude u r post are superb but u wont attach samples thats the only problems. please try to attach samples with every post. bcoz in code u will add some .js files we have no idea what u wrote in that. so attach sample if possible

dude i will attach the sample for the posts whenever required you can check it in other posts. Actually here no need of attach sample code that's why i didn't attached it. Regarding.js files in above code you just open url i mentioned in script you will see what is there in js file. Anyway i will attach the sample....

This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! Keep up the good work.

Hello,i am using a membership in asp.net website now i am also want to add facebook login but my site all thing like saleing and other details manage by UserID of membershipwhen i lgin from facebook then i how all thing manage i am not getting plz give me any idea how i manage membership with facebook loginthanks

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains sir this error always come help me out

This is kind of old post but good info , new javascript api is out and it's simple too , visit Facebook and read documentation with out hesitation You will every possible solution for all problem there , and @ athiqathiq just check your app domain url that you configured in App , facebook is unable to redirect to your url , give a url that can be accessed from out side of lan or configure to localhost

Getting the following error while login using the facebook login button:

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

Please let me know what could be the issue. I am using application hosted on my IIS with custom URL.

sir i am using that code and application be run but also given error configure to web.config what we configure can you tell me.and my given error is:(Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.)

sir i a have website ....i have integrated fb login ...www.xoxotees.com but the problem is that even if i login in fb still my website is asking for user and password ....can u tell how do i intergrate fb login details in my database ....so that fb details is enough to login in my website

Hello Boss i am Getting this Exception From facebook,i tried a lot with different Domains But still i am getting the Same Please check that out and Suggest me

(Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.)

Hi suresh sir , i am new user ...want to convey that i have created facebook integration as u suggested but when I used it on my web server it shows login page and then Hi message and logout , but not facebook home page like yours ... Please help me .my id is 3011jee@gmail.comThanks

Hey bro,can you tell me why this message "Please use your Personal Account" like this type of message coming after submitting the captcha???I can't create the app.Pls tell me.This is my own account .Though its coming.Pls help me bro.I got a case id while reporting my problem.But still I didnt get any feedback 4m them.Pls bro how to solve this problem.

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains

Sub/ question : I want develop a "blog kind of web application" (where admin post question and user can write answer as blog/comment) and that can be integrate in Facebook but developed using c#

Hi, I just need little help and guidance in the subject. I have worked on 3 tier website reservation management system using ASP.NET C# and used AJAX too. I know html and can understand and edit css.and I know how to create web service and use it. In short comfortable working using Dot Net and said technology. But presently i'm trying to see and develop a "blog kind of web application" (where admin post question and user can write answer as blog/comment) and that can be integrate in Facebook but developed using c#. I have found article using php and yahoo query but i have not work on these and also i want full control on back end like sql server. Because it will be easier and will work with client website as it was created in asp.net. Please help me with this i need to find out and start working at earliest.

hello suresh.followed the steps as you said..it only works for my appidif i try to login with other facebook userid .it dont work.throws error."App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions"how can we allow all users to authenticate ?

hii sir i have one problem when clik login button then show one popup in this error

Given URL is not whitelisted in Client OAuth Settings: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.