I am trying to setup a create-user-account via LinkedIn profile, based on the Facebook Sign-In tutorial (which is great, by the way!), but am becoming stuck because LinkedIn have separate the r_liteprofile (which is id, firstname, lastname) from the r_emailAddress . I want both, but they have different request URIs.
Is there I way I can fetch both in the one OAuth call?
Or should I be doing this some other way?
Not sure if it is related or unrelated, but when I test the login for just using the r_liteprofile ( /me ) information, it always returns a message in the Matrix pop-up window “Can not locate the userid in the response of profile API.” I have tried keep it the default " id ", as well as manually inputting " id " and " personId " and " personID " – it makes no difference. Yet there should be an id field returned by /me in the default response. I have also tried by specifying id to be returned too, same error.
I’m not very knowledgable with integrations - a learning curve - but I can follow steps-by-step in laymen’s terms. (e.g. the Facebook tutorial)
Hey Emily, did you get anywhere with this? I haven’t tried logging in with LinkedIn before, never used their OAuth API before, but did you have a look at this tutorial? https://matrix.squiz.net/tutorials/2015/example
It’s a bit old now and outdated, the LinkedIn API might have changed since then, but might give you some pointers?
I haven’t worked on it much since September, since there wasn’t any responses, so it’s on the back-burner for now. I just tried it again now, using the REST Resource as per the Linked In Tutorial (updating to current URLs needed), and the “Linked in wants to access…” came up fine, but once it returns me to the page, there isn’t any data presented.
I am still getting the “can not locate the userid” problem in my other configuration.
Thanks Bart.
Having another look at it today, after a long time.
I can get the REST Resource to produce the pop-up to allow me to “Allow Access” to my Linked In account, but then the page displays nothing.
I have a Standard Page I was using to have a Sign In with Linked In button, and it gets to the same stage using the REST Resource. But when I am logged in with Linked it, it won’t display even my First Name or Last Name. I can’t remember where I got the Keywords from, But I am using: %globals_session_oauth_profile_first_name% for the firstname output - which isn’t working.
I have also linked an OAuth Account Manager into the process, but it doesn’t seem to create an account that I can see. It has problems connecting with Linked In - something about a Redirect URI - perhaps need to add the URL into Linked In for security. Not an issue at this stage, still stuck on the previous bit.
Still have the issue that I need to be able to submit 2 different SCOPES at the same time to get all the data I need. Is this possible in the OAuth Token? (What formatting do I need to separate them?)
(Emails are not stored in the same scope as Name and other profile data).