Facebook专页私人回复无效

时间:2018-10-31 14:38:20

标签: php facebook-graph-api messaging

我使用PHP对私人回复bot进行FB页面评论。但是它无法发送消息。

评论响应JSON对象:

            {
                "entry": [
                {
                    "changes": [
                        {
                        "field": "feed",
                        "value": {
                            "from": {
                                "id": "2650405101652313",
                                "name": "Fojle Rabbi"},
                                "item": "comment",
                                "comment_id": "192443498065754_278556189454484",
                                "post_id": "183258478984256_192443498065754",
                                "verb": "add",
                                "parent_id": "183258478984256_192443498065754",
                                "created_time": 1540980863,
                                "post": {
                                    "type": "photo",
                                    "updated_time": "2018-10-31T10:14:23+0000",
                                    "promotion_status": "ineligible",
                                    "permalink_url": "https://www.facebook.com/FojleRabbi.bd/photos/a.183258498984254/192443498065754/?type=3",
                                    "id": "183258478984256_192443498065754",
                                    "status_type": "added_photos",
                                    "is_published": true
                                    },
                                    "message": "retest"
                                }
                            }
                        ],
                        "id": "183258478984256",
                        "time": 1540980866
                    }
                ],
                "object": "page"
            }

API调用:     https://graph.facebook.com/v3.2/Comment_Id_Here/private_replies?message=hi&access_token=Access_Token_Here

错误:         {        “错误”:{         “ message”:“(#100)尝试访问节点类型(Comment)上不存在的字段(private_replies)”,        “ type”:“ OAuthException”,        “代码”:100,        “ fbtrace_id”:“ GZgfwqS8TQa”       }     }

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

此端点已于2019年10月29日弃用。现在,您可以使用新的私人回复here