user583726
user583726

Reputation: 685

check publish_action permission using javascript

How can I check if the user has given permission and not disabled (publish_action) permission to do post (publish_action) using open graph apis ?

Upvotes: 1

Views: 523

Answers (1)

Igy
Igy

Reputation: 43816

Make a call to /me/permissions with the user's access token or /USER_ID/permissions with the app access token. It shows which permissions you have for that user.

Sample output is:

{
  "data": [
    {
      "installed": 1, 
      "manage_pages": 1, 
      "user_actions.music": 1
    }
  ]
}

Upvotes: 2

Related Questions