I check some issues similary to mine,and know it may be wrong about my Override method,but I couldn't find where the problem is.In main activity I Override the onActivityReslut:
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
facebookLoginPlugin.onActivityResult(requestCode, resultCode, data);
}
facebookLoginPlugin is a instace of Class FBLogin;
facebookLoginPlugin = new FBLogin(this);
and in FBLogin I call onActivityResult like this:
public void onActivityResult(int requestCode,int resultCode,Intent data)
{
uiHelper.onActivityResult(requestCode, requestCode, data);
Session session = Session.getActiveSession();
session.onActivityResult(activity, requestCode, resultCode, data);
Log.i(TAG,"onActivityResult ====="+session.isOpened()+" "+session.isClosed());
String status = getStatus(0);
Log.i(TAG,"status of facebook now is "+status);
Log.i(TAG,"resultCode ="+resultCode);
}
but when I loggin to facebook I got session.isOpend()==false,and the status now is "Openging",I am sure the keyhash and the appid can work for the sampleHellofacebook,and the dashboad implement that I am loginto the app ,please help,thanks.