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

后端 未结 17 1889
花落未央
花落未央 2020-11-29 04:07

I am using Facebook login in android.
Code:

callbackManager = CallbackManager.Factory.create();
    LoginButton loginButton = (LoginButt         


        
相关标签:
17条回答
  • 2020-11-29 04:08

    In my case the generated hash key was wrong because i was using wrong OpenSSL. I was using openssl-0.9.8k_X64.zip instead of openssl-0.9.8e_X64.zip 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.

    0 讨论(0)
  • 2020-11-29 04:10

    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

    0 讨论(0)
  • 2020-11-29 04:11

    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
      https://developers.facebook.com/app/yourapp
    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 : https://developers.facebook.com
    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 : https://developers.facebook.com
    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 : https://developers.facebook.com

    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
    https://developers.facebook.com/docs/android/getting-started/#create_hash
    The most preferable solution by me is by code ( Troubleshooting Sample Apps )
    it will print out the hash key. you can update it on
    https://developers.facebook.com/apps/yourFacebookappID/settings/basic/
    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: https://developers.facebook.com

    2. Follow the step as follow.

    0 讨论(0)
  • 2020-11-29 04:12

    you need to see if the user that connect in the phone facebook app is a user that have test or developer permissions in the facebook developers on the app page.

    0 讨论(0)
  • 2020-11-29 04:14

    I just added this line and it worked for me.

    facebookLogin.setReadPermissions("email", "public_profile", "user_friends");
    
    0 讨论(0)
  • 2020-11-29 04:19

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

        <application
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme.Base">
    
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            tools:replace="android:value"
            android:value="@string/facebook_app_id" />
    <acitivity
    ...
    </activity>
    ...
    
    0 讨论(0)
提交回复
热议问题