gpt4 book ai didi

asp.net - 如何获得大的LinkedIn图像共享格式

转载 作者:行者123 更新时间:2023-12-01 03:25:39 26 4
gpt4 key购买 nike

我正在使用linkedin api在linkedin上分享帖子,如下所示:

enter image description here

如何通过api获得这样的帖子:
enter image description here

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

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

最佳答案

如果有人为此寻找解决方案,我找到了它。

所以基本上解决方案是在 submit-url 字段中传递图像 url 并且不传递 submit-image-url 参数。

所以不要通过这个:

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

这将给出: enter image description here

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

这将给出:

enter image description here

请注意,我没有在 json 中传递 submit-image-url 和 description。帖子中没有显示说明,因此在该字段中传递任何内容都没有意义。

关于asp.net - 如何获得大的LinkedIn图像共享格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41846273/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com