成员 0 没有权限获取 company with linkedin JS SDK

Member 0 does not have permission to get company with linkedin JS SDK

我在从公司资料中获取关注者数量时遇到了一个小问题——我是该公司的管理员,并且我已经设置了 "rw_company_admin" 权限。

我得到 "Member 0 does not have permission to get company XXXXX"。

如果使用 REST 控制台进行测试,我会得到关注者的数量,如果我在浏览器选项卡中粘贴 URL 和 access_token,我会得到关注者的数量,但是使用 JS SDK得到上面提到的错误。我正在使用此代码:

<script type="text/javascript" src="http://platform.linkedin.com/in.js">
        api_key: XXXXX
        onLoad: onLinkedInLoad
        authorize: true
        </script>
        <script type="text/javascript">
        function onLinkedInLoad() {                     

            IN.API.Raw("/companies/XXXXX:(num-followers)").result( function(result) {       
                $('#dashRightLinkedIn').html(addCommas(result.numFollowers));
            }).error( function(error) { 
                console.log(error);
            });

        }
</script>

我错过了什么?

我成功了 - 必须授权应用程序。我错过了那部分。