1

当我去这里时:

https://developer.linkedin.com/plugins/share-plugin-generator

提供一些 URL(即 google.com),然后单击按钮,新窗口弹出窗口以一些奇怪的行为打开 - 窗口自动更改它自己的大小:/

当您使用 JavaScript 手动打开弹出窗口时会发生同样的问题,LinkedIn 共享 URL:https ://www.linkedin.com/cws/share?url=http%3A%2F%2Fgoogle.com

问题出在 Chrome (Win7) 中,但 FF (Win7) 工作正常。有没有人可以重现?并且可以提出任何解决方案来解决这种行为吗?


编辑:LinkedIn 似乎已经解决了这个问题,因为它不能再重现了。

4

1 回答 1

0

So, since LinkedIn has been acquired by Microsoft, the way sharing works has been entirely redone.

Your documentation link just goes to a blank page, it doesn't even 404 or error out. Anyway, here is the new documentation link: Official Microsoft LinkedIn Share API Documentation

All you should need to make this work is to use this as your URL:

https://www.linkedin.com/sharing/share-offsite/?url={url}

Wouldn't it have been nice to have known that the URL and the API for sharing has changed entirely? If you are interested in a regularly maintained github project that keeps track of this so you don't have to, check it out! Social Share URLs

Social Share URLs Image

于 2020-05-16T17:40:08.900 回答