$graphUrl = 'https://graph.facebook.com/me?access_token=' . urlencode($this->accessToken);
$this->fbuser = json_decode(file_get_contents($graphUrl));
- if (!empty($this->fbuser)) {
- $this->fbuid = $this->fbuser->id;
- // OKAY, all is well... proceed to register
- return true;
- } else {
-
+ if (empty($this->fbuser)) {
// log badness
list($proxy, $ip) = common_client_ip();
);
}
- return false;
+ $this->fbuid = $this->fbuser->id;
+ // OKAY, all is well... proceed to register
+ return true;
}
function handle($args)