miled / wordpress-social-login

WordPress Social Login
http://miled.github.io/wordpress-social-login/
MIT License
399 stars 235 forks source link

Linkedin v2 implementation #323

Closed aleximbir closed 4 years ago

aleximbir commented 5 years ago

Linkedin v2 implementation A few more instructions for twitter, facebook, google and wordpress

ghost commented 5 years ago

@aleximbir You need to change to line 62 ($ WORDPRESS_SOCIAL_LOGIN_VERSION = "3.0.2";) in the wp-social-login.php file

N.B. I get this error:

We're unable to complete your request!

Provider returned an error: unauthorized_scope_error Scope & quot; r_liteprofile & quot; is not authorized for your application

Why?

aleximbir commented 5 years ago

@sviluppomania

Because the old applications created with the Linkedin v1 API no longer work with Linkedin v2 and the new applications that are created do not work with Linkedin v1, I created a new provider called 'Linkedin v2' and users can use the old Linkedin provider for old applications and 'Linkedin v2' provider for new applications, until Linkedin eliminates the possibility to use the old apps and then we can keep a single Linkedin provider.

So, if you have an old application, you need to use 'Linkedin' provider; if you have a new application, to need to use 'Linkedin v2' provider.

You receive this error because you are using an old application with Linkedin v2. Create a new application, enter your credentials, and try signing in with Linkedin v2 again.

I already commit the change for WSL version

mattrabe commented 5 years ago

@aleximbir I disagree with this statement: "Because the old applications created with the Linkedin v1 API no longer work with Linkedin v2". This is not the case, as ALL applications must now use v2. v1 is permanently offline: https://engineering.linkedin.com/blog/2018/12/developer-program-updates

Perhaps you forgot to update the redirect_uri in LinkedIn Developer's portal??

I have created a competing PR which eliminated v1, and also upgrades hybridauth to stable v3.0: pull request #328