Monday, May 13, 2013

LinkedIn login in our website using JavaScript in Asp.net

Introduction

In this article, I will explain how to associate LinkedIn login in our website using JavaScript in Asp.net.
First we need to create LinkedIn application and get api key from LinkedIn. so click on following link

https://www.linkedin.com/secure/developer

Use the following procedure.

Step 1

login in LinkedIn



Step 2

Click on "Add New Application"



Step 3

Following these steps



Step 4

Now api key generate by Linkedin and this api key write in javascript code


Step 5

Now write below code in our application


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LinkedIn_Login.aspx.cs" Inherits="LinkedIn_Login" %>
<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Linkedin Login </title>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key:************ // Write your api key
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="font-size:large; font-weight:bold; color:blue">
<script type="in/Login">
 
Hello,<br>
   <?js= firstName ?> <?js= lastName ?> <br>
Welcome to Linkedin
</script>
 </div>
</form>
</body>
</html>

Output 1


Click on SignIn button

Output 2



Click on Allow

Output 3



3 comments:

  1. As a blogger, I am always looking for new sites and tech aid that makes my life easy. Through my research, I came across LassoIn.com. This is a newly launched site with good features. With this site, I can increase the number of places to post my content. The website is used mainly in association with linkèdin to gain more loyal followers and viewers.

    ReplyDelete
  2. Thanks for every other excellent post. The place else may just anyone get that kind of info in such an ideal manner of writing? I’ve a presentation subsequent week, and I am at the look for such information. Buy linkedin followers

    ReplyDelete
  3. This is an informative blog. Keep it up. I am looking forward to this kind of blog. I took a lot away from this blog. also, your thoughts were very well organized as far as how you went into details and made it very. Thanks
    visit site

    ReplyDelete

Kashmir 370 and 35A : The Wound of india

क्या है जम्मू-कश्मीर में लागू धारा 370,35A पूर्ण विवरण Know about 370 act in Jammu एक बार फिर से राजनीति गलियारे में धारा 370,35A को ल...