<activity android:name="com.facebook.FacebookActivity" android:exported="true" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" android:label="@string/app_name" /> 1. 2. 3. 4. 5. 6. 在布局文件中: <!--faceook登录官网的按钮--> 1. <com.facebook.login.wi...
android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/> 1. 2. 3. <activity 1. android:name="com.facebook.FacebookActivity" 1. android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation" 1. android:theme="@android:style/Theme.Translucent.N...
We are able to accept contributions to the Facebook SDK for Android. To contribute please do the following. Follow the instructions in theCONTRIBUTING.md. Submit your pull request to themainbranch. This allows us to merge your change into our internal main and then push out the change in th...
implementation'com.facebook.android:facebook-android-sdk:9.0.0'; 接下来需要在strings.xml文件里将应用编号写入 <string name="facebook_app_id">00000000</string> <string name="fb_login_protocol_scheme">fb00000000</string> 上面的应用编号,在文档里有,直接拷贝即可,你选的是什么项目,文档里提供的代码...
fun googleLogoutSuccess() fun googleLogoutFail() } /** * 检查 Google Play 服务 */ open fun onCheckGooglePlayServices(activity: Activity, code: Int) { // 验证是否已在此设备上安装并启用Google Play服务,以及此设备上安装的旧版本是否为此客户端所需的版本 ...
implementation 'com.facebook.android:facebook-login:latest.release' 其中,latest.release表示最新的版本号。 配置AndroidManifest.xml文件 在AndroidManifest.xml文件中,需要添加Facebook SDK所需的权限和Activity。具体来说,需要添加以下内容: 代码语言:txt
为您的 Facebook 应用编号以及启用 Chrome 自定义选项卡所需的 Facebook 应用编号创建字符串。另外,请将 FacebookActivity 添加到您的 Android 清单文件中。 1.打开您的 /app/res/values/strings.xml 文件。 2.添加如下所示的代码: <string name="facebook_app_id">你的项目生成的ID</string><string name=...
2 I've integrated facebook login in my android app. I've followed all the instructions in graph API, but I'm unable to log in using Facebook. Following error is coming when I try to log in. E/LoginActivity: Facebook Sign In ErrorSERVER_ERROR: [code]1675030[message]: Error performi...
But could you clarify also where this code runs? is it inFragmentor anActivity. Try to follow every step which is described here to be sure that you didn't miss something: https://developers.facebook.com/docs/facebook-login/android
We are able to accept contributions to the Facebook SDK for Android. To contribute please do the following. Follow the instructions in theCONTRIBUTING.md. Submit your pull request to themainbranch. This allows us to merge your change into our internal main and then push out the change in th...