调用logInWithReadPermissionsInBackground始终返回null user和invalid date error
com.parse.ParseRequest$ParseRequestException: Invalid date
我正在使用ParseFacebookUtils [V4-1.9.1]
这是我的代码
private void onLoginUserClicked () { final List<String> permissions = new ArrayList<String>(); permissions.add("public_profile"); permissions.add("user_status"); permissions.add("user_friends"); ParseFacebookUtils.logInWithReadPermissionsInBackground(LoginActivity.this,permissions,new LogInCallback() { @Override public void done(ParseUser user,ParseException err) { if (user == null) { Log.d("MyApp","Error: "+err); } else { if (user.isNew()) { Log.d("MyApp","User signed up and logged in through Facebook!"); } else { Log.d("MyApp","User logged in through Facebook!"); } } } }); }
什么都没有 – 正常我无法克服这一点任何帮助?
解决方法
我有类似的问题.
我错过了这个方法:
@Override protected void onActivityResult(int requestCode,int resultCode,Intent data) { super.onActivityResult(requestCode,resultCode,data); ParseFacebookUtils.onActivityResult(requestCode,data); }