function fbc_register_user($email) { // REGISTER USER WITH FACEBOOK, REQUIRES EMAIL ADDRESS $email_hash = email_get_public_hash(); $accounts = array(array('email_hash' => $email_hash, 'account_id' => $this->fbc_uid)); return facebook_registerUsers($accounts); }
function delete() { // Delete the account from the db $ret = queryf('DELETE FROM users WHERE username = %s', $this->username); if (!$ret) { error_log("Could not delete account ({$this->username})"); return false; } // Unregister the account from fb return facebook_unregisterUsers(array(email_get_public_hash($this->email))); }