Issue with Linkedin integration using socialauth in android

蹲街弑〆低调 提交于 2019-12-04 13:09:08

This is due to the change in the Linked in developer program. Changes are mentioned here https://developer.linkedin.com/support/developer-program-transition.

You getting this error because the default scope setting in the r_fullprofile which is as part of the change no longer available.

So to apply this changes in the socialauth API you should pass the scope permission as <prop key="api.linkedin.com.custom_permissions">r_basicprofile,r_emailaddress</prop>

Linkedin have updated their Scope for API , they have updated their APIs link:https://developer.linkedin.com/support/developer-program-transition

The following selection of profile fields are available to all LinkedIn developers: Basic Profile Fields Location Fields Position Fields

These fields are not

Full Profile Fields Contact Info Fields Company Fields Publication Fields Patent Fields Language Fields Skill Fields Certification Fields Course Fields Education Fields Volunteer Fields Recommendation Fields.

Additionally only these Profile API — /v1/people/~ Share API — /v1/people/~/shares Companies API — /v1/companies/{id} will work.

Check your scope.

LinkedIn locked many parts of its APIs on May 12, 2015 according to https://developer.linkedin.com/blog/posts/2015/developer-program-changes

Since you're using the socialauth library, you will have to wait for its developers to push a new version. :(

Downloading 4.9 library solves this issue You can get the jar from Maven directly: http://search.maven.org/remotecontent?filepath=org/brickred/socialauth/4.9/socialauth-4.9.jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!