ASP NET Web API facebook authentication

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 90

  • @MrHemanthdesu
    @MrHemanthdesu 8 років тому

    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'.

  • @heikobottger1535
    @heikobottger1535 5 років тому

    Just searched on google for this and found your very nicely made tutorial. Thanks.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому

      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

    • @etimessang4980
      @etimessang4980 5 років тому

      @@Csharp-video-tutorialsBlogspot This video is outdated. Can you plz refer us to another one?

  • @אודימזור
    @אודימזור 8 років тому

    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

  • @AbdulHannan-bv8of
    @AbdulHannan-bv8of 4 роки тому +7

    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.

  • @purushothamareddymunagala6953
    @purushothamareddymunagala6953 7 років тому +1

    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.

  • @avav7030
    @avav7030 7 років тому +1

    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.

  • @cjava9592
    @cjava9592 7 років тому

    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 ...."

  • @bctloaded985
    @bctloaded985 5 років тому +7

    Where can we find the facebook user information endpoint? This one is outdated.

  • @bijaymandal8233
    @bijaymandal8233 4 роки тому

    Sir u r awesome ❣️

  • @sovanroy9846
    @sovanroy9846 8 років тому +2

    Sir,
    Would you please discuss external authentication providers like Twitter, Microsoft?
    Thanks

  • @shimaaahmed8190
    @shimaaahmed8190 7 років тому +2

    Would you please discuss external authentication providers like Twitter, Microsoft

  • @davidice5315
    @davidice5315 4 роки тому

    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

  • @Soohable
    @Soohable 8 років тому

    Thank you for this video!

    • @foridaparvin4015
      @foridaparvin4015 5 років тому

      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

  • @ankitsengar8296
    @ankitsengar8296 6 років тому

    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.

  • @engmoiyd
    @engmoiyd 6 років тому

    Thanks for your video and efforts, by any chance, can we do something similar using VB.NET ?
    Thanks a lot

  • @gobindkumar3949
    @gobindkumar3949 7 років тому +1

    hello
    you have any demo Web API facebook authentication to web pages in C# (ASP.NET)

  • @wilachamlong8644
    @wilachamlong8644 4 роки тому

    One AppID and AppSecret could generate different access token from different Facebook account (correct credential)

  • @jeewanmaharjan2712
    @jeewanmaharjan2712 8 років тому +1

    thanks a lot sir. Love to see paypal integration too.

  • @jovaeli
    @jovaeli 8 років тому +1

    Web API tutorials are back!!
    Let's Code!👏👏

  • @wilachamlong8644
    @wilachamlong8644 4 роки тому

    One AppId and AppSecret could generate access token from different Facebook accounts am I correct?

  • @oilha2011
    @oilha2011 6 років тому

    Amazing, very very thanks man

  • @plamivanov9120
    @plamivanov9120 8 років тому

    guys, is there a video for async methods by Venkat ????thank you and have a great day!!!!!!

  • @azizraja5436
    @azizraja5436 3 роки тому

    its not clear, if you have used asp.net web api + asp.net web app or just asp.net web app??

  • @MagnificentKnight1
    @MagnificentKnight1 8 років тому

    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.

  • @chandansoni2986
    @chandansoni2986 5 років тому

    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

  • @kosovacvr
    @kosovacvr 6 років тому +2

    HTTPS is required for all Redirect URIs.

    • @abhineetkool
      @abhineetkool 6 років тому

      I have that in all my URLs

    • @infinitygamer1092
      @infinitygamer1092 6 років тому

      @@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?

    • @abhineetkool
      @abhineetkool 6 років тому

      @@infinitygamer1092 host the web api under an active directory of the IIS website

  • @raqibul1000
    @raqibul1000 8 років тому

    Thanks a billions.

  • @baotinluong7857
    @baotinluong7857 4 роки тому

    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

  • @yogeshkanaki484
    @yogeshkanaki484 7 років тому

    hello sir i want to implement authentication using facebook and gmail in asp.net how should i implement it in simple asp.net webform

  • @bobbastian760
    @bobbastian760 7 років тому

    Thanks - this is so gross and hacky - when will MS update their example files etc? Also can't get email anymore (Nov 2017)

  • @poojapatil8853
    @poojapatil8853 7 років тому

    Can u upload video to post message in facebook using facebook api in asp.net web application

  • @akshaytomar7030
    @akshaytomar7030 6 років тому

    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

  • @harshitachambhare4542
    @harshitachambhare4542 8 років тому

    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:-(

    • @bicadenisa6878
      @bicadenisa6878 4 роки тому

      I have the same problem. I Did you manage to solve it?

  • @amjadaslam5270
    @amjadaslam5270 7 років тому

    is there any web api login with fb tutorial where fb code only explained. i am confusing by this code

  • @imrulquaes7970
    @imrulquaes7970 4 роки тому

    In my visual studio project i can not find GoogleAuthentication.js file in Scripts folder. Please, help me

  • @kiran3711
    @kiran3711 6 років тому

    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.

    • @yogeshkashid7327
      @yogeshkashid7327 5 років тому

      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!

  • @vijaysaini83
    @vijaysaini83 7 років тому +1

    Hi Venkat.. When i am implementing the tutorial i am running into the following error....
    localhost:51435/#error=access_denied

    • @skolker
      @skolker 7 років тому

      Did you solve it? I am also getting access denied. thx

    • @berkan7
      @berkan7 7 років тому

      Got the same error. Any solutions?

    • @majahbrowlers1398
      @majahbrowlers1398 7 років тому +3

      Input this at package manager console
      Install-Package Microsoft.Owin.Security.Facebook -Pre

    • @berkan7
      @berkan7 7 років тому

      Thanks!!

    • @ivanjoojicorrea
      @ivanjoojicorrea 7 років тому

      same error!!!! please help me (Ps: i'm aready have Install-Package Microsoft.Owin.Security.Facebook -Pre instaled on my project.)

  • @salihbostanci
    @salihbostanci 2 роки тому

    Hello,
    im using web form so i get this error ""App.UseFacebookAuthentication" does not exist in the current context" can u help me plz.

  • @Albshr77
    @Albshr77 8 років тому

    Thank you

  • @ranasadeem8834
    @ranasadeem8834 8 років тому

    FacebookAuthenticationOptions does not contain a definition for UserInformationEndpoint :(

    • @harshitachambhare4542
      @harshitachambhare4542 8 років тому

      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; }

  • @mdnasimralitsoft9488
    @mdnasimralitsoft9488 4 роки тому

    how to retrieve Facebook public page id from Facebook page link by using Facebook graph API?
    Is it possible?

  • @nilamrohit371
    @nilamrohit371 6 років тому

    In Updated Facebook how can I make TestApp as public. I can't find way to make that as public in updated developer.facebook

  • @phongthachtho9553
    @phongthachtho9553 7 років тому

    oh. so cool. i see it. thanks you so

  • @KalavakuriNagulameera
    @KalavakuriNagulameera 7 років тому

    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.

    • @himanshupareek66
      @himanshupareek66 7 років тому

      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.

  • @ДмитрийКузюбердин
    @ДмитрийКузюбердин 7 років тому

    thanks

  • @josephregallis3394
    @josephregallis3394 7 років тому +2

    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.

    • @josephregallis3394
      @josephregallis3394 7 років тому

      Yes. Right click on Solution and then click on "Manage Nuget Packages for Solution..." You should be able to install from this.

  • @yangliu2389
    @yangliu2389 5 років тому

    How can I get source codes. Thanks!

  • @abhineetkool
    @abhineetkool 6 років тому

    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

  • @nilamrohit371
    @nilamrohit371 6 років тому

    please guide me sir i am stuck on that.

  • @poojapatil8853
    @poojapatil8853 7 років тому

    Can u suggest or upload video to upload image and message in twitter using Twitter api in asp.net web application

  • @michelbaba7107
    @michelbaba7107 7 років тому

    Please i can have url

  • @webemail9293
    @webemail9293 7 років тому +1

    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.

  • @yesehakesolomon4763
    @yesehakesolomon4763 6 років тому

    where is the file to download

  • @luizmedina5719
    @luizmedina5719 6 років тому

    you can share the code ? thx

    • @luizmedina5719
      @luizmedina5719 6 років тому

      and controller methods

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  6 років тому

      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

    • @umeshshelke725
      @umeshshelke725 Рік тому

      @@Csharp-video-tutorialsBlogspot where is code for externalLogin method of accountController ?

  • @kiran3711
    @kiran3711 6 років тому

    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.

    • @kiran3711
      @kiran3711 6 років тому

      please help me out how to rectify

  • @ratnadipgaikwad6831
    @ratnadipgaikwad6831 5 років тому

    Sir can you provide source code file

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 років тому

      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

  • @kotishwarkoduri8368
    @kotishwarkoduri8368 7 років тому

    plz send me the script sir...