How do I get email address field using the LinkedIn Javascript API?

后端 未结 4 1679
南笙
南笙 2021-02-14 19:08

I\'m using the LinkedIn Javascript API to sign in users to my application, however the API is not returning the email address even though I\'m requiring permission for that spec

4条回答
  •  温柔的废话
    2021-02-14 19:39

    Implementation looks good. I'd believe this is a result from the profile's privacy settings. Per linked-in's docs:

    Not all fields are available for all profiles. The fields available depend on the relationship between the user you are making a request on behalf of and the member, the information that member has chosen to provide, and their privacy settings. You should not assume that anything other than id is returned for a given member.

提交回复
热议问题