title: PHP JSON Insert in the Database for each found Data
body: <p>I am using Facebook API to get the Facebook Pages a user administers on Facebook.</p>
  
  <p>Have a look here:</p>
  
  <pre><code>https://graph.facebook.com/100000901920184/accounts/&amp;access_token=217662841620006|20de00ae16afeb68d32319d8.1-100000901920184|BCz2UJbFylKY_eG969GlBR4loqo
  </code></pre>
  
  <p>What I need to do is to insert in the Database EACH Facebook Page that is found.</p>
  
  <p>The DB will be structured in this way:</p>
  
  <pre><code>-ID (autoincrement)
  -PageName (the name of the Page)
  -PageID (the ID of the page 
  -access_token (the Access Token of the Page)
  -OwnerID (this is the user ID I will grab from another function I have)
  </code></pre>
  
  <p>So now do not mind this is for Facebook API. Just think you have those data to grab and you need to insert in the DB the above values for EACH Fan page.</p>
  
  <p>This can be done with JSON but I really do not know how to grab that data, organize the Data and Insert it in the DB for Each Page.</p>
  
  <p>Can you help me please?</p>