是否可以获取并显示 linkedin 用户 ID?

Is it possible to get and display the linkedin user id?

我不明白是否可以获取 linkedin 用户 ID。因为在文档中我看到了这个

The unique identifier for the given member. May also be referenced as the personId within a Person URN (urn:li:person:{personId}). The id is unique to your specific developer application. Any attempts to use the id with other developer applications will not succeed.

我需要这个在用户使用 linkedin 按钮点赞后显示在我的网站上。

我没有使用过 linkedin api,但根据您引用的描述,它与 facebook api V2+ 相同。基本上,当用户通过 LinkedIn 注册到您的网站时,会专门为这种用户应用关系生成一个新的用户 ID。如果用户再次访问您的网站,从 linkedin 检索他们的信息将显示相同的用户 ID。但是,如果同一用户使用 his/her linkedin 帐户向另一个应用授予权限(在另一个应用中注册),则第二个应用将看到与您看到的不同的用户 ID。

您收到的用户 ID 应该足以应对几乎所有合法情况,除非您在 linkedin 中注册了多个应用程序并且需要跟踪它们之间的用户,在这种情况下您可以使用电子邮件或其他字段(我不不知道 linkeddin 提供什么)