Custom linkedin button for share and auth


Custom linkedin button for share and auth

Custom linkedin button for share and auth

Custom linkedin button for share and auth

<script src=”http://platform.linkedin.com/in.js”>
api_key:
//onLoad: onLinkedInLoad
scope: r_basicprofile r_emailaddress r_fullprofile
authorize:true
</script>
<script>
function onLinkedInAuth() {
IN.API.Profile(“me”)
.fields(“firstName”, “lastName”, “industry”, “location:(name)”, “picture-url”, “headline”, “summary”, “num-connections”, “public-profile-url”, “distance”, “positions”, “email-address”, “educations”, “date-of-birth”)
.result(displayProfiles);
IN.UI.Share().params({
url: “http://www.example.com”
}).place()
}

function displayProfiles(profiles) {
console.log(profiles);
member = profiles.values[0];
}

jQuery(document).ready(function(){
jQuery(“#linkdinlog”).click(function(){
IN.UI.Authorize().place();
IN.Event.on(IN, “auth”, onLinkedInAuth);
});
});
</script><a id=”linkdinlog”>link</a>

You may also like...

%d bloggers like this: