Posts

Post Node

Description

This endpoint retrieves details about a specific post node on Facebook based on the provided node ID.

Endpoint

GET api/v1/realtime/social/facebook/v1/posts/node?node_id={{nodeId}}

Parameters

Param
Required
Param Type
Description

nodeId

Yes

Query Param

Example Request
curl -X GET 'https://api.webit.live/api/v1/realtime/social/facebook/v1/posts/node?node_id=UzpfSTQ6MTAxMTUxODY0ODg0ODIxNDE=' \
--header 'Authorization: Basic <credential string>'
Example Response
{
    "__typename": "Story",
    "id": "UzpfSTQ6MTAxMTUxODY0ODg0ODIxNDE=",
    "post_id": "10115186488482141",
    "creation_time": 1688598059,
    "message": "Threads is here. Let's do this. 🔥",
    "message_entity_ranges": [],
    "url": "https://m.facebook.com/story.php?story_fbid=pfbid07YfSNYBmhir6ULnzqG1cXtPa1XaKmnNcTmy9n2yoqznoii8YHpfEWzY2PzNqsxj2l&id=4",
    "actors": [
        {
            "id": "4",
            "name": "Mark Zuckerberg",
            "gender": "MALE",
            "profile_picture": "https://scontent.fman7-1.fna.fbcdn.net/v/t39.30808-1/461204377_10115852257979731_20136418769041878_n.jpg?stp=c180.30.1429.1428a_cp0_dst-jpg_e15_q65_s111x111_tt6&_nc_cat=1&ccb=1-7&_nc_sid=1d2534&_nc_ohc=wcveTbsHT-4Q7kNvgEaf_cd&_nc_ad=z-m&_nc_cid=1001&_nc_zt=24&_nc_ht=scontent.fman7-1.fna&oh=00_AYDpiVWDIJconsOEbKmHvL4NkGdbSTQlugMSDG9gAilD1Q&oe=677755B0",
            "is_verified": true,
            "is_plus_actor": true,
            "url": "https://m.facebook.com/zuck",
            "__typename": "User"
        }
    ],
    "collaborators": [],
    "attachments": [
        {
            "id": "10115186488442221",
            "title": "",
            "subtitle": null,
            "url": "https://m.facebook.com/photo.php?fbid=10115186488442221&id=4&set=a.529237706231",
            "instagram_user": null,
            "preview_image": "https://scontent.fman7-1.fna.fbcdn.net/v/t39.30808-6/358100725_10115186488502101_7130814920927437353_n.jpg?stp=cp0_dst-jpg_e15_q65_s1080x2048_tt6&_nc_cat=104&ccb=1-7&_nc_sid=833d8c&_nc_ohc=8HpSI4eyoP0Q7kNvgELoQCr&_nc_ad=z-m&_nc_cid=1001&_nc_zt=23&_nc_ht=scontent.fman7-1.fna&oh=00_AYBhYfI1jbfh47StZpwGs2jgjUig0ydvJ6UinsJzp_MZWQ&oe=677771D8",
            "videoUrl": null,
            "owner": {},
            "isFactChecked": false,
            "attachment_type": "MediaAttachment"
        }
    ],
    "attached_story": null,
    "privacy_scope": "Public",
    "edit_history": 0,
    "is_anonymous": false,
    "explicit_place": null,
    "feedback": {
        "reaction_count": 206955,
        "comment_count": 17154,
        "sub_comment_count": 4268,
        "like_count": 132640,
        "share_count": 24129,
        "reactions": [
            {
                "reaction_count": 132640,
                "id": "1635855486666999"
            },
            {
                "reaction_count": 51448,
                "id": "1678524932434102"
            },
            {
                "reaction_count": 15966,
                "id": "478547315650144"
            },
            {
                "reaction_count": 4110,
                "id": "115940658764963"
            },
            {
                "reaction_count": 2347,
                "id": "613557422527858"
            },
            {
                "reaction_count": 298,
                "id": "444813342392137"
            },
            {
                "reaction_count": 146,
                "id": "908563459236466"
            }
        ]
    },
    "source_language": "English"
}

Use the following table as an helper to understand the response's reaction ids:

Type
reaction_id

Like

1635855486666999

Wow

478547315650144

Sad

908563459236466

Care

613557422527858

Haha

115940658764963

Love

1678524932434102

Angry

444813342392137


Post Reactions Counts

Description

This endpoint retrieves the count of various reactions (likes, loves, etc.) for a specific Facebook post based on its post ID

