Why am I getting this error when I try to access a specific type of object through the Facebook API?

I have a user, user_2 . On the wall there is a message made by user_1 .

enter image description here

Url

https://www.facebook.com/user_1/posts/10150166228506188

I am trying to get content using the Graph API with this request:

https://graph.facebook.com/10150166228506188?access_token=ACCESSTOKENUSER_2

I get this error:

{
   "error": {
      "type": "GraphMethodException",
      "message": "Unsupported get request."
   }
}

The access to access_token that I use is good because requests for things like statuses and images work fine:

https://graph.facebook.com/10150233707783933?access_token=ACCESSTOKENUSER_2

Result:

{
   "id": "10150233707783933",
   "from": {
      "name": "American Steel",
      "category": "Professional sports team",
      "id": "203692078932"
   },
   "tags": {
      "data": [
etc

The error occurs when I try to get elements with the following URL:

https://www.facebook.com/username/posts/item_id

My applications have the following permissions: enter image description here

Why is this error occurring?

+3
source share
2 answers

, api , URL- facebook.

, URL- facebook:

https://www.facebook.com/user_1/posts/10150166228506188

api:

https://graph.facebook.com/10150166228506188?access_token=ACCESSTOKENUSER_2

:

https://graph.facebook.com/{id of user_1}_10150166228506188?access_token=ACCESSTOKENUSER_2

, :

https://graph.facebook.com/me/posts?access_token=...

?

+4

. Facebook . , , ( - , <user_id>_<post_id>, <user_id>_<post_id>_<comment_id>). Facebook ( , , ), . , Facebook , , ", 2 , - " , , , , .

api , Facebook, API . , ( ) , graph.facebook.com/<user_id>/posts/<post_id>. graph.facebook.com/<post_id>. post_id /<user_id>/home /<user_id>/feed . post_id .

,

+2

All Articles