i want to perform facebook logout in my application,here is my logout what i did till now
logout.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Session session = Session.getActiveSession();
System.out.println("session"+session);
singleton.fb_userid="";
singleton.login_via_fb="";
Intent i=new Intent(delivery.this,MainActivity.class);
startActivity(i);
}
});
Here the problem is i am getting session value as null,so i get the facebook used id and based on some logic i am performing the logout.
my question is when ever i logout it not again asking the login screen rather it directly saying you are a authorized user of this app.
How can i do that,please provide some suggestions.i am using some 2 series facebook sdk.