title: Query Facebook page permissions granted by user to FB app with JavaScript SDK
body: <p>I would like to know, how can I access the permissions specific to a FB page that was given by the user through a FB app.</p>
  
  <p>My problem is, that I want to create a messaging service, which requires the user to give permission to:</p>
  
  <ul>
  <li>manage_pages</li>
  <li>pages_messaging</li>
  <li>pages_messaging_subscriptions</li>
  </ul>
  
  <p>The user authenticate into my system, I ask these permission. The user has the options to choose which pages he wants to give these permissions, and he can make the mistake of clicking on the wrong page in one category. Because of this, my service will not work properly. </p>
  
  <p>For example:</p>
  
  <ul>
  <li>I have two pages, named: A, B</li>
  <li>I give manage_pages permission to A, but not B.</li>
  <li>I want to give pages_messaging and pages_messaging_subscription to A, however I missclick, and give it to B.</li>
  <li>My service will not work properly after this.</li>
  </ul>
  
  <p>So, I need to check for the given permissions for page A. How can I do that?</p>
  
  <p>This project is written in Vue, so basically I am using the JavaScript SDK to do this.</p>