简体   繁体   English

LinkedIn共享API问题

[英]LinkedIn share API issue

I am making an app in order to post an image to LinkedIn.我正在制作一个应用程序,以便将图片发布到 LinkedIn。

The problem is that it's not working for images.问题是它不适用于图像。 I use my uploaded image URL in submitted-image-url in order to post my image with a caption but unfortunately, it just uses a thumbnail of my image.我在submitted-image-url中使用我上传的图片 URL 以发布带有标题的图片,但不幸的是,它只使用了我的图片的缩略图。

What can I do to post my image?我可以做什么来发布我的图片? By the way, I use PHP.顺便说一句,我使用PHP。

Currently, as of May, 2020, LinkedIn only supports the url parameter in its share URL.目前,截至 2020 年 5 月,LinkedIn支持其共享 URL 中的url参数。 So, you'll have to share the image by making it a linkable file and then share the URL to the file, like so..因此,您必须通过使其成为可链接文件来共享图像,然后共享该文件的 URL,就像这样..

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

Source: Microsoft LinkedIn Share URL Documentation .来源: Microsoft LinkedIn 共享 URL 文档

If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check us out!如果您对定期维护的 GitHub 项目感兴趣,该项目会跟踪此情况,因此您不必这样做,请查看我们! Social Share URLs社交分享 URL

社交分享 URL 图片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM