Assuming you've asked for the email permission you'll have access to
the authenticated facebook user's email with:
$this->Connect->user('email');
Save into your users database however you see fit.
Example:
if($this->Connect->user('email') && !$this->User->field('email')){
$this->User->saveField('email', $this->Connect->user('email'));
}
Hope that helps,
Nick
On Jan 27, 5:28 pm, tubiz <[email protected]> wrote:
> Presently i am using the Facebook Authentication Plugin by Webtechnik
> but i have a problem i would like to store the email address of the
> user into my database after the user has logged in. I have already set
> the users details into a variable called facebook_user where I am
> stuck now is how to save the user detials into the database after the
> user has logged in. Thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php