top of page
Writer's pictureholgotuacalvituaga

Facebook Login With Vb.net: The Complete Tutorial



I am planning to create a vb.net application that will be synchronized with user's facebook account. I want to create an application that allows the user to login their accounts, fetch notifications, friend requests, view/reply/create messages and other activities they want to fetch from facebook via this vb.net application.




Facebook Login With Vb.net



Once you added your App Key you can run the program. Upon clicking "Login" it'll open a small webBrowser control that let you login into facebook. The correct login procedure returns a facebookOAuthResult Object that contains your AccessToken.


I have been digging on facebook authentication for a week. I came across so many things such as facebook_connect, Facebook C# SDK from CodePlex and other ways to connect with facebook which are absolute now. Finally after reading for many times, I did manage to have a login button and get user's information for facebook using the new and standard Graph API stuffs. There are in Javascript such as.


This article shows how to login into Gmail and Facebook with a VB Form. I have tried to provide an easy procedure showing simple code.Create a new project.We need:


Enter your development URI with /signin-facebook appended into the Valid OAuth Redirect URIs field (for example: :44320/signin-facebook). The Facebook authentication configured later in this tutorial will automatically handle requests at /signin-facebook route to implement the OAuth flow.


After successful authentication from Google, you will be redirected to a registration page inside your application where you need to fill in an email id to tag with your account. The Gmail id that you have used to login will already be populated in the Email id field. If you want to use another mail id, you can change it here.


The default /login.html page provides an auto Login page that supports authentication via Credentials as well as a generating a dynamic list of OAuth providers, e.g the NorthwindCrud /login page with Facebook OAuth looks like:


For example this could be used to create an Intranet Restricted Admin-Only Service that lets you login as another user so you can debug their account without knowing their password with: 2ff7e9595c


0 views0 comments

Recent Posts

See All

Comments


bottom of page