Facebook 修改报错 Manifest

main
zhangaotian 2025-08-11 15:23:33 +08:00
parent d26e14cf66
commit 1cda915179
1 changed files with 11 additions and 2 deletions

View File

@ -20,7 +20,7 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Facebook 登录回调,处理 fb<APP_ID>://authorize -->
<!-- Facebook 登录回调 -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
@ -55,7 +55,8 @@
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="true" />
android:exported="true"
tools:replace="android:theme" />
<activity
android:name="com.facebook.CustomTabActivity"
@ -79,5 +80,13 @@
android:name="com.facebook.FacebookContentProvider"
android:authorities="com.facebook.app.FacebookContentProvider755605353818089"
android:exported="true" />
<!-- 调试用 Activity运行后在 Logcat 输出 Facebook SDK 实际 redirect_uri -->
<activity android:name=".FBRedirectDebugActivity" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>