Endpoint

GET api/v1/realtime/social/facebook/v1/posts/{{postId}}/reactions-counts

Parameters

Param
Required
Param Type
Description

postId

Yes

Query Param

String | The unique identifier for the Facebook post whose reaction counts are to be retrieved.

Example Request
curl -X GET 'https://api.webit.live/api/v1/realtime/social/facebook/v1/posts/10115186488482141/reactions-counts' \
--header 'Authorization: Basic <credential string>'
Example Response
{
    "data": {
        "node": {
            "__typename": "Feedback",
            "strong_id__": "ZmVlZGJhY2s6MTAxMTUxODY0ODg0ODIxNDE=",
            "id": "ZmVlZGJhY2s6MTAxMTUxODY0ODg0ODIxNDE=",
            "legacy_api_post_id": "10115186488482141",
            "owning_profile": {
                "__typename": "User",
                "strong_id__": "4",
                "id": "4"
            },
            "cross_universe_feedback_info": {
                "surface_type": "FEED",
                "ig_reaction_count": null,
                "ig_crosspost_shortcode": null,
                "ig_crosspost_deeplink_profile_id": null
            },
            "top_reactions": {
                "edges": [
                    {
                        "reaction_count": 132640,
                        "node": {
                            "id": "1635855486666999"
                        }
                    },
                    {
                        "reaction_count": 51448,
                        "node": {
                            "id": "1678524932434102"
                        }
                    },
                    {
                        "reaction_count": 15966,
                        "node": {
                            "id": "478547315650144"
                        }
                    },
                    {
                        "reaction_count": 4110,
                        "node": {
                            "id": "115940658764963"
                        }
                    },
                    {
                        "reaction_count": 2347,
                        "node": {
                            "id": "613557422527858"
                        }
                    },
                    {
                        "reaction_count": 298,
                        "node": {
                            "id": "444813342392137"
                        }
                    },
                    {
                        "reaction_count": 146,
                        "node": {
                            "id": "908563459236466"
                        }
                    }
                ]
            }
        }
    },
    "extensions": {
        "server_metadata": {
            "request_start_time_ms": 1735498325199,
            "time_at_flush_ms": 1735498325254
        },
        "is_final": true
    }
}

Use the following table as an helper to understand the response's reaction ids:

Type
reaction_id

Like

1635855486666999

Wow

478547315650144

Sad

908563459236466

Care

613557422527858

Haha

115940658764963

Love

1678524932434102

Angry

444813342392137


Post Attachments

Description

This endpoint retrieves the post attachments.

Endpoint

GET api/v1/realtime/social/facebook/v1/posts/{{postId}}/reactions-counts

Parameters

Param
Required
Param Type
Description

node_id

Yes

Query Param

String | The unique identifier for the Facebook post whose reaction counts are to be retrieved.

post_id

Yes

Query Param

cursor

No

Query Param

The cursor to paginate

Example Request
curl -X GET 'https://api.webit.live/api/v1/realtime/social/facebook/v1/posts/attachments?node_id=UzpfSTQ6MTAxMTUxODY0ODg0ODIxNDE%3D&post_id=10115186488482141' \
--header 'Authorization: Basic <credential string>'
Example Response
{
    "results": [
        {
            "__typename": "Photo",
            "id": "10115186488442221",
            "message": "Threads is here. Let's do this. 🔥",
            "message_entity_ranges": [],
            "url": "https://www.facebook.com/photo.php?fbid=10115186488442221&set=a.529237706231&type=3",
            "privacy_scope": "Public",
            "explicit_place": null,
            "feedback": {
                "reaction_count": 206955,
                "comment_count": 17154,
                "sub_comment_count": 4268,
                "like_count": 132640,
                "share_count": 24129,
                "reactions": [
                    {
                        "reaction_count": 132640,
                        "id": "1635855486666999"
                    },
                    {
                        "reaction_count": 51448,
                        "id": "1678524932434102"
                    },
                    {
                        "reaction_count": 15966,
                        "id": "478547315650144"
                    },
                    {
                        "reaction_count": 4110,
                        "id": "115940658764963"
                    },
                    {
                        "reaction_count": 2347,
                        "id": "613557422527858"
                    },
                    {
                        "reaction_count": 298,
                        "id": "444813342392137"
                    },
                    {
                        "reaction_count": 146,
                        "id": "908563459236466"
                    }
                ]
            },
            "imageUrl": "https://scontent-mia3-1.xx.fbcdn.net/v/t39.30808-6/358100725_10115186488502101_7130814920927437353_n.jpg?stp=cp0_dst-jpg_e15_fr_q65_tt6&_nc_cat=104&ccb=1-7&_nc_sid=833d8c&_nc_ohc=8HpSI4eyoP0Q7kNvgGWB5F0&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-mia3-1.xx&oh=00_AYDW5RW-e4Ul9pOOTcU0y4QyyPRAExHXfbxmLyNSIMt-AQ&oe=677771D8"
        }
    ],
    "cursor": "eyJpZCI6ImJXVmthV0Z6WlhRNmNHTmlMakV3TVRFMU1UZzJORGc0TkRneU1UUXgiLCJjdXJzb3IiOiJBUUhSWUxsSG5FaTMwTExYRFUzQmNidlYwM3dXb3ZzR0RxZS1tOUxMT0VFM3RKWV9OOUhXemVMeVpWTTE1OW81dW9HNGhBT0FrWi1XZERfaWs2T19MaU9uX0EifQ=="
}

