It is web base application. The first page is asking for login. Once they click the login button, everything is going on with ajax.
In the ajax request,
$user = $facebook->getUser();
This is giving proper user id.
if ($user) {
try {
$fbme = $facebook->api('/me');
$user_id = $fbme['id'];
}
catch (FacebookApiException $e) {
error_log($e);
$user = null;
}
}
The below line was working before. Now it is end in the catch block. So I am not able the user details.
What could be the problem? Since I didn't make changes in the script so far, It is suddenly stopped working.