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);
 }
Exemple #2
0
 function saveAndRegister()
 {
     if (!$this->save()) {
         return false;
     }
     // If that was successful, register the user with Facebook
     $email_hash = email_get_public_hash($this->email);
     $accounts = array(array('email_hash' => $email_hash, 'account_id' => $this->username));
     return facebook_registerUsers($accounts);
 }