Post Comments

Description

This endpoint retrieves the comments on a specific Facebook post based on its post ID. It provides details of all the comments associated with the post.

Endpoint

POST api/v1/realtime/social/facebook/v1/posts/{{postId}}/false-information

Parameters

Param
Required
Param Type
Description

postId

Yes

Query Param

String | The unique identifier for the Facebook post whose reaction counts are to be retrieved.

after_comments

No

Body Param

The cursor to paginate.

top_level_comment_ordering_mode

No

Body Param

Enum: MOST_ENGAGEMENT - top (default) RECENT_ACTIVITY - newest TOPLEVEL = All

Example Request
curl -X POST 'https://api.webit.live/api/v1/realtime/social/facebook/v1/posts/10115186488482141/comments' \
--header 'Authorization: Basic <credential string>' \
--data '{
    "transform": true
}'
Example Response
{
    "id": "ZmVlZGJhY2s6MTAxMTUxODY0ODg0ODIxNDE=",
    "reactions": 208951,
    "likes": 133966,
    "author": {
        "id": "4",
        "name": "Mark Zuckerberg",
        "url": "https://www.facebook.com/4"
    },
    "comments_count": 21525,
    "comments": [
    {
            "id": "Y29tbWVudDoxMDExNTE4NjQ4ODQ4MjE0MV80NzU2MTAxNzUyMTM4MzE=",
            "feedback": {
                "reaction_count": 0,
                "comment_count": 0,
                "like_count": 0,
                "reactions": []
            },
            "author": {
                "id": "100042135840549",
                "name": "Mich Gang",
                "gender": "MALE",
                "profile_picture": "https://scontent-mia3-2.xx.fbcdn.net/v/t39.30808-1/367458504_1043602580387594_3478772481788945629_n.jpg?stp=c0.0.718.718a_cp0_dst-jpg_e15_q65_s112x112&_nc_cat=102&ccb=1-7&_nc_sid=50d2ac&_nc_ohc=dS9DGbRlZd4Q7kNvgHaPuyT&_nc_ad=z-m&_nc_cid=0&_nc_ht=scontent-mia3-2.xx&oh=00_AYCOdRUqD5nwu4uU9kxOm59UkTpTCKJ0Em-Qq9yens8nOg&oe=66D220CA",
                "url": "https://www.facebook.com/michel.assogba.92317"
            },
            "is_featured": false,
            "created_time": 1722465444,
            "body": "🤍✨",
            "depth": 0,
            "attachments": [],
            "edit_history": 0,
            "url": "https://www.facebook.com/story.php?story_fbid=pfbid07VXyRW1c92uBovHxtRqd5Z6V2YhD6TBjSaRShgyJdqbmuADcNEVxf514QN9BbT4Ul&id=4&post_id=4_pfbid07VXyRW1c92uBovHxtRqd5Z6V2YhD6TBjSaRShgyJdqbmuADcNEVxf514QN9BbT4Ul&comment_id=475610175213831"
        },
        ...
    ],
    "page_info": {
        "start_cursor": "AQHR7xV4DF_okJPaZuk4gIvvc5bwocnZy_6u45fZ8iacKiCuB03GkwRBqw3NqAEgsXssEvkVlJ8jJIsl8s0LzfOmJA",
        "end_cursor": "AQHRrmXHWg1vnBsmWNXs_OlJpvLyNSBu6mV-5oTstUV6jQc1FWfnVGLrvLh-3Sms0Jnp1TN3IwdAIIgsq9NQ6-KPQA",
        "has_previous_page": false,
        "has_next_page": true
    }
}

