PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, November 3, 2022

[FIXED] How to revoke all permission on facebook api using rest api

 November 03, 2022     facebook-graph-api     No comments   

Issue

I trying to revoke all permission on withdrawl user facebook document said will be conducted by calling Url with 'user access token or app access token

https://graph.facebook.com/me/{user_id}/permissions

but i cant attaching user access token in this request, but i can attach app access token in query params. so i requested this url with app access token, but response message is "An active access token must be used to query information about the current user."

Can I really request it with an app access token?


Solution

/me/{user_id}/ makes no sense as request path here.

You either use /me, in combination with a user or page token - then that alias will resolve to the actual ID of the entity the token belongs to.
Or you use an app-scoped user ID directly.

If you want to perform any actions on a user account using the app access token, then you must use the second version.

https://graph.facebook.com/{user_id}/permissions?access_token={app_access_token}


Answered By - CBroe
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing