Tell me more ×  I have the following issue that drives me crazy.
I use the sample code published with the Facebook PHP SDK ( for
identifying a user. It works fine for most of my test users but
for some users, the instance creation does not work. I’ve tried
with the same machine and different machines, it does not change
anything. Each user is correctly set as test user in my dev
account.  What could be the cause? Many thanks in advance.
require '../lib/facebook.php';      $facebook = new
Facebook(array(       'appId'  => 'XXXXXXXXXX',       'secret'
=> 'XXXXXXXXXXX',      // Get User ID     $user =
$facebook->getUser();      if ($user) {       try {       }
catch (FacebookApiException $e) {         $user = null;      if
($user) {       $logoutUrl = $facebook->getLogoutUrl();     }
else {       $loginUrl = $facebook->getLoginUrl(array(
'scope' => 'publish_stream, publish_actions',
'redirect_uri' => ''      <!doctype html>     <html xmlns:fb="">
<?php if ($user): ?>