删除预定的Facebook页面帖子时出现错误:pages_manage_engagement不可用 [英] I am getting an error when deleting the scheduled Facebook page post: pages_manage_engagement are not available

查看:64
本文介绍了删除预定的Facebook页面帖子时出现错误:pages_manage_engagement不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的android应用中,我们提供了在Facebook页面上安排和发布帖子的功能.并且我们还提供了删除预定帖子的功能.

In our android app, we have provided the functionality to schedule and publish posts on Facebook pages. and also we have provided functionality to delete the scheduled post.

上述功能的使用,我们已经通过App Review获得了必需的权限( publish_pages,manage_pages ).

for the above features, we have already taken the required permissions(publish_pages, manage_pages) through App Review.

所有功能在我们的Android&iOS平台.但最近几周,我们在删除Android平台上的日程安排帖子时遇到了错误.当我们检查了Android平台上此功能的问题后,便收到了以下错误消息.

All the functionality worked perfectly on our Android & iOS platforms. but for the last few weeks, we are getting error in deleting schedule posts on the Android platform. when we have checked what's wrong with this functionality on the Android platform then we got the below error.

错误:

{Response: responseCode: 403, graphObject: null, error: {HttpStatus: 403, errorCode: 200, subErrorCode: -1, errorType: OAuthException, errorMessage: (#200) The permission(s) pages_manage_engagement are not available. It could because either they are deprecated or need to be approved by App Review.}}

基于上述错误,我们检查了Facebook平台上的文档,并说" pages_manage_engagement "权限用于创建,编辑和删除您的信息页发布的评论".我们没有提供与页面评论相关的任何功能.重要的是,以上错误来自删除预定的帖子.我们已经获得了publish_pages的许可.我已经附上了它的图像.

Based on the above error we have checked the documentation on Facebook platform, It says that "pages_manage_engagement" permission is used for "Create, edit, and delete comments posted by your Page". We didn't provide any functionality related to comments on pages. An important thing is that the above error comes in deleting the scheduled post. We have already taken permission of publish_pages. I have attached an image of it.

Facebook登录和共享依赖性

implementation 'com.facebook.android:facebook-login:5.8.0'
implementation 'com.facebook.android:facebook-share:5.8.0'

因此,我请您检查并验证上述问题.让我知道进一步的流程和解决方案.

so I am requesting you to please check and verify the above issue. let me know about further process and solution.

谢谢.

推荐答案

请放心,我正在使用删除帖子的代码.

/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/" + "post_id",
    null,
    HttpMethod.DELETE,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();

在这里,我直接传递 post_id 来删除预定的帖子.它可以在Graph API v7.0之前完美运行.

Here I am directly passing a post_id for delete scheduled post. it works perfectly before Graph API v7.0.

但是在弃用 publish_pages manage_pages 权限之后,它就无法正常工作.

But after deprecating publish_pages, manage_pages permissions, it is not working.

解决方案

我在 post_id 之前添加了 page_id

"PAGE_ID";+"_"+"POST_ID"

"PAGE_ID" + "_" + "POST_ID"

/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/" + "page_id" + "_" + "post_id",
    null,
    HttpMethod.DELETE,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();

它就像一个护身符.

这篇关于删除预定的Facebook页面帖子时出现错误:pages_manage_engagement不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