-
Notifications
You must be signed in to change notification settings - Fork 149
Upgrade gem to work with LinkedIn API v2 (r_liteprofile) #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* switch to use `r_liteprofile` (reduce number of fields) * parse `profilePicture` response (use last picture in the array) Email parsing comes next.
`omniauth-oauth2` depends on `omniauth` so no need to depend on both.
Thank you! closes #38 |
Wow, that was quick and quite unexpected. Thank you! I'd also appreciate an official gem release, if possible. |
did a gem release, can you please confirm it is working correctly? Haven't done this in a very long time. |
The gem release worked fine. New version is available to everyone. I can confirm it works correctly for my LinkedIn account on my local setup, but I've yet to test it with a broader audience. |
Thanks @pjg and @decioferreira for making this happen! This seems to be broken for clients which haven't yet been force-upgraded to LinkedIn API v2, and there's no manual option at LinkedIn's end to update them. We've fixed that just by pinning to 0.2.5 of this gem, we'll remove the pin when LinkedIn get around to upgrading us. |
I've noticed it too. I have two OAuth apps at LinkedIn. One (surprisingly, a very old one) allows me to enable the |
This PR supercedes a couple of other forks (#38, sureswiftcapital@d3c49cd, level29@9abf9da and g2crowd@d206ca3), each of them implementing a different part of the v2 API upgrade. It aims to be complete at what it does, but only when it comes to the
r_liteprofile
LinkedIn profile option, which will be the only available option to 99% of us after 1st of March, 2019 when LinkedIn will deprecate access tor_basicprofile
.This means that we can only get:
id
,first-name
,last-name
,email-address
(only a single, primary email address) andpicture-url
(I opted for the best available picture crop out of the returned array, which is 800x800 at most) and not much else (https://docs.microsoft.com/en-us/linkedin/shared/references/v2/profile/lite-profile).Deprecation notice information: https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq