Q:

How to go Next Activity directly after Login in facebook SDK 3.0 in android

i am using facebook SDK 3.0 when i am login to facebook it come back to login screen than go to next Activity but i want to go directly to Next Activity. 
This is my Code :-
if (session.isOpened()) {
        token = session.getAccessToken();
        Log.i("TAG", "Access Token" + token);
        Request.executeMeRequestAsync(session,new Request. GraphUserCallback() {
            @Override
            public void onCompleted(GraphUser user, Response response) {
                    if (user ! = null) {
                        id = user.getId();
                        Log.i("TAG", "User ID " + user.getId());
                        Log.i("TAG", "Email "+ user.asMap().get("email"));

                            try {
                                URL image_value = new URL("http://graph.facebook.com/"+id+"/picture?type=large" );
                                profPict=BitmapFactory.decodeStream(image_value.openConnection().getInputStream());

                                    } catch (MalformedURLException e) {
                                        // TODO Auto-generated catch block
                                        e.printStackTrace();
                                    } catch (IOException e) {
                                        // TODO Auto-generated catch block
                                        e.printStackTrace();
                                    }

                                    //http://graph.facebook.com/4/picture

                                    Intent i = new Intent(MainActivity.this,Next.class);
                                     i.putExtra("BitmapImage", profPict);  
                                    startActivity(i);
                                    // lblEmail.setText(user.asMap().get("email").toString());
                            }
                    }
            });
}

And onActivityResult()
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    Session.getActiveSession().onActivityResult(this, requestCode,
            resultCode, data);}

A:

Hey please instert the following code in the onActivityResult block:
Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
    if (Session.getActiveSession() ! = null || Session.getActiveSession().isOpened()){
                 Intent i = new Intent(MainActivity.this,Next.class);
                startActivity(i);
            }

This works fine.