Search code examples
facebookcodeigniteremail

Facebook graph api (i) Only able to get public fields (ii) how to get email?


I know this is repetative quetion in stackoverflow, but I have checked and tried all of them. I am using CodeIgniter and Facebook connect.

I am using this facebook_connect library integrated in CodeIgniter : http://www.haughin.com/code/facebook/.

I am able to connect and get information from facebook. But I have some doubts.

(i) I am able to get username, link, picture. But can not get hometown, city until I change its permission to public (in facebook). Is it normally how it works?

(ii) Same way, for getting email, do I need to do any privacy changes in my facebook account?

Thanks.


Solution

  • You need to request the user_hometown and email permissions.