title: Facebook PHP SDK $facebook->getSignedRequest() Get User ID and Name. (Page Tab)
body: <p><strong>Facebook Page Tab Problem</strong></p>
  <p>Well, I don't know how to say this, I want to retrieve the user's id and user's name on the page tab of facebook.</p>
  <p><img src="https://i.stack.imgur.com/baCq8.png" alt="enter image description here" /></p>
  <p>Then when you clicked the Application where the arrow points it should look like this.</p>
  <p><img src="https://i.stack.imgur.com/xpSgp.png" alt="enter image description here" /></p>
  <p>I don't get it why the <strong>Page Admin and Page Like is 1</strong> it should output the ID of the users right? and why the <strong>UserID is 0</strong>? I logged on and I already liked the page</p>
  <p>Then I wanted to retrieve the user's name and user's id &quot;<strong>to the user</strong>&quot; who will use this page tab app thing.</p>
  <p>Here is my code for that.</p>
  <pre><code>if(!@include(&quot;../sdk/facebook.php&quot;)) throw new Exception(&quot;Failed to include 'facebook.php'&quot;);
  $app_id = &quot;xxx&quot;; // Your application id
  $app_secret = &quot;xxx&quot;; // Your application secret
  $facebook = new Facebook(array(
  'appId' =&gt; $app_id,
  'secret' =&gt; $app_secret,
  'cookie' =&gt; true
  ));
  $signedrequest = $facebook-&gt;getSignedRequest();
  $fbp_id = $signedrequest[&quot;page&quot;][&quot;id&quot;]; //Facebook Fan Page ID
  echo $is_admin = $signedrequest[&quot;page&quot;][&quot;admin&quot;]; echo &quot; Page Admin &lt;br&gt;&quot;;
  echo $is_liked = $signedrequest[&quot;page&quot;][&quot;liked&quot;]; echo &quot; Page Liked&lt;br&gt;&quot;;
  echo $uid=$facebook-&gt;getUser(); echo &quot; User ID&lt;br&gt;&quot;;
  </code></pre>
  <p>Well I can retrieve the Fan Page ID, using the <strong>$fbp_id</strong> still, I can't retrieve the user's id <strong>it only outputs 0</strong>. How can I retrieve it? Any solution for this?</p>
  <p>Would be glad if you help me.</p>