我正在准备我的应用程序,以便在明年 5 月 12 日进行 API 转换,但我发现了一些问题。我想知道这种行为是否正常。
目前,我正在使用权限:“r_basicprofile”、“r_emailaddress”、“rw_nus”和“rw_company_admin”,我可以发布人员分享、发布公司股票并获取两种股票的点赞数。
现在,为了获得新文档,我将权限迁移到“r_basicprofile”、“r_emailaddress”、“w_share”和“rw_company_admin”,并且我可以发布人员分享、发布公司股票,但我无法获得任何点赞数两种股份。
我知道人们分享这可能是正常的,因为文件说需要合作才能获得这些信息。但是,我不明白为什么我不能从公司帖子中获得点赞数。
这里和公司请求的 xml 响应示例:
https://api.linkedin.com/v1/companies/{COMPANY_ID}/updates/key={UPDATE-KEY}:(numLikes:())
过渡前的回应:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<update> <num-likes>1</num-likes> </update>
过渡后的反应:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<update>
</update>
通过使用 REST 控制台获取有关公司份额(转换后)的更多信息,我得到以下信息。我想我无法获得喜欢的数量,因为linkedin返回的分享是likeable =“false”。
<update>
<timestamp>1429300558499</timestamp>
<update-key>{UPDATE-KEY}</update-key>
<update-type>CMPY</update-type>
<update-content>
<company>
<id>{ID}</id>
<name>Name</name>
</company>
<company-status-update>
<share>
<id>s...</id>
<timestamp>1429300558499</timestamp>
<visibility>
<code>anyone</code>
</visibility>
<comment>COMMENT</comment>
<content>
<submitted-url>URL</submitted-url>
<shortened-url>URL</shortened-url>
<title>TITLE</title>
<description>DESCRIPTION</description>
<submitted-image-url>URL</submitted-image-url>
<thumbnail-url>URL</thumbnail-url>
<eyebrow-url>URL</eyebrow-url>
</content>
<source>
<service-provider>
<name>LINKEDIN</name>
</service-provider>
<service-provider-share-id>s...</service-provider-share-id>
</source>
</share>
</company-status-update>
</update-content>
<is-commentable>false</is-commentable>
<is-likable>false</is-likable>
</update>
如果我们可以在没有合作伙伴计划的情况下获得点赞数,您能做到吗?
谢谢