java - How to get facebook permissions (contents)? -


i read docs lot facebook, don't see helps me email or id.

i searched in google there nothing helpful.

i have app log in , log out, need use email , id!

to these information need log in using facebook info, right? ok. facebook supports giving code log in. person can give permission user.

once user gives permission access info, can email , facebook id easily.

1 step -> how log in in android apps: https://developers.facebook.com/docs/android/login-with-facebook/v2.1

2 step -> permission : https://developers.facebook.com/docs/android/login-with-facebook/v2.1#step3 2.1 "here's example asks email..."

3- facebook sdk android : https://developers.facebook.com/docs/android/getting-started/

once above(it easier think), if not wrong(you have check right code), can useremail, , userid using code similar this:

 if (user != null) {                 textview welcome = (textview) findviewbyid(r.id.welcome);                 welcome.settext("hello " + user.getname() + "!"); 

i sure not way doing here, can email , id code in here. example:

email = user.email; user_id = user.getid(); 

this question can well.

i hope can you.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -