Cordova/Phonegap-facebook-plugin Android: facebookConnectPlugin is not defined

Deadly 提交于 2019-12-04 16:56:35

SOVLED! Problem was missing KEY HASH in Facebook App (see developer.facebook.com dashboard, android)

To add a key hash, run keytool (in the SDK you're using the build/run the app)

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

password default seems to be "android"

All other bad passwords will give you the same bad key.

Only the correct password will generate a different, good key.

Put this key into FB.

In Native dev, this error is much more visible. You get a FB error or can see key hash mentioned in error console logs. It'd be nice if this plugin could do the same.

I had the same problem; in my case the issue turned out to be that I was using the PhoneGap Developer App which, apparently, doesn't support custom plugins at all.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!