title: Convert Facebook Fanpage ID to Fanpage Name PHP SDK
body: <p>Well, I really have no idea how to do this, all I see in some posts here is like</p>
  
  <p>use this and you will get fan page id thing.</p>
  
  <pre><code>$signedrequest = $facebook-&gt;getSignedRequest();
  </code></pre>
  
  <p>And so on..</p>
  
  <p>But my problem lies in here, I'm trying to do a mysql select query, for example</p>
  
  <pre><code>//Note that $uid is MY user id 
  $query = "SELECT fanpage_id FROM fb_table WHERE uid='".$uid."';
  $result = mysql_query($query);
  $fanpage_id = $result[0];
  </code></pre>
  
  <p>So if I echo the fan page id, it will output like this</p>
  
  <pre><code>420276361382765
  </code></pre>
  
  <p>How do I convert it to facebook fan page name using the PHP SDK?</p>
  
  <p>Any help would be appreciated. Thanks.</p>