How to get large LinkedIn Image Share Format

心已入冬 提交于 2019-11-29 00:38:27

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

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

so instead of passing this:

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

which will give:

you pass the following:

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

which will give this:

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.

You can pass " " as the title and you will get a card that seems to be an picture.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!