我无法上传任何照片,相关照片会通过链接添加。
我最近将facebook登录集成到我的移动应用程序中 但是当我尝试从管理员用户登录时,即使用我的Facebook帐户,我收到以下错误:
PHOTO: App is still under development mode error
我尝试过这里描述的解决方案,但没有成功。
Facebook API "This app is in development mode"
我无法上传2个以上所以我只会注意到:
这是为登录请求创建的代码:
公共类LoginActivity扩展了AppCompatActivity {
private String TAG = LoginActivity.class.getSimpleName();
final CallbackManager fbCallbackManager = CallbackManager.Factory.create();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityLoginBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_login);
binding.fbLoginButton.registerCallback(fbCallbackManager, new FacebookCallback<LoginResult>() {
@Override
public void onSuccess(LoginResult loginResult) {
Log.d(TAG, "Facebook loging returned details: " + loginResult.toString());
//LoginManager.getInstance().logInWithReadPermissions(LoginActivity.this, Arrays.asList("public_profile"));
}
@Override
public void onCancel() {
Log.d(TAG, "Facebook loging was cancelled");
}
@Override
public void onError(FacebookException error) {
Log.e(TAG, "Facebook login error: " + error.getMessage());
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
fbCallbackManager.onActivityResult(requestCode, resultCode, data);
}
}
我真的很感谢您对此的帮助
爱丽儿