如何获得较大的LinkedIn图像共享格式 [英] How to get large LinkedIn Image Share Format

查看:110
本文介绍了如何获得较大的LinkedIn图像共享格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用linkedin api来共享关于linkedin的帖子,如下所示:

I am using linkedin api to share post on linkedin which look like this:

如何通过api获取此类发布信息:

How to get make post like this through api:

我正在尝试帖子正文的所有组合,但无法发布上述内容.

I am trying all combination of post body but am not able to post content like above.

{   
    "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"
        }
}

推荐答案

如果有人正在寻找解决方案,那是我找到的窍门.

If someone looking for a solution for this, The trick that I have found it.

因此,基本上,解决方案是在 submitted-url 字段中传递图片url,而不传递 submitted-image-url 参数.

so basically the solution is to pass the image url in the submitted-url field and don't pass the submitted-image-url parameter.

所以不要传递此信息:

{   
    "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"
    }
}

将会给出:

您通过以下操作:

{   
    "comment": "Check out developer.linkedin.com!",
    "content": {
        "title": "LinkedIn Developers Resources",
        "submitted-url": "https://www.example.com/someimage.jpg"
    },
    "visibility": {
        "code": "anyone"
    }
}

将给出以下内容:

请注意,我没有在json中传递 submitted-image-url description .说明未显示在帖子上,因此在该字段中没有传递任何内容.

Note that I don't pass submitted-image-url and description in the json. Description does not show on the post, so there's no point of passing anything in that field.

这篇关于如何获得较大的LinkedIn图像共享格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