3

在最终的 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);
4

1 回答 1

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);
于 2012-12-22T07:27:28.380 回答