title: Facebook Page Array to Select Box
body: <p>I am grabbing the facebook pages a user admins and displaying them in a select box through the Facebook JS SDK.</p>
  
  <p>What's the best way to take the array I get back from facebook <code>response.data</code> and iterate so it goes into the <code>select</code>?</p>
  
  <pre><code>  &lt;div id="fb-root"&gt;&lt;/div&gt;
    &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;
    &lt;/script&gt;
    &lt;script&gt;
      FB.init({ 
      appId:'119406238144386', cookie:true, 
      status:true, xfbml:true 
      });
      FB.api('/me/accounts/', function(response) {
        alert(response.data);
      });
     &lt;/script&gt;
     &lt;select id="pages"&gt;&lt;/select&gt;
    &lt;fb:login-button perms="manage_pages"&gt;Connect to Facebook&lt;/fb:login-button&gt;
  </code></pre>