freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

Facebook sdk hash key configuration #255

Open dfeng99 opened 7 years ago

dfeng99 commented 7 years ago

Hi, I tried this ANE with Flash Builder on an android device and monitor the running process with Android studio logcat, the app always stop at whatever code call to Facebook sdk. I think it is something related to the hash code configuration. The problem I have encountered is when I change Flash Builder default keystore for development to the keystore provided by the Android Studio at ~/.android/debug.keystore the Flash Builder gets build error as attached picture 2017-09-12 3 15 46. And if I try it reversely, use the keystore which provided by Flash Builder and try it on the Android Studio 2.3.3, it also be rejected. The Facebook sdk works fine if I try it on the Android Studio with the key hash provided by Android Studio key store. But I just can't not verify the development on Flash Builder, any configurations should be taking care?

Regards,

David

dfeng99 commented 7 years ago

It seems like not the hash key problem. I've tried the method provided by SO Answer 141 to get the hash key at runtime. The hash key I get is the same as the one I saved in the Facebook settings page. It's weird, the app do not crash but just hanging there by even run a simple statement FacebookSdk.isInitialized(). No exception was caught.