CodeIgniter Forums
Facebook Connection Problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Facebook Connection Problem (/thread-53476.html)



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'));