Skip to content

Instantly share code, notes, and snippets.

@eoneill
Created August 26, 2011 00:48
Show Gist options
  • Save eoneill/1172420 to your computer and use it in GitHub Desktop.
Save eoneill/1172420 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
function onLinkedInAuth() {
IN.API
.Profile("me")
.result( function(me) {
alert("User has authenticated. Member ID: " + me.values[0].id);
});
}
</script>
<body>
<script type="IN/CoReg" data-themeColor="#59bd73" data-partnerName="Stanford" data-firstName="John" data-lastName="Doe" data-email="jdoe@stanford.edu" data-startYear="2004" data-gradYear="2008" data-degree="BS" data-major="Computer Science" data-schoolName="Stanford University" data-schoolID="393483" data-country="US" data-zip="94305" data-locale="en_US" data-onauth="onLinkedInAuth"></script>
<script type="text/javascript">
// temporary fix for auth callback
IN.Event.onOnce(IN, 'frameworkLoaded', function(){ IN.ENV.url.userspace_renew = IN.ENV.url.userspace_renew.replace('authuserspace&', 'authuserspace?'); });
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment