Facebook API Error: “User does not have sufficient administrative permission for this action on this page.”









up vote
9
down vote

favorite












I'm using a Facebook app (in development mode) to generate a page access token so that my personal web app can schedule/edit/delete posts on a Facebook fan page.



I'm using the Graph Explorer to generate the token while logged in as the admin of the fan page.



When I use that token, I'm able to GET a list of the scheduled posts, but whenever I try to edit or delete a post, I get this error:



"User does not have sufficient administrative permission for this action on this page."



Here is the debug of the token:



enter image description here



Any ideas on how to fix this?










share|improve this question





















  • Sounds like the user does not have the necessary admin level on the page - this is something that needs to be fixed in the page settings.
    – CBroe
    Oct 9 '16 at 11:41










  • I am the admin of the page. I can manually create, edit and delete scheduled posts within Facebook.
    – jetlej
    Oct 10 '16 at 19:10














up vote
9
down vote

favorite












I'm using a Facebook app (in development mode) to generate a page access token so that my personal web app can schedule/edit/delete posts on a Facebook fan page.



I'm using the Graph Explorer to generate the token while logged in as the admin of the fan page.



When I use that token, I'm able to GET a list of the scheduled posts, but whenever I try to edit or delete a post, I get this error:



"User does not have sufficient administrative permission for this action on this page."



Here is the debug of the token:



enter image description here



Any ideas on how to fix this?










share|improve this question





















  • Sounds like the user does not have the necessary admin level on the page - this is something that needs to be fixed in the page settings.
    – CBroe
    Oct 9 '16 at 11:41










  • I am the admin of the page. I can manually create, edit and delete scheduled posts within Facebook.
    – jetlej
    Oct 10 '16 at 19:10












up vote
9
down vote

favorite









up vote
9
down vote

favorite











I'm using a Facebook app (in development mode) to generate a page access token so that my personal web app can schedule/edit/delete posts on a Facebook fan page.



I'm using the Graph Explorer to generate the token while logged in as the admin of the fan page.



When I use that token, I'm able to GET a list of the scheduled posts, but whenever I try to edit or delete a post, I get this error:



"User does not have sufficient administrative permission for this action on this page."



Here is the debug of the token:



enter image description here



Any ideas on how to fix this?










share|improve this question













I'm using a Facebook app (in development mode) to generate a page access token so that my personal web app can schedule/edit/delete posts on a Facebook fan page.



I'm using the Graph Explorer to generate the token while logged in as the admin of the fan page.



When I use that token, I'm able to GET a list of the scheduled posts, but whenever I try to edit or delete a post, I get this error:



"User does not have sufficient administrative permission for this action on this page."



Here is the debug of the token:



enter image description here



Any ideas on how to fix this?







facebook facebook-graph-api






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 6 '16 at 15:59









jetlej

1,96432134




1,96432134











  • Sounds like the user does not have the necessary admin level on the page - this is something that needs to be fixed in the page settings.
    – CBroe
    Oct 9 '16 at 11:41










  • I am the admin of the page. I can manually create, edit and delete scheduled posts within Facebook.
    – jetlej
    Oct 10 '16 at 19:10
















  • Sounds like the user does not have the necessary admin level on the page - this is something that needs to be fixed in the page settings.
    – CBroe
    Oct 9 '16 at 11:41










  • I am the admin of the page. I can manually create, edit and delete scheduled posts within Facebook.
    – jetlej
    Oct 10 '16 at 19:10















Sounds like the user does not have the necessary admin level on the page - this is something that needs to be fixed in the page settings.
– CBroe
Oct 9 '16 at 11:41




Sounds like the user does not have the necessary admin level on the page - this is something that needs to be fixed in the page settings.
– CBroe
Oct 9 '16 at 11:41












I am the admin of the page. I can manually create, edit and delete scheduled posts within Facebook.
– jetlej
Oct 10 '16 at 19:10




I am the admin of the page. I can manually create, edit and delete scheduled posts within Facebook.
– jetlej
Oct 10 '16 at 19:10












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Here according to the documentation



DELETING YOUR POST



These are the permissions you need in the scope of your token.



  • To delete a user's post, a user access token with publish_actions permission is required.

  • To delete a Page's post a Page access token and publish_pages permission is required.

  • To delete a User's post on Page a Page access token is required.

  • To delete another User's post on a Page-owned event the user_managed_groups permission is required.

