facebook分享-错误记录

无法拉起分享 "code":30000,"msg":"fail:API_ERROR: API_ERROR"

1.确认facebook的app_id是否一致

2.确认是否在app_id应用的白名单里,注册meta开发者,然后把主页的user_id给管理员加

A ContentProvider for this app was not set up in the AndroidManifest.xml, please add com.facebook.app.FacebookContentProvider xxxxxxxxxxxx

XML 复制代码
        <!--facebook相关-->
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id" />
        <meta-data
            android:name="com.facebook.sdk.ClientToken"
            android:value="@string/facebook_client_token" />

        <activity
            android:name="com.facebook.CustomTabActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:scheme="@string/fb_login_protocol_scheme" />
            </intent-filter>
        </activity>


        <!-- 分享配置 -->
        <activity
            android:name="com.facebook.FacebookActivity"
            android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
            android:label="@string/app_name" />
        <!-- If you're sharing links, images or video via the Facebook for Android app, you also need to declare
        the FacebookContentProvider in the manifest. -->
        <provider
            android:name="com.facebook.FacebookContentProvider"
            android:authorities="com.facebook.app.FacebookContentProvider${applicationId}"
            android:exported="true" />


        <!--facebook相关-->
相关推荐
城管不管13 分钟前
Docker核心---数据卷(堵门秘籍)
运维·docker·容器
AOwhisky26 分钟前
Linux 文本处理三剑客:awk、grep、sed 完全指南
linux·运维·服务器·网络·云计算·运维开发
xuanerya1 小时前
使用 SSH 方式克隆 GitHub 仓库没有权限解决办法
运维·ssh·github
Kan先生2 小时前
对象存储解决方案:MinIO 的架构与代码实战
数据库·python
runfarther2 小时前
搭建LLaMA-Factory环境
linux·运维·服务器·python·自然语言处理·ai编程·llama-factory
超级迅猛龙2 小时前
保姆级Debezium抽取SQL Server同步kafka
数据库·hadoop·mysql·sqlserver·kafka·linq·cdc
百思可瑞教育2 小时前
Spring Cloud Gateway 负载均衡全面指南
运维·负载均衡·北京百思可瑞教育·百思可瑞教育·北京百思教育
杨过过儿2 小时前
【Task02】:四步构建简单rag(第一章3节)
android·java·数据库
神秘人X7073 小时前
Linux高效备份:rsync + inotify实时同步
linux·服务器·rsync
····懂···3 小时前
攻克PostgreSQL专家认证
数据库·postgresql