Rabib
Rabib

Reputation: 63

Facebook page private replies not working

I make FB page comment to private replies bot using PHP. But it can't send a message.

Comment Response JSON Object:

            {
                "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 Call: https://graph.facebook.com/v3.2/Comment_Id_Here/private_replies?message=hi&access_token=Access_Token_Here

Error: { "error": { "message": "(#100) Tried accessing nonexisting field (private_replies) on node type (Comment)", "type": "OAuthException", "code": 100, "fbtrace_id": "GZgfwqS8TQa" } }

How can I solve this problem?

Upvotes: 2

Views: 966

Answers (1)

Duc Bui
Duc Bui

Reputation: 51

This endpoint is deprecated on October 29, 2019. Now, you can use the new Private Replies here

Upvotes: 2

Related Questions