You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

LinkedIn accessToken获取及TYPO3集成权限问题咨询

Fixing "access_denied" Error for LinkedIn Client Credentials Flow

I’ve run into this exact issue before when integrating LinkedIn content into CMS platforms like TYPO3, so let’s break down what’s going wrong and how to fix it:

Why You’re Getting This Error

LinkedIn restricts the client_credentials grant type by default—your app needs specific permissions, enabled flows, and possibly verified status to use it. The error message means your app isn’t authorized to generate application-level access tokens yet.

Step-by-Step Fixes

  1. Enable Client Credentials Flow in Your App

    • Head to the LinkedIn Developer Portal, open your app, and navigate to the Auth tab.
    • Look for OAuth 2.0 Settings → Allowed OAuth Flows. Make sure the Client Credentials Flow checkbox is ticked. If you don’t see this option, your app might need to be upgraded to a Verified Company App (more on that later).
  2. Add the Required Product & Permissions
    To fetch your company’s LinkedIn news, you need the r_organization_social permission (application-level access to your company’s social content):

    • Go to the Products tab of your app. Search for and add the Marketing Developer Platform product. LinkedIn will review this request (usually takes 1-2 business days).
    • Once approved, go back to the Auth tab → Application Permissions. Check the box for r_organization_social and save your changes.
  3. Use the Correct Request Method
    You mentioned using a GET request for the access token—but LinkedIn requires this request to be a POST (GET is not supported for client credentials flow, which is likely contributing to the error). Here’s the correct format:

    curl -X POST 'https://www.linkedin.com/oauth/v2/accessToken' \
      -H 'Content-Type: application/x-www-form-urlencoded' \
      -d 'grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET'
    
  4. Link Your Company Page to the App

    • Go to the Company Pages tab in your app’s settings.
    • Click Add Company Page and follow the prompts to link the LinkedIn page you want to pull news from. This ensures the application-level token can access that page’s content.
  5. Verify Your App (If Needed)
    If you still don’t see the Client Credentials Flow option, your app needs to be a Verified Company App:

    • Navigate to the Settings tab → Verification.
    • Submit the required documentation (like a business license or official letter) to verify your app is associated with your company. LinkedIn will review this, and once approved, the flow will be enabled.

Final Checks

After completing these steps, retry the access token request. Once you have a valid token, you can use it to call the LinkedIn API endpoint for fetching company posts (e.g., GET /v2/organizationalEntityShareFeed?q=organizationalEntity&organizationalEntity=urn:li:organization:{YOUR_COMPANY_ID}) and integrate that data into your TYPO3 site.

内容的提问来源于stack exchange,提问作者netzteil

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 13:49:08