在最终的3.0 SDK中,ReauthorizeRequest类已经消失。如何替换以下代码?
Session.ReauthorizeRequest request = new Session.ReauthorizeRequest(this, PERMISSIONS);
request.setRequestCode(REAUTHORIZE_ACTIVITY);
request.setLoginBehavior(SessionLoginBehavior.SSO_WITH_FALLBACK);
request.setCallback(this);
session.reauthorizeForPublish(request);
答案 0 :(得分:8)
他们现在正在使用NewPermissionsRequest。 点击此处:https://developers.facebook.com/docs/reference/android/3.0/Session
Session.NewPermissionsRequest request = new Session.NewPermissionsRequest(this, PERMISSIONS);
request.setRequestCode(REAUTHORIZE_ACTIVITY);
request.setLoginBehavior(SessionLoginBehavior.SSO_WITH_FALLBACK);
request.setCallback(this);
session.requestNewPublishPermissions(request);