UPDATING YOUR POST



  • A user access token with publish_actions permission.

SO you need publish_actions permission within the scope of your token.



Update 1




Also check here if you have the valid page role







share|improve this answer






















  • Correct me if I'm wrong, but I'm just trying to create/delete/update Page posts, so only publish_pages is required, which I already have.
    – jetlej
    Oct 17 '16 at 15:50










  • I also added publish_actions to the scope, but am still getting the same error
    – jetlej
    Oct 17 '16 at 16:09










  • Please update the screenshot which you get after adding publish_actions plugin,would be very helpful and can you also mention the error now which you get please? thanks.
    – Pritish Vaidya
    Oct 17 '16 at 19:29










  • yea i think you are right,it should have definitely worked,maybe you can try to add user access token too with publish_actions permission and also add user_managed_groups permission to it
    – Pritish Vaidya
    Oct 17 '16 at 22:19










  • I have tried all of those things. If you use a user token with publish_actions, it says you need a page token. I'm getting the same error.
    – jetlej
    Oct 18 '16 at 19:16










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39900654%2ffacebook-api-error-user-does-not-have-sufficient-administrative-permission-for%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Here according to the documentation



DELETING YOUR POST



These are the permissions you need in the scope of your token.



  • To delete a user's post, a user access token with publish_actions permission is required.

  • To delete a Page's post a Page access token and publish_pages permission is required.

  • To delete a User's post on Page a Page access token is required.

  • To delete another User's post on a Page-owned event the user_managed_groups permission is required.

UPDATING YOUR POST



  • A user access token with publish_actions permission.

SO you need publish_actions permission within the scope of your token.



Update 1




Also check here if you have the valid page role







share|improve this answer






















  • Correct me if I'm wrong, but I'm just trying to create/delete/update Page posts, so only publish_pages is required, which I already have.
    – jetlej
    Oct 17 '16 at 15:50










  • I also added publish_actions to the scope, but am still getting the same error
    – jetlej
    Oct 17 '16 at 16:09










  • Please update the screenshot which you get after adding publish_actions plugin,would be very helpful and can you also mention the error now which you get please? thanks.
    – Pritish Vaidya
    Oct 17 '16 at 19:29










  • yea i think you are right,it should have definitely worked,maybe you can try to add user access token too with publish_actions permission and also add user_managed_groups permission to it
    – Pritish Vaidya
    Oct 17 '16 at 22:19










  • I have tried all of those things. If you use a user token with publish_actions, it says you need a page token. I'm getting the same error.
    – jetlej
    Oct 18 '16 at 19:16














up vote
0
down vote













Here according to the documentation



DELETING YOUR POST



These are the permissions you need in the scope of your token.



  • To delete a user's post, a user access token with publish_actions permission is required.

  • To delete a Page's post a Page access token and publish_pages permission is required.

  • To delete a User's post on Page a Page access token is required.

  • To delete another User's post on a Page-owned event the user_managed_groups permission is required.

UPDATING YOUR POST



  • A user access token with publish_actions permission.

SO you need publish_actions permission within the scope of your token.



Update 1




Also check here if you have the valid page role







share|improve this answer






















  • Correct me if I'm wrong, but I'm just trying to create/delete/update Page posts, so only publish_pages is required, which I already have.
    – jetlej
    Oct 17 '16 at 15:50










  • I also added publish_actions to the scope, but am still getting the same error
    – jetlej
    Oct 17 '16 at 16:09










  • Please update the screenshot which you get after adding publish_actions plugin,would be very helpful and can you also mention the error now which you get please? thanks.
    – Pritish Vaidya
    Oct 17 '16 at 19:29










  • yea i think you are right,it should have definitely worked,maybe you can try to add user access token too with publish_actions permission and also add user_managed_groups permission to it
    – Pritish Vaidya
    Oct 17 '16 at 22:19










  • I have tried all of those things. If you use a user token with publish_actions, it says you need a page token. I'm getting the same error.
    – jetlej
    Oct 18 '16 at 19:16












up vote
0
down vote










up vote
0
down vote









Here according to the documentation



DELETING YOUR POST



These are the permissions you need in the scope of your token.



  • To delete a user's post, a user access token with publish_actions permission is required.

  • To delete a Page's post a Page access token and publish_pages permission is required.

  • To delete a User's post on Page a Page access token is required.

  • To delete another User's post on a Page-owned event the user_managed_groups permission is required.

