求助:调用LinkedIn API获取企业动态流时遭遇403权限错误
Hey Tim, sorry to hear you're stuck on this frustrating 403 error—let's walk through the most likely fixes that resolve this exact issue:
Double-check your permission scopes (and their approval status)
Even if you've toggled all permissions in your app dashboard, many LinkedIn API scopes for organization data (liker_organization_socialfor accessing company feeds) require manual approval from LinkedIn. Head to your app's "Products" tab and confirm that relevant products (e.g., Marketing Developer Platform) aren't just added—they need to be fully approved. If they're still in review, you'll only have limited sandbox access, which blocks requests to real company data.Validate your access token's actual scopes
Your access token might not include the permissions you think it does. Use LinkedIn's built-in token inspection tool (in their developer portal) to decode the token and verify it has the required scopes (liker_organization_socialorrw_organization_admin). If the scopes are missing, re-authenticate your account and explicitly request the necessary scopes during the OAuth flow—don't rely on default permissions.Confirm your LinkedIn account has a valid role in the target company
This error often pops up when the authenticated member (you) doesn't have a proper role in the organization you're trying to access. Log into your LinkedIn profile, navigate to the company page, and check if you're listed as an Admin, Content Manager, or another role that grants access to the company's social data. If you're not associated with the company, you can't pull its feed even if the app has permissions.Verify the organization ID and API endpoint path
Make sure you're using the correct numerical organization ID (not the vanity URL or company name). You can fetch valid organization IDs for your account using theGET /me/organizationsendpoint first. Also, double-check the endpoint you're calling—for example, the correct path for a company's feed isGET /organizations/{organizationId}/feed; typos here can sometimes trigger misleading permission errors.Check if your app is in Live mode
If your app is still in "Development" mode, it's restricted to sandbox data or only accessible to app developers. To access real organization data, you need to submit your app for review and get it approved for Live status. This includes providing details about how you'll use the API data to comply with LinkedIn's policies.
If none of these fix the issue, try testing with a different company page you know you have admin access to, or check LinkedIn's API status page to rule out service outages.
内容的提问来源于stack exchange,提问作者Tim Su




