title: Check List of facebook link is FB page or FB profile?
body: <p>I have a list of facebook links. I want to check if the link is Fb profile or Fb page.</p>
  <p>Example</p>
  <pre><code>data = [
  'https://www.facebook.com/&lt;username-profile-1&gt;',
  'https://www.facebook.com/&lt;username-fanpage&gt;',
  'https://www.facebook.com/&lt;username-profile-2&gt;',
  'https://www.facebook.com/&lt;username-fanpage-xxx&gt;',
  ];
  
  function checkFbLinks(data) {
    // code here
  }
  </code></pre>
  <p>Result</p>
  <pre><code>FBProfile = [
  'https://www.facebook.com/&lt;username-profile&gt;',
  'https://www.facebook.com/&lt;username-profile-2&gt;',
  ];
  FBFanPage = [
  'https://www.facebook.com/&lt;username-fanpage&gt;',
  'https://www.facebook.com/&lt;username-fanpage-xxx&gt;',
  ];
  </code></pre>
  <p>I tried researching and discovered this API.</p>
  <pre><code>https://graph.facebook.com/v12.0/&lt;username&gt;/posts?limit=31&amp;access_token=&lt;access_token&gt;
  </code></pre>
  <p>If it is a FB Page, it will return a list of posts, otherwise it will return an error for FB profile.
  <br>
  But with a list of links (maybe 100 - 200 links), this way is not optimal.</p>