UPDATING YOUR POST



  • A user access token with publish_actions permission.

SO you need publish_actions permission within the scope of your token.



Update 1




Also check here if you have the valid page role







share|improve this answer














Here according to the documentation



DELETING YOUR POST



These are the permissions you need in the scope of your token.



  • To delete a user's post, a user access token with publish_actions permission is required.

  • To delete a Page's post a Page access token and publish_pages permission is required.

  • To delete a User's post on Page a Page access token is required.

  • To delete another User's post on a Page-owned event the user_managed_groups permission is required.

UPDATING YOUR POST



  • A user access token with publish_actions permission.

SO you need publish_actions permission within the scope of your token.



Update 1




Also check here if you have the valid page role








share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 18 '16 at 11:17

























answered Oct 16 '16 at 18:20









Pritish Vaidya

11.5k21338




11.5k21338











  • Correct me if I'm wrong, but I'm just trying to create/delete/update Page posts, so only publish_pages is required, which I already have.
    – jetlej
    Oct 17 '16 at 15:50










  • I also added publish_actions to the scope, but am still getting the same error
    – jetlej
    Oct 17 '16 at 16:09










  • Please update the screenshot which you get after adding publish_actions plugin,would be very helpful and can you also mention the error now which you get please? thanks.
    – Pritish Vaidya
    Oct 17 '16 at 19:29










  • yea i think you are right,it should have definitely worked,maybe you can try to add user access token too with publish_actions permission and also add user_managed_groups permission to it
    – Pritish Vaidya
    Oct 17 '16 at 22:19










  • I have tried all of those things. If you use a user token with publish_actions, it says you need a page token. I'm getting the same error.
    – jetlej
    Oct 18 '16 at 19:16
















  • Correct me if I'm wrong, but I'm just trying to create/delete/update Page posts, so only publish_pages is required, which I already have.
    – jetlej
    Oct 17 '16 at 15:50










  • I also added publish_actions to the scope, but am still getting the same error
    – jetlej
    Oct 17 '16 at 16:09










  • Please update the screenshot which you get after adding publish_actions plugin,would be very helpful and can you also mention the error now which you get please? thanks.
    – Pritish Vaidya
    Oct 17 '16 at 19:29










  • yea i think you are right,it should have definitely worked,maybe you can try to add user access token too with publish_actions permission and also add user_managed_groups permission to it
    – Pritish Vaidya
    Oct 17 '16 at 22:19










  • I have tried all of those things. If you use a user token with publish_actions, it says you need a page token. I'm getting the same error.
    – jetlej
    Oct 18 '16 at 19:16















Correct me if I'm wrong, but I'm just trying to create/delete/update Page posts, so only publish_pages is required, which I already have.
– jetlej
Oct 17 '16 at 15:50




Correct me if I'm wrong, but I'm just trying to create/delete/update Page posts, so only publish_pages is required, which I already have.
– jetlej
Oct 17 '16 at 15:50












I also added publish_actions to the scope, but am still getting the same error
– jetlej
Oct 17 '16 at 16:09




I also added publish_actions to the scope, but am still getting the same error
– jetlej
Oct 17 '16 at 16:09












Please update the screenshot which you get after adding publish_actions plugin,would be very helpful and can you also mention the error now which you get please? thanks.
– Pritish Vaidya
Oct 17 '16 at 19:29




Please update the screenshot which you get after adding publish_actions plugin,would be very helpful and can you also mention the error now which you get please? thanks.
– Pritish Vaidya
Oct 17 '16 at 19:29












yea i think you are right,it should have definitely worked,maybe you can try to add user access token too with publish_actions permission and also add user_managed_groups permission to it
– Pritish Vaidya
Oct 17 '16 at 22:19




yea i think you are right,it should have definitely worked,maybe you can try to add user access token too with publish_actions permission and also add user_managed_groups permission to it
– Pritish Vaidya
Oct 17 '16 at 22:19












I have tried all of those things. If you use a user token with publish_actions, it says you need a page token. I'm getting the same error.
– jetlej
Oct 18 '16 at 19:16




I have tried all of those things. If you use a user token with publish_actions, it says you need a page token. I'm getting the same error.
– jetlej
Oct 18 '16 at 19:16

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39900654%2ffacebook-api-error-user-does-not-have-sufficient-administrative-permission-for%23new-answer', 'question_page');

);

Post as a guest














































































這個網誌中的熱門文章

Barbados

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3