使用 eclipse 将 linkedin 集成到 android 应用程序中
Integrate linkedin in android app using eclipse
我有一个现有的应用程序,通过社交身份验证集成了 linkedin。由于 linkedin API 最近发生了变化,它不再有效。所以我尝试从头开始重新整合它。
我从 linkedin site 下载了 android sdk。解压缩后,它有 linkedin sdk 和样本作为 Android Studio 项目。
知道如何将它集成到 Eclipse 中吗?
任何帮助将不胜感激。
编辑:
我在 Eclipse 中使用 sdk 给出了 运行 示例。它给出了错误
either bundle id or package name / hash are invalid unknown malformed
我无法在 eclipse 示例项目中找到将我的应用程序的客户端密钥和 ID 放在哪里。
对此有什么想法吗?
首先,您必须根据 Documentation
生成签名的 APK
Try to check that the release key hash value of the keystore you used
to sign the APK is correctly listed in the "Android Package Names and
Hashes" field of your LinkedIn application's configuration as
described in the documentation:
正在生成发布密钥哈希值
To generate a release key hash value, use the following command:
keytool -exportcert -keystore YOUR_RELEASE_KEY_PATH -alias YOUR_RELEASE_KEY_ALIAS | openssl sha1 -binary | openssl base64
配置值
In the "Android Package Names and Hashes" field of your LinkedIn
application's configuration, provide one or more values in the
following comma-separated format:
Android.Package.Name,Key-Hash-Value
LinkedInAPI考虑到application.we的安全性,在集成时也必须遵循代码混淆。
开发者不需要在代码中使用客户端id和密码。 Linkedin 根据在 Linkedin Dashboard 上生成的项目应用程序中给出的项目包名称和密钥哈希进行管理。
我有一个现有的应用程序,通过社交身份验证集成了 linkedin。由于 linkedin API 最近发生了变化,它不再有效。所以我尝试从头开始重新整合它。 我从 linkedin site 下载了 android sdk。解压缩后,它有 linkedin sdk 和样本作为 Android Studio 项目。
知道如何将它集成到 Eclipse 中吗? 任何帮助将不胜感激。
编辑: 我在 Eclipse 中使用 sdk 给出了 运行 示例。它给出了错误
either bundle id or package name / hash are invalid unknown malformed
我无法在 eclipse 示例项目中找到将我的应用程序的客户端密钥和 ID 放在哪里。 对此有什么想法吗?
首先,您必须根据 Documentation
生成签名的 APKTry to check that the release key hash value of the keystore you used to sign the APK is correctly listed in the "Android Package Names and Hashes" field of your LinkedIn application's configuration as described in the documentation:
正在生成发布密钥哈希值
To generate a release key hash value, use the following command:
keytool -exportcert -keystore YOUR_RELEASE_KEY_PATH -alias YOUR_RELEASE_KEY_ALIAS | openssl sha1 -binary | openssl base64
配置值
In the "Android Package Names and Hashes" field of your LinkedIn application's configuration, provide one or more values in the following comma-separated format:
Android.Package.Name,Key-Hash-Value
LinkedInAPI考虑到application.we的安全性,在集成时也必须遵循代码混淆。
开发者不需要在代码中使用客户端id和密码。 Linkedin 根据在 Linkedin Dashboard 上生成的项目应用程序中给出的项目包名称和密钥哈希进行管理。