Can I get a login user Email using Android Facebook Graph-API

瘦欲@ 提交于 2019-12-13 22:08:20

问题


I want to get a email of facebook login User but I am not success still to now. Can anybody help me that it is possible using a Facebook_Android API or not? explain with code if answer yes.


回答1:


Check this post for getting Email of the User :

String response=ZValues.authenticatedFacebook.request("me");
JSONObject obj = Util.parseJson(response);
useremail=obj.getString("email");

Util class will be available in Facebook code by default.



来源:https://stackoverflow.com/questions/7835262/can-i-get-a-login-user-email-using-android-facebook-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!