已解决 url 在 linkedin 页面中发布分享时无法正常工作

Resolved url not working while posting a share in linkedin page

我正在尝试 post 共享实体位置并在内容实体中解析 Url,即使我将解析Url 指向图像,它也没有考虑图像而不是从实体位置获取 'og:image'。我没有看到 resolvedUrl.

的任何用途

建议如何使用 resolvedUrl 即。带有自定义 url.

的图像

正文:

{
    "owner": "urn:li:organization:xxxxxxx",
    "distribution": {
        "linkedInDistributionTarget": {}
    },
    "content": {
        "contentEntities": [{
            "entityLocation": "https://www.cricbuzz.com/cricket-news/107673/ipl-2019-rishabh-pant-shikhar-dhawan-propel-delhi-capitals-to-the-top-rr-vs-dc-rajasthan-royals",
            "thumbnail": [{
                "resolvedUrl": "https://www.cricbuzz.com/a/img/v1/595x396/i1/c168531/watson-led-csks-chase-of-176.jpg"
            }]
        }],
        "description": "Description of attachment",
        "title": "Title of the attachment"
    },
    "text": {
        "text": "Hii Kaushik from builder"
    }
}

你好我觉得可能是打错了:应该是"thumbnails"而不是"thumbnail",看看行不行。

Link: https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api#post-shares

{
    "owner": "urn:li:organization:xxxxxxx",
    "distribution": {
        "linkedInDistributionTarget": {}
    },
    "content": {
        "contentEntities": [{
            "entityLocation": "https://www.cricbuzz.com/cricket-news/107673/ipl-2019-rishabh-pant-shikhar-dhawan-propel-delhi-capitals-to-the-top-rr-vs-dc-rajasthan-royals",
            "thumbnails": [{
                "resolvedUrl": "https://www.cricbuzz.com/a/img/v1/595x396/i1/c168531/watson-led-csks-chase-of-176.jpg"
            }]
        }],
        "description": "Description of attachment",
        "title": "Title of the attachment"
    },
    "text": {
        "text": "Hii Kaushik from builder"
    }
}

希望对您有所帮助。