Prerequisite:
add compile time dependency
compile 'in.hubdestro:fbmanager:1.0'
if any error occur add this under repositoryrepositories {
jcenter()
maven {
url 'https://dl.bintray.com/hubdestro/Hubdestro-Labs' }
}
Step 1:
create instance of FacebookManager class
and do this FacebokManager manager = FacebookManager.getInstance();
manager.initialiseSdk(this);
manager.setPermission("public_profile","email");
before setContentView() method
Step 2 :
now onActivityResult(reqCode, resCode, data) {
manager.getCallBackManger().onActivityResult(reqCode,resCode, data);
}
Retrieve data :
done you will get data into callback, implement SocialCallback in your class. override getFbUserDetail() method
you will get user class object here.retrieve data from user object
for any issue with that, please comment