facebook develop
key hash:
mac的控制台下输入:keytool -exportcert -alias androiddebugkey -keystore ~/.android/ debug.keystore |openssl sha1 -binary | openssl base64
注意:
1.确保你的电脑安装了keytool 和openssl。
2.确保你的alias是正确的,因为即使错误,也不会报错。
3.debug.keystore默认生成在你的用户文件夹里以下是从facebook官网上拷贝下来的
We now need to do is a export the signature for your app so that Facebook can use to ensure users are only communicating with your app on the Android. This is done by running the keytool . The following shows how to export the key for your app using the debug defaults specified by the Android SDK and Eclipse:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore
| openssl sha1 -binary
| openssl base64
This tool generates a string that must be registered in the Mobile & Devices section of the Developer App for your app
################################################################################
android的Class Name
:
1.解压apk,拿到 AndroidManifest.xml。
2.使用 AXMLPrinter2.jar,在控制台输入:
java -jar AXMLPrinter2.jar AndroidManifest.xml > AndroidManifest.txt
得到AndroidManifest.txt。
3.在 AndroidManifest.txt中找到 manifest. application.activity.@android:name。
1.解压apk,拿到 AndroidManifest.xml。
2.使用 AXMLPrinter2.jar,在控制台输入:
java -jar AXMLPrinter2.jar AndroidManifest.xml > AndroidManifest.txt
得到AndroidManifest.txt。
3.在 AndroidManifest.txt中找到 manifest. application.activity.@android:name。
如果是".AppEntry",
Class Name=manifest.@package+manifest.
application.activity.@android:name。
如果是全名, Class Name=manifest. application.activity.@android:name。
如果是全名, Class Name=manifest. application.activity.@android:name。
################################################################################
可以从以下三个地方取到,三个值肯定是一样的。
1.ipa包里的Info.plist:plist-dict-CFBundleIdentifier的值。
2.as项目文件里的appName-app.xml:application.id的值。
3.苹果开发者账号下配置的项目证书的id。