Facebook个人账号申请权限后发布内容报错,咨询管理员账号权限规则
Hey there, let's walk through why you're hitting this permission error even as an app admin, and how to fix it:
1. You might be mixing up permission use cases
The endpoint you're calling (POST https://graph.facebook.com/v3.0/me/feed) targets your personal Facebook profile's feed. For this endpoint, you need the publish_actions permission. While manage_pages and publish_pages let you post to Pages you administer, they don't apply to personal profile posts.
The error message mentions either permission set because it covers both personal and Page posting scenarios—but your current request is for a personal post, so focus on publish_actions.
2. Your access token is missing the required permissions
Being an app admin doesn't automatically grant you all permissions in your access token. You need to explicitly request the permissions during the authorization flow. Here's what to do:
- Regenerate your access token, making sure to include
publish_actions(andmanage_pages/publish_pagesif you also need Page posting access) in the scope parameter of your authorization request. - Use Facebook's built-in Access Token Debugger to verify that the token actually includes the permissions you need. Check for
publish_actionsin the "Scopes" section of the debugger results.
3. Double-check your app's development mode settings
If your app is still in Development Mode:
- Ensure your admin account is added to the app's Roles (under App Dashboard > Roles > Developers/Testers). Even admins need to be explicitly listed here to test restricted permissions like
publish_actions. - Note that
publish_actionsrequires Facebook review before it can be used by non-test users, but test users/approved admins should be able to use it in Development Mode without full approval—if the token has the permission.
4. If you intended to post to a Page instead of your profile
If your goal was to post to a Page you manage, switch to using the Page-specific endpoint:
POST https://graph.facebook.com/v3.0/{PAGE_ID}/feed
To use this, you'll need:
- A Page access token (retrieved via
GET https://graph.facebook.com/v3.0/me/accountsusing your user access token withmanage_pagespermission) - Confirmation that you're an admin of the target Page
- The Page access token must include the
publish_pagespermission
Quick Recap
- Verify your access token has the correct permissions for your target endpoint (personal vs Page).
- Ensure your admin account is listed in the app's test/developer roles.
- Confirm you're using the right endpoint for where you want to post.
内容的提问来源于stack exchange,提问作者pirmax

