Facebook Graphics API extracts comments from og: type = website

I am trying to get comments from an Open Graph object such as a website .

I am testing all of this on the official API page of the API, https://developers.facebook.com/tools/explorer

First, I insert the URL from the page that stores the Facebook comments on their page. And I get something like this:

{ "og_object": { "id": "id_of_the_object", "description": "some_description", "title": "some_title", "type": "website", "updated_time": "2017-03-30T08:35:44+0000" }, "share": { "comment_count": 5, "share_count": 31 }, "id": "the_pasted_link" } 

As you can see, it states that there are 5 comments for this OGObject.

Than I use id_of_the_object to collect comments by requesting the following on the Explorer page:

id_of_the_object / comments

And I get an empty data object without comment:

 { "data": [ ] } 

But when I issue the same request for an OGObject of type article , there are comments there:

 { "data": [ { "created_time": "2017-03-30T12:21:48+0000", "from": { "name": "user", "id": "user_id" }, "message": "some_message", "id": "message_id" } ], "paging": { "cursors": { "before": "blabla", "after": "blabla" } } } 

So the main question is: can I get comments from OGObject type website and how? Because it clearly does not work like an article type.

+5
source share

Source: https://habr.com/ru/post/1266124/


All Articles