Post Reactors

Description

This endpoint retrieves information about users who have reacted to a specific Facebook post, identified by its post ID.

Endpoint

POST api/v1/realtime/social/facebook/v1/posts/{{postId}}/reactors

Parameters

Param
Required
Param Type
Description

postId

Yes

Query Param

String | The unique identifier for the Facebook post whose reaction counts are to be retrieved.

reactors_connection_after_cursor

No

Body Param

The cursor to paginate

reactors_connection_first

No

Body Param

Number | Amount of results, max 30.

reaction_id

No

Body Param

choose a reaction_id to filter by if needed (See below table)

Use the following table as an helper to understand the response's reaction ids:

Type
reaction_id

Like

1635855486666999

Wow

478547315650144

Sad

908563459236466

Care

613557422527858

Haha

115940658764963

Love

1678524932434102

Angry

444813342392137

Example Request
curl -X POST 'https://api.webit.live/api/v1/realtime/social/facebook/v1/posts/10115186488482141/reactors' \
--header 'Authorization: Basic <credential string>' \
--data '{
    "transform": true
}'
Example Response
{
    "id": "ZmVlZGJhY2s6MTAxMTUxODY0ODg0ODIxNDE=",
    "results": [
        {
            "actor": {
                "id": "100051657708948",
                "name": "Naty Wrld",
                "profile_picture": "https://scontent-lga3-2.xx.fbcdn.net/v/t39.30808-1/454002551_1018685983196649_70551058624658154_n.jpg?stp=c160.0.960.960a_cp0_dst-jpg_e15_q65_s112x112&_nc_cat=100&ccb=1-7&_nc_sid=50d2ac&_nc_ohc=oSwvg9qm_y4Q7kNvgExcbAf&_nc_ad=z-m&_nc_cid=0&_nc_ht=scontent-lga3-2.xx&oh=00_AYBvHGxkKLfz54tcOInqXtLlaLg5HLiuf2cr732joYIimQ&oe=66D20358",
                "url": "https://www.facebook.com/100051657708948"
            },
            "reaction": "1635855486666999"
        },
        ...
    ],
    "page_info": {
        "start_cursor": "AQHRKqdm4uKJ1LzSOvg_BUu8cHI_6tFbL3i412nwlEGYiCyVltl3d_va0v8_CvvyEJRmYtiy0iaEK-V1fXbIzSaL4w",
        "end_cursor": "AQHRaxRoXYktnJCQSCXljOxwCwwXSlcg72PNQ5Je6VvnaVg0FbRL6JZ5gofA-zDHzXvoPozA2pYLrmpSM_JjabFgjw",
        "has_previous_page": false,
        "has_next_page": true
    }
}

Post Shares

Description

his endpoint retrieves information about how many times a specific Facebook post, identified by its post ID, has been shared.

Endpoint

POST api/v1/realtime/social/facebook/v1/posts/{{postId}}/shares

Parameters

Param
Required
Param Type
Description

postId

Yes

Query Param

String | The unique identifier for the Facebook post whose reaction counts are to be retrieved.

end_cursor

No

Body Param

The cursor to paginate

Example Request
curl -X POST 'https://api.webit.live/api/v1/realtime/social/facebook/v1/posts/10115186488482141/shares' \
--header 'Authorization: Basic <credential string>' \
--data '{
    "transform": true
}'
Example Response
{
    "data": {
        "node": {
            "__typename": "Feedback",
            "id": "ZmVlZGJhY2s6MTAxMTUxODY0ODg0ODIxNDE=",
            "reshares": {
                "edges": [
                    {
                        "node": {
                            "id": "UzpfSTYxNTYzMzc0Mjg4MTEyOjEyMjEwMTU3OTgzMjQ0NTgwOToxMjIxMDE1Nzk4MzI0NDU4MDk=",
                            "post_id": "122101579832445809",
                            "cix_screen": null,
                            "future_of_feed_info": {...},
                            "attached_story": {...},
                            "bumpers": null,
                            "comet_sections": {
                                "content": {...},
                                "layout": {...},
                                "copyright_violation_header": null,
                                "header": null,
                                "context_layout": {...},
                                "aymt_footer": null,
                                "footer": null,
                                "feedback": {...},
                                "outer_footer": null,
                                "call_to_action": {...},
                                "post_inform_treatment": null
                            },
                            "encrypted_tracking": "...",
                            "should_host_actor_link_in_watch": false,
                            "debug_info": null,
                            "feedback": {
                                "id": "ZmVlZGJhY2s6MTIyMTAxNTc5ODMyNDQ1ODA5",
                                "associated_group": null
                            },
                            "whatsapp_ad_context": null,
                            "schema_context": null,
                            "__typename": "Story"
                        },
                        "cursor": "AQHRekYwV6YpFIuH3mwcBg0nv28eXeXX4Ha9bk4hzrw-plWBu2MzPUCpfFFjGwCwqKCQjc2V4rMuuntoVeLIfBTy-w"
                    }
                ],
                "page_info": {
                    "end_cursor": "AQHRp8JRD-bR3egD4CsEAJ4HjlamTweUDYZgc2QURYPN7Xx_9aR5yCEWM5mqUCqKr04X2tt0_7_o_gqVL7RRkIJQBQ",
                    "has_next_page": true
                }
            }
        }
    }
}

