Search code examples
androidfacebookfacebook-graph-apifacebook-sdk-3.0

com.facebook.http.protocol.ApiException: remote_app_id does not match stored id with Facebook SDK 3.5


I am trying to make use of Facebook SDK 3.5 to authenticate users for my android applicaiton following the link, https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/. I am able to login to my application using facebook credentials from my emulator, using both facebook native app and facebook webpage(when facebook native app is not preinstalled). The issue is, for other user's emulator, only facebook authentication using webpage works but using facebook native app authentication does not work and the log says, com.facebook.http.protocol.ApiException: remote_app_id does not match stored id. I have verified the app_id, hashkey are consistent and as expected. Any thought ??


Solution

  • If other people are compiling your code, they're most likely using their own keystore, which would result in a different key hash.

    You can either use the same steps, and add their key hashes to your app settings, or you can distribute your debug keystore to the other users who will be compiling your app, or you can build your app as an apk using your keystore, and distribute the apk to the other users.