Commenting on a LinkedIn post using REST API returning 500

泪湿孤枕 提交于 2019-12-23 10:02:52

问题


I have a linkedin company page.I am trying to post a comment on an already existed post of that page via Linkedin Rest API. Below are the request details :

HTTP METHOD : POST

URL : https://api.linkedin.com/v2/socialActions/urn:li:activity:{activity-id}/comments

HEADERS : Authorization, Content-Type

BODY :

{"actor": "urn:li:organizationBrand:<org id>",
"message": {
    "attributes": [],
    "text": "This is a comment"
}}

The above request is throwing me the below error :

{"message": "com.linkedin.restli.client.RestLiResponseException: Response status 500, serviceErrorMessage: Error creating comment",
"status": 500}

The same request works for me for another linkedin company page. Can you please help me on finding what the issue is?

来源:https://stackoverflow.com/questions/50584614/commenting-on-a-linkedin-post-using-rest-api-returning-500

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