mercredi 22 avril 2015

Apply with #linkedin account

I have a website and I would like users to get registered by using their Linkedin account. I'm using this code but It's not working properly:

  • Some users told me they couldn't sign up with their linkedin account and
  • If I launch the website in my iphone it gives me an error saying that Domains must match. Linkedin api uses https and I'm using http.

The code:

<script type="text/javascript" src="http://ift.tt/IX0rQc">
     api_key: XXXXXXXXXXXXXXX
     lang:  es_ES
     scope: r_fullprofile r_emailaddress
</script>

<script type="in/Login" data-onAuth="onLinkedInAuth"></script>

function onLinkedInAuth() {
IN.API.Profile("me")
         .fields(["email-address","id","picture-urls::(original)","firstName","lastName","summary","recommendations-received","location","skills","educations","positions"])
         .result(displayProfiles).error(onError);
    }

What am I doing wrong? Thank you

Aucun commentaire:

Enregistrer un commentaire