Facebook::getUser()
This method returns the Facebook User ID of the current user, or 0 if there is no logged-in user.
0
$uid = $facebook->getUser();
None.