com.facebook.android.FacebookError: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers

Appcelerator JIRA | Eric Merriman | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    While running some Facebook tests, I was unable to log in on the Droid which had no Facebook app installed. After further investigation, I could not determine if the lack of Facebook app was entirely relevant. The console reported: {code} D/Module ( 2075): Loading module: ../examples/facebook_login_logout -> Resources/examples/facebook_login_logout.js D/dalvikvm( 2075): GC_FOR_MALLOC freed 5598 objects / 354176 bytes in 61ms D/LoginButtonProxy( 2075): (KrollRuntimeThread) [1616,136620] Second constructor called D/TiUIView( 2075): (main) [214,136834] Nativeview is null D/TiUIView( 2075): (main) [58,136892] Nativeview is null I/ActivityManager( 1086): Displayed activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity: 682 ms (total 682 ms) E/FacebookModule( 2075): (main) [3149,140041] LoginDialogListener onError: The connection to the server was unsuccessful. E/FacebookModule( 2075): com.facebook.android.DialogError: The connection to the server was unsuccessful. E/FacebookModule( 2075): at com.facebook.android.FbDialog$FbWebViewClient.onReceivedError(FbDialog.java:211) E/FacebookModule( 2075): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:303) E/FacebookModule( 2075): at android.os.Handler.dispatchMessage(Handler.java:99) E/FacebookModule( 2075): at android.os.Looper.loop(Looper.java:123) E/FacebookModule( 2075): at android.app.ActivityThread.main(ActivityThread.java:4627) E/FacebookModule( 2075): at java.lang.reflect.Method.invokeNative(Native Method) E/FacebookModule( 2075): at java.lang.reflect.Method.invoke(Method.java:521) E/FacebookModule( 2075): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/FacebookModule( 2075): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) E/FacebookModule( 2075): at dalvik.system.NativeStart.main(Native Method) E/FacebookModule( 2075): (main) [12,140053] onAuthFail: The connection to the server was unsuccessful. I/dalvikvm( 2075): Jit: resizing JitTable from 4096 to 8192 D/dalvikvm( 1424): GC_EXPLICIT freed 278 objects / 13984 bytes in 76ms {code} Thinking that the lack of the Facebook was the cause, I attempted to use the Droid 3 with the Facebook tests, and was unable to login with the following result in the console: {code} 07-23 16:02:13.367 2711 2711 E FacebookModule: (main) [386503,424630] LoginDialogListener onFacebookError: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers 07-23 16:02:13.367 2711 2711 E FacebookModule: com.facebook.android.FacebookError: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers 07-23 16:02:13.367 2711 2711 E FacebookModule: at com.facebook.android.Facebook.authorizeCallback(Facebook.java:503) 07-23 16:02:13.367 2711 2711 E FacebookModule: at ti.modules.titanium.facebook.FacebookModule$4.onResult(FacebookModule.java:397) 07-23 16:02:13.367 2711 2711 E FacebookModule: at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:57) 07-23 16:02:13.367 2711 2711 E FacebookModule: at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:79) 07-23 16:02:13.367 2711 2711 E FacebookModule: at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:522) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.Activity.dispatchActivityResult(Activity.java:3988) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.deliverResults(ActivityThread.java:2666) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.handleSendResult(ActivityThread.java:2712) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.access$2000(ActivityThread.java:124) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1004) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.os.Handler.dispatchMessage(Handler.java:99) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.os.Looper.loop(Looper.java:130) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.main(ActivityThread.java:3821) 07-23 16:02:13.367 2711 2711 E FacebookModule: at java.lang.reflect.Method.invokeNative(Native Method) 07-23 16:02:13.367 2711 2711 E FacebookModule: at java.lang.reflect.Method.invoke(Method.java:507) 07-23 16:02:13.367 2711 2711 E FacebookModule: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 07-23 16:02:13.367 2711 2711 E FacebookModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 07-23 16:02:13.367 2711 2711 E FacebookModule: at dalvik.system.NativeStart.main(Native Method) 07-23 16:02:13.367 2711 2711 E FacebookModule: (main) [3,424633] onAuthFail: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers {code} Steps to reproduce: 1) Install the KS from 2.1.X branch 2) Navigate to Mashups > Facebook 3) Monitor log cat 4) Attempt to login with "force dialog" off Result: Failure to log in Expected: The ability to log in successfully

    Appcelerator JIRA | 5 years ago | Eric Merriman
    com.facebook.android.FacebookError: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers
  2. 0

    While running some Facebook tests, I was unable to log in on the Droid which had no Facebook app installed. After further investigation, I could not determine if the lack of Facebook app was entirely relevant. The console reported: {code} D/Module ( 2075): Loading module: ../examples/facebook_login_logout -> Resources/examples/facebook_login_logout.js D/dalvikvm( 2075): GC_FOR_MALLOC freed 5598 objects / 354176 bytes in 61ms D/LoginButtonProxy( 2075): (KrollRuntimeThread) [1616,136620] Second constructor called D/TiUIView( 2075): (main) [214,136834] Nativeview is null D/TiUIView( 2075): (main) [58,136892] Nativeview is null I/ActivityManager( 1086): Displayed activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity: 682 ms (total 682 ms) E/FacebookModule( 2075): (main) [3149,140041] LoginDialogListener onError: The connection to the server was unsuccessful. E/FacebookModule( 2075): com.facebook.android.DialogError: The connection to the server was unsuccessful. E/FacebookModule( 2075): at com.facebook.android.FbDialog$FbWebViewClient.onReceivedError(FbDialog.java:211) E/FacebookModule( 2075): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:303) E/FacebookModule( 2075): at android.os.Handler.dispatchMessage(Handler.java:99) E/FacebookModule( 2075): at android.os.Looper.loop(Looper.java:123) E/FacebookModule( 2075): at android.app.ActivityThread.main(ActivityThread.java:4627) E/FacebookModule( 2075): at java.lang.reflect.Method.invokeNative(Native Method) E/FacebookModule( 2075): at java.lang.reflect.Method.invoke(Method.java:521) E/FacebookModule( 2075): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/FacebookModule( 2075): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) E/FacebookModule( 2075): at dalvik.system.NativeStart.main(Native Method) E/FacebookModule( 2075): (main) [12,140053] onAuthFail: The connection to the server was unsuccessful. I/dalvikvm( 2075): Jit: resizing JitTable from 4096 to 8192 D/dalvikvm( 1424): GC_EXPLICIT freed 278 objects / 13984 bytes in 76ms {code} Thinking that the lack of the Facebook was the cause, I attempted to use the Droid 3 with the Facebook tests, and was unable to login with the following result in the console: {code} 07-23 16:02:13.367 2711 2711 E FacebookModule: (main) [386503,424630] LoginDialogListener onFacebookError: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers 07-23 16:02:13.367 2711 2711 E FacebookModule: com.facebook.android.FacebookError: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers 07-23 16:02:13.367 2711 2711 E FacebookModule: at com.facebook.android.Facebook.authorizeCallback(Facebook.java:503) 07-23 16:02:13.367 2711 2711 E FacebookModule: at ti.modules.titanium.facebook.FacebookModule$4.onResult(FacebookModule.java:397) 07-23 16:02:13.367 2711 2711 E FacebookModule: at org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:57) 07-23 16:02:13.367 2711 2711 E FacebookModule: at org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:79) 07-23 16:02:13.367 2711 2711 E FacebookModule: at org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:522) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.Activity.dispatchActivityResult(Activity.java:3988) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.deliverResults(ActivityThread.java:2666) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.handleSendResult(ActivityThread.java:2712) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.access$2000(ActivityThread.java:124) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1004) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.os.Handler.dispatchMessage(Handler.java:99) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.os.Looper.loop(Looper.java:130) 07-23 16:02:13.367 2711 2711 E FacebookModule: at android.app.ActivityThread.main(ActivityThread.java:3821) 07-23 16:02:13.367 2711 2711 E FacebookModule: at java.lang.reflect.Method.invokeNative(Native Method) 07-23 16:02:13.367 2711 2711 E FacebookModule: at java.lang.reflect.Method.invoke(Method.java:507) 07-23 16:02:13.367 2711 2711 E FacebookModule: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 07-23 16:02:13.367 2711 2711 E FacebookModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 07-23 16:02:13.367 2711 2711 E FacebookModule: at dalvik.system.NativeStart.main(Native Method) 07-23 16:02:13.367 2711 2711 E FacebookModule: (main) [3,424633] onAuthFail: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers {code} Steps to reproduce: 1) Install the KS from 2.1.X branch 2) Navigate to Mashups > Facebook 3) Monitor log cat 4) Attempt to login with "force dialog" off Result: Failure to log in Expected: The ability to log in successfully

    Appcelerator JIRA | 5 years ago | Eric Merriman
    com.facebook.android.FacebookError: invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers

    Root Cause Analysis

    1. com.facebook.android.FacebookError

      invalid_key:Android key mismatch. Your key "zON/CPoDnIgHvMure4hh9HWdR58" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers

      at com.facebook.android.Facebook.authorizeCallback()
    2. com.facebook.android
      Facebook.authorizeCallback
      1. com.facebook.android.Facebook.authorizeCallback(Facebook.java:503)
      1 frame
    3. ti.modules.titanium
      FacebookModule$4.onResult
      1. ti.modules.titanium.facebook.FacebookModule$4.onResult(FacebookModule.java:397)
      1 frame
    4. org.appcelerator.titanium
      TiBaseActivity.onActivityResult
      1. org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:57)
      2. org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:79)
      3. org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:522)
      3 frames
    5. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:3988)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:2666)
      3. android.app.ActivityThread.handleSendResult(ActivityThread.java:2712)
      4. android.app.ActivityThread.access$2000(ActivityThread.java:124)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1004)
      6. android.os.Handler.dispatchMessage(Handler.java:99)
      7. android.os.Looper.loop(Looper.java:130)
      8. android.app.ActivityThread.main(ActivityThread.java:3821)
      8 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:507)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame