CodeIgniter Forums
Facebook Connection Problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Facebook Connection Problem (/showthread.php?tid=53476)



Facebook Connection Problem - El Forum - 07-25-2012

[eluser]Bigil Michael[/eluser]
I want to do login with facebook account.
I have implemented this property by using this thread
Code:
Array ( [id] => 100001923642513 [name] => Bigil Michael [first_name] => Bigil [last_name] => Michael [link] =>...........)
But i want the email to complete the insertion/updation of database.
anybody know why email is not printing???????
help please......




Facebook Connection Problem - El Forum - 07-26-2012

[eluser]Bigil Michael[/eluser]
solved my problem by replacing
Code:
$data['login_url'] = $this->facebook->getLoginUrl();
with
Code:
$data['login_url'] = $this->facebook->getLoginUrl(array('scope' => 'email,read_stream'));