在linkedin页面中发布共享时,已解析的URL无法正常工作

问题描述 投票:0回答:1

我试图在实体位置发布共享并在内容实体中解析Url,即使我将resolvedUrl指向图像,也不考虑该图像而是从实体位置获取“og:image”。我没有看到任何使用solveUrl。

建议如何使用resolvedUrl ie。自定义网址的图片。

身体:

{
    "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"
    }
}
java spring rest linkedin linkedin-api
1个回答
1
投票

你好,我想这可能是因为一个错字:它应该是“缩略图”而不是“缩略图”,看看它是否有效。

链接: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"
    }
}

希望这可以帮助。

© www.soinside.com 2019 - 2024. All rights reserved.