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相关-->
相关推荐
lllsure1 小时前
【Docker】存储卷
运维·docker·容器
wheeldown1 小时前
【Linux】 存储分级的秘密
linux·运维·服务器
寻星探路1 小时前
数据库造神计划第九天---增删改查(CRUD)(5)
数据库
不做菜鸟的网工1 小时前
Headscale 的部署方法和使用教程
运维
天天进步20151 小时前
掌握React状态管理:Redux Toolkit vs Zustand vs Context API
linux·运维·react.js
Alan521591 小时前
🚀 阿里云 ECS + MySQL 环境搭建全流程(用于个人博客系统开发)
数据库·程序员
Huhbbjs2 小时前
SQL 核心概念与实践总结
开发语言·数据库·sql
wuyunhang1234562 小时前
Redis---集群模式
数据库·redis·缓存
大翻哥哥2 小时前
Python 2025:低代码开发与自动化运维的新纪元
运维·python·低代码
sensenlin912 小时前
Mybatis中SQL全大写或全小写影响执行性能吗
数据库·sql·mybatis