我使用linkedin api在linkedin上分享帖子,如下所示:
我正在尝试邮政机构的所有组合,但我无法发布上述内容.
{ "comment": "Check out developer.linkedin.com!","content": { "title": "LinkedIn Developers Resources","description": "Leverage LinkedIn's APIs to maximize engagement","submitted-url": "https://developer.linkedin.com","submitted-image-url": "https://example.com/logo.png" },"visibility": { "code": "anyone" } }
解决方法
如果有人为此寻找解决方案,我找到它的诀窍.
所以基本上解决方案是在提交的url字段中传递图像url并且不传递submitted-image-url参数.
所以不要传递这个:
{ "comment": "Check out developer.linkedin.com!","submitted-image-url": "https://example.com/logo.png" },"visibility": { "code": "anyone" } }
你传递了以下内容:
{ "comment": "Check out developer.linkedin.com!","submitted-url": "https://www.example.com/someimage.jpg" },"visibility": { "code": "anyone" } }
这会给出这样的:
请注意,我没有在json中传递submitted-image-url和description.描述没有显示在帖子上,所以在该字段中传递任何内容都没有意义.