SERVER_ERROR: [code] 1675030 [message]: Error performing query

I am using Facebook login in android. Code:

callbackManager = CallbackManager.Factory.create();
    LoginButton loginButton = (LoginButton) this.findViewById(;
    loginButton.setReadPermissions("email", "public_profile");
    loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
        public void onSuccess(LoginResult loginResult) {
            // App code
            Log.println(Log.ASSERT, "FB", "inicio session ");

        public void onCancel() {
            Log.println(Log.ASSERT, "FB", "OP NO completada");
            // App code

        public void onError(FacebookException exception) {
            Log.println(Log.ASSERT, "FB", " Errro de sesion ");
            // App code

but always getting the following error:

SERVER_ERROR: [code] 1675030 [message]: Error performing query. [extra]: Errors while executing operation "ProxyAuthAppLoginQuery": At Query.proxy_auth_app_login: Failed to resolve field. W/System.err: at com.facebook.login.LoginManager.onActivityResult( W/System.err: at com.facebook.login.LoginManager$1.onActivityResult( W/System.err: at com.facebook.internal.CallbackManagerImpl.onActivityResult( W/System.err: at com.procibernetica.moca.MainActivity.onActivityResult( W/System.err: at W/System.err: at W/System.err: at W/System.err: at$1300( W/System.err: at$H.handleMessage( W/System.err: at android.os.Handler.dispatchMessage( W/System.err: at android.os.Looper.loop( W/System.err: at W/System.err: at java.lang.reflect.Method.invokeNative(Native Method) W/System.err: at java.lang.reflect.Method.invoke( W/System.err: at$ W/System.err: at W/System.err: at dalvik.system.NativeStart.main(Native Method)

I've added the folowing permissions.

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>


I find the solution , this appends when you don't have evaluate users in your app .

Enter in your panel App Select Rol

And add test users , when your try to login with test users , the application executes without fails

Documentation on facebook is not correct. I had to add all 3 default permissions to make it work.

loginButton.setReadPermissions("email", "public_profile", "user_friends");

@Danial answer correct, But I want to add some more in that. This types of error comes only when app your in under development. Follow this link and select your App. Then you can do two things here. From Roles tab you can allow login to your friends only or else select the App Review and make your app public then any one can able to logged in.

I was getting the similar issue because Firebase UI was specifying the android:value. This is how I solved it:


        android:value="@string/facebook_app_id" />

All of the above answers didn't help me, what did was when you use this command

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

to get the Key Hashes you put in facebook configurations.

it will ask you for a password, at first I didn't set any, so the issue happened, when I entered android as the password. it worked !

Live developer mode Please check status of Developer mode. It must be "Live". Firstly, you need add privacy url for own facebook project which you want to test facebook login or sth .... Then enable developer mode (Turn on)

In my case the generated hash key was wrong because i was using wrong OpenSSL. I was using instead of and this generated me a wrong hash key which caused this problem hope it helps some one i lost like 8 hours trying to figure this out.

In my case problem was wrong generated Key Hash which need to submit on facebook app page Solution found on this article

Manually Check Key Hash - You can print out the key hash sent to Facebook and use that value in App Dashboard. Make this change to onCreate() in your main activity:

    PackageInfo info = getPackageManager().getPackageInfo(

    for (Signature signature : info.signatures) {
        MessageDigest md = MessageDigest.getInstance("SHA");
        Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
} catch (NameNotFoundException e) {  

} catch (NoSuchAlgorithmException e) {  


This error is returned in other situations too - even when your app is public or you're listed as a tester.

Double check that your

<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>

is resolving to a correct Facebook App ID, especially if you dynamically specify it using gradle build, rather than hard coding it in strings.xml.

I addition to the other answers please also check that the email of the account being used to log in is verified.

Issue Log: SERVER_ERROR: [code] 1675030 [message]: Error performing query

And Accurate Solution for this Specific issue (Error performing query) is answered by @aloha is by updating the query for access. loginButton.setReadPermissions("email", "public_profile", "user_friends");

  1. Find where you facebook login button was called.
  2. Then set the ReadPermission for the button as "email", "public_profile", "user_friends"

image Reference

Issue Log: App Not Setup. This app is still in development mode. and you dont have access to it. register test user or ask an app admin for permission

  1. The app are not in Live Mode
  2. You are not listed as admin or a tester in
  3. Your App Hashkey are not set. if Facebook app cant be on Live Mode you need a hashkey to test it. because the app are not yet Live. Facebook wont allow an access.

HOW TO CHANGE TO LIVE MODE 1. go to : 2. select your app on "My Apps" List 3. toggle the switch from OFF to ON

HOW TO ADD AS TEST OR ADMIN 1. go to : 2. select your app on "My Apps" List 3. go to : Roles > Roles > Press Add for example administrator 4. Search your new admin/tester Facebook account. 5. admin must enter facebook password to confirm.then submit the new admin must go to developer.facebook page and accept the request 6. go to : 7. Profile > Requests > Confirm 8. Congratulation you have been assign as new Admin

HOW TO GET AND SET HASHKEY FOR DEVELOPMENT as Refer to Facebook Login Documentation The most preferable solution by me is by code ( Troubleshooting Sample Apps ) it will print out the hash key. you can update it on on Android > Key Hashes section

a step by step process on how to get the hashKey.

  1. Firstly Add the code to any oncreate method

  2. Run The app and Search the KeyHash at Logcat

step by step process on how Update on Facebook Developer.

  1. Open Facebook Developer Page. You need access as to update the Facebook Developer page:

  2. Follow the step as follow.

Add a string resource "facebook_application_id" in your strings.xml

replace APP_ID with your facebook app id

<string name="facebook_application_id" translatable="false">APP_ID</string>

I just added this line and it worked for me.

facebookLogin.setReadPermissions("email", "public_profile", "user_friends");

Need Your Help

How to invalidate session in JSF 2.0?

session jsf-2 httpsession managed-bean session-scope

What is the best possible way to invalidate session within a JSF 2.0 application? I know JSF itself does not handle session. So far I could find