I have problem with query value.
This is working.
$userArray = $database->select("app", "fb_id=14175962160");
but below isn't working. Why?
$user = $facebook->getUser(); // contains my fb id - 14175962160
$userArray = $database->select("app", "fb_id='$user'");
$userArray = $database->select("app", "fb_id=$user");
$userArray = $database->select("app", "fb_id=" . $user);
var_dump($user)
to see what value it actually contains?