PHP Facebook SDK - check if user liked a fanpage <p>I'm trying to check if user liked a fanpage.</p> <p>Here is my code:</p> <pre><code> $facebook = new Facebook(array( 'appId' =&gt; APP_ID, 'secret' =&gt; APP_SECRET, 'cookie' =&gt; true, )); $user = $facebook-&gt;getUser(); if (!$user) { $loginUrl = $facebook-&gt;getLoginUrl(array( 'scope' =&gt; 'user_likes' )); } else { try { $likes = $facebook-&gt;api("/me/likes/".$fanpage_id); </code></pre> <p>And my problem - Facebook doesn't give me in a response facebook pages id. I don't know why. When I try to accept a permissions (as user), I can accept only publish informations about me. I can't accept permission "user_likes" because I can't see this permission in text information while I'm accepting a permissions.</p> <p>Anyone can't help me?</p>