arrow_back
Back

Facebook Open Graph: comments, og_object fields, and engagement

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

Get comments

https://graph.facebook.com/v3.2/?
fields=og_object{comments}
&id=https://www.iphonehelp.expert/help/my-iphone-7-wont-ring-heres-the-real-fix/
&access_token=...

Get ID by URL

$response = $this->fb->get("/$url_encoded?fields=og_object{id}");

Open Graph fields

{
  "og_object": {
    "id": "1310966415646172",
    "description": "Won't ring? Read this step-by-step guide to diagnose and solve the problem.",
    "title": "My iPhone 7 Won’t Ring! Here’s The Real Fix.",
    "type": "article",
    "updated_time": "2018-10-04T12:11:47+0000"
  },
  "id": "https://www.iphonehelp.expert/help/my-iphone-7-wont-ring-heres-the-real-fix/"
}

comments is also available under og_object.

Engagement for an OG object:

1310966415646172?fields=engagement
{
  "engagement": {
    "count": 12,
    "social_sentence": "12 people like this."
  },
  "id": "1310966415646172"
}
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

Facebook URL node: shares, engagement, and Open Graph objects

arrow_forward