Post Media Fetch By Id

Description

This endpoint retrieves detailed information about a specific media item associated with a Facebook post, based on its media ID.

Endpoint

POST api/v1/realtime/social/facebook/v1/posts/media/{{mediaId}}

Parameters

Param
Required
Param Type
Description

mediaId

Yes

Query Param

String | The unique identifier for the Facebook media item to be retrieved.

Example Request
curl -X POST 'https://api.webit.live/api/v1/realtime/social/facebook/v1/posts/media/1417821212391916' \
--header 'Authorization: Basic <credential string>'
Example Response
{
    "data": {
        "nodes": [
            {
                "__typename": "Photo",
                "strong_id__": "1417821212391916",
                "id": "1417821212391916",
                "image": {...},
                "created_time": 1682937154,
                "inline_activities": {...},
                "owner": {...},
                "playable_duration_in_ms": 0,
                "structured_reporting_action": null,
                "can_viewer_report": true,
                "creation_story": {...},
                "can_viewer_make_cover_photo": false,
                "can_viewer_delete": false,
                "imageThumbnail": {...},
                "imageHigh": {...},
                "imageHighOrig": {...},
                "message": null,
                "is_playable": false,
                "imageLow": {...},
                "imageMedium": {...},
                "focus": {...},
                "should_block_screenshot": false,
                "largeThumbnail": {...},
                "album": null,
                "should_upsell_as_viewer_profile_picture": false,
                "should_upsell_as_viewer_featured_photo": false,
                "should_upsell_as_viewer_featured_photo_aggressively": false,
                "can_viewer_add_tags": false,
                "can_viewer_untag": false,
                "can_viewer_download": true,
                "can_viewer_search_photo": false,
                "can_viewer_share": true,
                "can_viewer_share_externally": true,
                "can_viewer_edit": false,
                "should_show_profile_picture_guard": false,
                "is_viewers_current_profile_picture": false,
                "can_viewer_suggest_location": false,
                "pending_place": null,
                "has_stickers": false,
                "face_boxes": {...},
                "tags": {...},
                "with_tags": {...},
                "implicit_place": null,
                "profile_picture_overlay": null,
                "attribution_app": null,
                "attribution_app_metadata": null,
                "explicit_place": null,
                "playable_url": null,
                "message_button": null,
                "privacy_scope": {...},
                "container_story": {...},
                "legacy_photo_container": null,
                "is_spherical": false,
                "photo_encodings": [],
                "immersive_photo_encodings": [],
                "android_urls": [],
                "open_graph_action": null,
                "render_product_tagging_new_format": true,
                "product_tags": [],
                "feedback": {...},
                "call_now_button": null,
                "is_profile_picture_of_owner": false,
                "automatic_accessibility_caption": "No photo description available.",
                "custom_accessibility_caption": null,
                "is_delegating_delete": false,
                "cix_screen": null,
                "boost_post_button": null,
                "is_synced_messenger_photo": false,
                "url": "https://www.facebook.com/photo.php?fbid=1417821212391916&set=gm.3538631953128797&type=3",
                "frx_entrypoint_label": "Report photo",
                "copyright_block_info": null
            }
        ]
    },
    "extensions": {
        "server_metadata": {
            "request_start_time_ms": 1724663731467,
            "time_at_flush_ms": 1724663731663
        },
        "is_final": true
    }
}

Last updated