Android facebook sdk 3.0 logout not working?
android, facebook, facebook-graph-api
Solution
Ans: Working fine
Session.openActiveSession(this, true, new Session.StatusCallback() {
@Override
public void call(final Session session, final SessionState state, Exception exception){
// TODO Auto-generated method stub
if(session.isOpened()){
Request.executeMeRequestAsync(session, new Request.GraphUserCallback() {
@Override
public void onCompleted(GraphUser user, Response response) {
// TODO Auto-generated method stub
if(user!=null){
try{
session.close();
session.closeAndClearTokenInformation();
//state.isClosed();
}catch (Exception e) {
Log.e(tag, "getUserIdMethod--->"+e);
}
}
}
});
}
}});
Problem
I'm using facebook sdk 3.0 to login my application. login working fine. once i logout my application it's not happening. my logout code: ``` Facebook mFb=new Facebook("xxxxxxxx"); mFb.logout(this); ``` give me some idea to do this.