title: facebook sdk 4.0 equivalent for Session.StatusCallBack and OpenRequest in android
body: <p>i'm upgrading my android app to Facebook sdk 4.0 and Graph API v2.0and I'd like to know if there are equivalent classes for Session.StatusCallBack and OpenRequest. Here is my code , if anyone could help that'd be great :))</p>
  
  <pre><code>    OpenRequest op = new Session.OpenRequest(activity);
  
      Settings.addLoggingBehavior(LoggingBehavior.INCLUDE_RAW_RESPONSES);
  
      op.setCallback(statusCallback);
  
      List&lt;String&gt; permissions = new ArrayList&lt;String&gt;();
      permissions.add(Constants.EMAIL);
      op.setPermissions(permissions);
      Session sess = new Session.Builder(activity).build();
      Session.setActiveSession(sess);
      sess.openForRead(op.setPermissions(permissions));
  </code></pre>
  
  <p>and the for my StatusCallback</p>
  
  <pre><code>Session.StatusCallback statusCallback = new Session.StatusCallback() {
                                            @Override
                                            public void call(Session session, SessionState state, Exception exception) {
                                                // Request.executeMeRequestAsync(session, graghUserCallback);
                                                if (exception != null) {
                                                    String exMsg = exception.getMessage();
                                                    if (exMsg != null &amp;&amp; exMsg.startsWith("ApiException:Error")) {
                                                        isExpireToken = true;
                                                        callbackLogin.onFbLoginError(context.getString(R.string.msgFBConnectFaild));
                                                        String url = Constants.API_FB_TOKEN + myApp.getFbToken();
                                                        Api.sendError(myApp, url, 0, exMsg, Method.POST, null);
                                                    }
                                                }
                                                CommonUsed.showProgressDialog(context.getResources().getString(R.string.waiting), context);
                                                runQueryGetUserProfile(session, ConnectionBase.this.callbackLogin);
  
                                            }
  
                                        };
  </code></pre>