Hello Heiko - Thank you very much for taking the time to give feedback and for all the heartfelt wishes. Means a lot. I am very glad you found the videos useful. Here is the complete Web API playlist. Hope you will find this web api course useful. Good luck and all the very best with everything you are doing. Thank you for sharing this free resource. ua-cam.com/play/PL6n9fhu94yhW7yoUOGNOfHurUE6bpOO2b.html
Dear sir As usual your tutorials are so clear to me. I havnt got enough words to tell you how much I thank you for these tutorials which I studies so much from them. It is good to know that you keep your tutorials updates. Thank you so much
it seems like a lot has changed in facebook developer in terms of Interface and overall process, It would be great if you make a new updated tutorial, but much thanks as always.
I love the Videos from kudvenkat. Really appreciate your work. kudvenkat article is a synonym for any solution in .NET. In fact, I learned a lot from your videos. Thanks a lot.
Great video. One critical step for everyone - You must upgrade your Microsoft.OWIN.Security.Facebook package to 4.0 or later (via NuGet Package Manager) otherwise you will end up getting access denied error after FB authenticates you.
Hi. Very nice tutorial. Tutorial limitation: If you have in database one email address for gmail you cannot use the same email address to connect via Facebook. You will receive error "Bad request ...."
Hi Venkat, thank you so much for this wonderful tutorial. I am not using MVC in my project, it is an empty application. Please how do I integrate this facebook authentication in an empty asp.net application. Thank you
Reall xoxoxo I love you too baby girl and I have been talking to him about it and he said he would be a good time to get in touch with you to see if you are still interested in the position and would like to get a good picture of the video and I have been talking to him about it and he said he would be a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there at a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there at a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there at a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there
hello venkat ,thanks for this video, it helped me a lot , now I am trying to create testapp in facebook developer site. but it seems that from 2018 onwards they Enforce Https by default for Redirect URI's ,so i am not able to provide http uri as valid oauth redirect uri's . is there someway to prevent this check or I need to enable https in my EmployeeService's Login page. awaiting your response? thanks in advance.
Respected Sir I am Jehangir Wahid, your student at your youtube channel, I've learnt many things about Dot NET Framework from there. Sir now I am developing a desktop application, for which I want to authenticate the user by putting his/her finger on Bio-metric device to capture his/her fingerprint and match it with the registered fingerprint images. Sir if you please upload a video tutorial there for the above scenario, It will save me and my work. Sir please help. Thanks for your kind consideration.
Sir, I have done the same in my web api project and i'm getting an error that is Authentication.GetExternalLoginInfoAsync(); piece of code returning null value for both external provider google and facebook. Kindly suggest a proper solution for this I'm using vs2019 asp.net web api project
@@abhineetkool He is not asking if you have https on your urls. I'm also facing the same problem since i'm working on localhost. Have any workaround for that?
please reply to help me. Why does the web api have view pages? (Login.html) I am doing backend api to login facebook authencation with identity asp.net core. just rest api and no login buttons or any views. What should I do? Thank you very much
I am going to apply it but in creating app it need privacy policy url and new configuring interface is diffrent ,i am facing problem in creating app in devloper.facebook.com plz help me i am needy
I have my gmail account and facebook same mail id so when I try to click on login with facebook getting bad request when I debug it says cant create user as its already exist , When i debuged it with immidiate window I found that User.Identity.getUserName is null:-) why username is coming null:-(
Hi Sir I am integrating facebook login using mvc but i am getting error URL Blocked: 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.
Facebook has changed their privacy settings for the developers.You gonna need a domain with starts with '' for this facebook authentication to work.Hope I helped!
Yes , It does contain: // // Summary: // Initializes a new Microsoft.Owin.Security.Facebook.FacebookAuthenticationOptions public FacebookAuthenticationOptions(); // // Summary: // Gets or sets the Facebook-assigned appId public string AppId { get; set; } // // Summary: // Gets or sets the Facebook-assigned app secret public string AppSecret { get; set; } // // Summary: // Gets or sets the URI where the client will be redirected to authenticate. The // default value is 'facebook.com/dialog/oauth'. public string AuthorizationEndpoint { get; set; } // // Summary: // Gets or sets the a pinned certificate validator to use to validate the endpoints // used in back channel communications belong to Facebook. // // Remarks: // If this property is null then the default certificate checks are performed, validating // the subject name and if the signing chain is a trusted party. public ICertificateValidator BackchannelCertificateValidator { get; set; } // // Summary: // The HttpMessageHandler used to communicate with Facebook. This cannot be set // at the same time as BackchannelCertificateValidator unless the value can be downcast // to a WebRequestHandler. public HttpMessageHandler BackchannelHttpHandler { get; set; } // // Summary: // Gets or sets timeout value in milliseconds for back channel communications with // Facebook. public TimeSpan BackchannelTimeout { get; set; } // // Summary: // The request path within the application's base path where the user-agent will // be returned. The middleware will process this request when it arrives. Default // value is "/signin-facebook". public PathString CallbackPath { get; set; } // // Summary: // Get or sets the text that the user can display on a sign in user interface. public string Caption { get; set; } // // Summary: // Gets or sets the Microsoft.Owin.Security.Facebook.IFacebookAuthenticationProvider // used to handle authentication events. public IFacebookAuthenticationProvider Provider { get; set; } // // Summary: // A list of permissions to request. public IList Scope { get; } // // Summary: // Gets or sets if the appsecret_proof should be generated and sent with Facebook // API calls. This is enabled by default. public bool SendAppSecretProof { get; set; } // // Summary: // Gets or sets the name of another authentication middleware which will be responsible // for actually issuing a user System.Security.Claims.ClaimsIdentity. public string SignInAsAuthenticationType { get; set; } // // Summary: // Gets or sets the type used to secure data handled by the middleware. public ISecureDataFormat StateDataFormat { get; set; } // // Summary: // Gets or sets the URI the middleware will access to exchange the OAuth token. // The default value is 'graph.facebook.com/oauth/access_token'. public string TokenEndpoint { get; set; } // // Summary: // Gets or sets the URI the middleware will access to obtain the user information. // The default value is 'graph.facebook.com/me'. public string UserInformationEndpoint { get; set; }
I was using Microsoft.Owin.Security.Facebook version 3.0.1 from Nuget. Updated it to the prelease version 3.1.0 from Nuget and I no longer got the access denied error.
I was getting this error "error=access_denied" when logging into my Facebook account. To fix this error, I changed Microsoft.Owin.Security.Facebook version 3.0.1 from Nuget to the latest version (4.0.0) and I am no longer getting this access denied error and was able to redirect to data.html page.
Hi, I implemented Google and Facebook login by following your tutorial on Angular 6 front end and Web Api Backnend. Everything ran perfectly in development environment and when I hosted the app on IIS on windows server 2016 the logins stopped working giving 500 error on register external, on debugging the issue found out tha authentication. Getexternalloginasync return a null and user info object from get user info gets the username as first and last name instead of an email. I am stuck with the issue for over a week, please can you help me and FYI I was using proxy config on Angular in development
I was getting this error "error=access_denied" when loging to with my Facebook password and user id. To fix this errorr change Microsoft.Owin.Security.Facebook version 3.0.1 from Nuget. to the version 3.1.0 from Nuget and I am no longer getting this access denied error. and was able to redirect to data,HTML page.
Here is the link to the text article from where you can copy and paste all the required code, instead of typing by hand. csharp-video-tutorials.blogspot.com/2017/02/aspnet-web-api-facebook-authentication.html Here is the link for all the ASP .NET Web API text articles. Hope you will find these text articles useful. csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html
i am getting error like Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.
Hello Ratnadip - You can find the text version of the source code file on our blog at the following link. Hope this helps. csharp-video-tutorials.blogspot.com/2017/02/aspnet-web-api-facebook-authentication.html
Hi Venkat,
A fantastic and fabulous job. I have No words to tell how much I'm thankful to your tutorials all I can say a 'BIG THANKS'.
Just searched on google for this and found your very nicely made tutorial. Thanks.
Hello Heiko - Thank you very much for taking the time to give feedback and for all the heartfelt wishes. Means a lot. I am very glad you found the videos useful.
Here is the complete Web API playlist. Hope you will find this web api course useful. Good luck and all the very best with everything you are doing. Thank you for sharing this free resource.
ua-cam.com/play/PL6n9fhu94yhW7yoUOGNOfHurUE6bpOO2b.html
@@Csharp-video-tutorialsBlogspot This video is outdated. Can you plz refer us to another one?
Dear sir
As usual your tutorials are so clear to me. I havnt got enough words to tell you how much I thank you for these tutorials which I studies so much from them.
It is good to know that you keep your tutorials updates.
Thank you so much
it seems like a lot has changed in facebook developer in terms of Interface and overall process, It would be great if you make a new updated tutorial, but much thanks as always.
I love the Videos from kudvenkat. Really appreciate your work. kudvenkat article is a synonym for any solution in .NET. In fact, I learned a lot from your videos. Thanks a lot.
Great video. One critical step for everyone - You must upgrade your Microsoft.OWIN.Security.Facebook package to 4.0 or later (via NuGet Package Manager) otherwise you will end up getting access denied error after FB authenticates you.
Hi. Very nice tutorial.
Tutorial limitation: If you have in database one email address for gmail you cannot use the same email address to connect via Facebook. You will receive error "Bad request ...."
Where can we find the facebook user information endpoint? This one is outdated.
Sir u r awesome ❣️
Sir,
Would you please discuss external authentication providers like Twitter, Microsoft?
Thanks
Would you please discuss external authentication providers like Twitter, Microsoft
Hi Venkat, thank you so much for this wonderful tutorial. I am not using MVC in my project, it is an empty application. Please how do I integrate this facebook authentication in an empty asp.net application. Thank you
Thank you for this video!
Reall xoxoxo I love you too baby girl and I have been talking to him about it and he said he would be a good time to get in touch with you to see if you are still interested in the position and would like to get a good picture of the video and I have been talking to him about it and he said he would be a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there at a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there at a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there at a good time to get in touch with you to see if you are still interested in the position and would like to know you better and I will be there
hello venkat ,thanks for this video, it helped me a lot , now I am trying to create testapp in facebook developer site. but it seems that from 2018 onwards they Enforce Https by default for Redirect URI's ,so i am not able to provide http uri as valid oauth redirect uri's . is there someway to prevent this check or I need to enable https in my EmployeeService's Login page. awaiting your response? thanks in advance.
Thanks for your video and efforts, by any chance, can we do something similar using VB.NET ?
Thanks a lot
hello
you have any demo Web API facebook authentication to web pages in C# (ASP.NET)
One AppID and AppSecret could generate different access token from different Facebook account (correct credential)
thanks a lot sir. Love to see paypal integration too.
Web API tutorials are back!!
Let's Code!👏👏
One AppId and AppSecret could generate access token from different Facebook accounts am I correct?
Amazing, very very thanks man
guys, is there a video for async methods by Venkat ????thank you and have a great day!!!!!!
its not clear, if you have used asp.net web api + asp.net web app or just asp.net web app??
Respected Sir
I am Jehangir Wahid, your student at your youtube channel, I've learnt many things about Dot NET Framework from there. Sir now I am developing a desktop application, for which I want to authenticate the user by putting his/her finger on Bio-metric device to capture his/her fingerprint and match it with the registered fingerprint images. Sir if you please upload a video tutorial there for the above scenario, It will save me and my work. Sir please help.
Thanks for your kind consideration.
Sir, I have done the same in my web api project and i'm getting an error that is Authentication.GetExternalLoginInfoAsync(); piece of code returning null value for both external provider google and facebook. Kindly suggest a proper solution for this I'm using vs2019 asp.net web api project
HTTPS is required for all Redirect URIs.
I have that in all my URLs
@@abhineetkool He is not asking if you have https on your urls. I'm also facing the same problem since i'm working on localhost. Have any workaround for that?
@@infinitygamer1092 host the web api under an active directory of the IIS website
Thanks a billions.
please reply to help me. Why does the web api have view pages?
(Login.html)
I am doing backend api to login facebook authencation with identity asp.net core. just rest api and no login buttons or any views.
What should I do?
Thank you very much
hello sir i want to implement authentication using facebook and gmail in asp.net how should i implement it in simple asp.net webform
Thanks - this is so gross and hacky - when will MS update their example files etc? Also can't get email anymore (Nov 2017)
Can u upload video to post message in facebook using facebook api in asp.net web application
I am going to apply it but in creating app it need privacy policy url and new configuring interface is diffrent ,i am facing problem in creating app in devloper.facebook.com plz help me i am needy
I have my gmail account and facebook same mail id so when I try to click on login with facebook getting bad request when I debug it says cant create user as its already exist , When i debuged it with immidiate window I found that User.Identity.getUserName is null:-)
why username is coming null:-(
I have the same problem. I Did you manage to solve it?
is there any web api login with fb tutorial where fb code only explained. i am confusing by this code
In my visual studio project i can not find GoogleAuthentication.js file in Scripts folder. Please, help me
Hi Sir I am integrating facebook login using mvc but i am getting error
URL Blocked: 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.
Facebook has changed their privacy settings for the developers.You gonna need a domain with starts with '' for this facebook authentication to work.Hope I helped!
Hi Venkat.. When i am implementing the tutorial i am running into the following error....
localhost:51435/#error=access_denied
Did you solve it? I am also getting access denied. thx
Got the same error. Any solutions?
Input this at package manager console
Install-Package Microsoft.Owin.Security.Facebook -Pre
Thanks!!
same error!!!! please help me (Ps: i'm aready have Install-Package Microsoft.Owin.Security.Facebook -Pre instaled on my project.)
Hello,
im using web form so i get this error ""App.UseFacebookAuthentication" does not exist in the current context" can u help me plz.
Thank you
FacebookAuthenticationOptions does not contain a definition for UserInformationEndpoint :(
Yes , It does contain:
//
// Summary:
// Initializes a new Microsoft.Owin.Security.Facebook.FacebookAuthenticationOptions
public FacebookAuthenticationOptions();
//
// Summary:
// Gets or sets the Facebook-assigned appId
public string AppId { get; set; }
//
// Summary:
// Gets or sets the Facebook-assigned app secret
public string AppSecret { get; set; }
//
// Summary:
// Gets or sets the URI where the client will be redirected to authenticate. The
// default value is 'facebook.com/dialog/oauth'.
public string AuthorizationEndpoint { get; set; }
//
// Summary:
// Gets or sets the a pinned certificate validator to use to validate the endpoints
// used in back channel communications belong to Facebook.
//
// Remarks:
// If this property is null then the default certificate checks are performed, validating
// the subject name and if the signing chain is a trusted party.
public ICertificateValidator BackchannelCertificateValidator { get; set; }
//
// Summary:
// The HttpMessageHandler used to communicate with Facebook. This cannot be set
// at the same time as BackchannelCertificateValidator unless the value can be downcast
// to a WebRequestHandler.
public HttpMessageHandler BackchannelHttpHandler { get; set; }
//
// Summary:
// Gets or sets timeout value in milliseconds for back channel communications with
// Facebook.
public TimeSpan BackchannelTimeout { get; set; }
//
// Summary:
// The request path within the application's base path where the user-agent will
// be returned. The middleware will process this request when it arrives. Default
// value is "/signin-facebook".
public PathString CallbackPath { get; set; }
//
// Summary:
// Get or sets the text that the user can display on a sign in user interface.
public string Caption { get; set; }
//
// Summary:
// Gets or sets the Microsoft.Owin.Security.Facebook.IFacebookAuthenticationProvider
// used to handle authentication events.
public IFacebookAuthenticationProvider Provider { get; set; }
//
// Summary:
// A list of permissions to request.
public IList Scope { get; }
//
// Summary:
// Gets or sets if the appsecret_proof should be generated and sent with Facebook
// API calls. This is enabled by default.
public bool SendAppSecretProof { get; set; }
//
// Summary:
// Gets or sets the name of another authentication middleware which will be responsible
// for actually issuing a user System.Security.Claims.ClaimsIdentity.
public string SignInAsAuthenticationType { get; set; }
//
// Summary:
// Gets or sets the type used to secure data handled by the middleware.
public ISecureDataFormat StateDataFormat { get; set; }
//
// Summary:
// Gets or sets the URI the middleware will access to exchange the OAuth token.
// The default value is 'graph.facebook.com/oauth/access_token'.
public string TokenEndpoint { get; set; }
//
// Summary:
// Gets or sets the URI the middleware will access to obtain the user information.
// The default value is 'graph.facebook.com/me'.
public string UserInformationEndpoint { get; set; }
how to retrieve Facebook public page id from Facebook page link by using Facebook graph API?
Is it possible?
In Updated Facebook how can I make TestApp as public. I can't find way to make that as public in updated developer.facebook
same thing
Need to add Privacy Policy Url in Settings-->Basic
@@amritapaul5277 How to fix that?
oh. so cool. i see it. thanks you so
Hi sir, when i am trying to login with facebook , i am facing the issue "error=access_denied". please help me how can i resolve the issue.
I was using Microsoft.Owin.Security.Facebook version 3.0.1 from Nuget. Updated it to the prelease version 3.1.0 from Nuget and I no longer got the access denied error.
thanks
I was getting this error "error=access_denied" when logging into my Facebook account. To fix this error, I changed Microsoft.Owin.Security.Facebook version 3.0.1 from Nuget to the latest version (4.0.0) and I am no longer getting this access denied error and was able to redirect to data.html page.
Yes. Right click on Solution and then click on "Manage Nuget Packages for Solution..." You should be able to install from this.
How can I get source codes. Thanks!
Hi, I implemented Google and Facebook login by following your tutorial on Angular 6 front end and Web Api Backnend. Everything ran perfectly in development environment and when I hosted the app on IIS on windows server 2016 the logins stopped working giving 500 error on register external, on debugging the issue found out tha authentication. Getexternalloginasync return a null and user info object from get user info gets the username as first and last name instead of an email. I am stuck with the issue for over a week, please can you help me and FYI I was using proxy config on Angular in development
please guide me sir i am stuck on that.
Can u suggest or upload video to upload image and message in twitter using Twitter api in asp.net web application
Please i can have url
I was getting this error "error=access_denied" when loging to with my Facebook password and user id. To fix this errorr change Microsoft.Owin.Security.Facebook version 3.0.1 from Nuget. to the version 3.1.0 from Nuget and I am no longer getting this access denied error. and was able to redirect to data,HTML page.
where is the file to download
you can share the code ? thx
and controller methods
Here is the link to the text article from where you can copy and paste all the required code, instead of typing by hand.
csharp-video-tutorials.blogspot.com/2017/02/aspnet-web-api-facebook-authentication.html
Here is the link for all the ASP .NET Web API text articles. Hope you will find these text articles useful.
csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html
@@Csharp-video-tutorialsBlogspot where is code for externalLogin method of accountController ?
i am getting error like Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.
please help me out how to rectify
Sir can you provide source code file
Hello Ratnadip - You can find the text version of the source code file on our blog at the following link. Hope this helps.
csharp-video-tutorials.blogspot.com/2017/02/aspnet-web-api-facebook-authentication.html
plz send me the script sir...