Retrieve photos in Facebook Message via Graph API - facebook

I was trying to retrieve my own Facebook Messages and its photos.
I was able to use /me/inbox to retrieve list of conversations, then with Thread /{thread-id}, i was able to see the messages in the conversation.
What is interesting though is that for ever message that is a photo, there were no information of the photo included, it simply omitted the message key & value. I tried to access each individual message with Message /{message-id} endpoint, i would however get the following error.
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
Looking to hearing from anyone with knowledge/experience to this issue. Thanks

Related

Facebook: get event information for public page

My Facebook page publishes public events and I am developing an app that uses this page. I want to get the number of interested/going people for a specific event given its Facebook id.
I, the creator of the app, am also the admin of the page. However, using my app access token that I generated with the app id and the app secret, I can't call the event API: https://graph.facebook.com/v3.0/137340177139954?access_token={access_token}
I get the following error
{
"error": {
"message": "Unsupported get request. Object with ID '137340177139954' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "FqJ5oAqdukA"
}
}
What am I doing wrong? How do I get event information about a page that I own
The endpoint that you're hitting is not correct. You're forgetting the /events portion after your page_id.
This is what it should look like:
https://graph.facebook.com/v3.0/137340177139954/events?access_token={access_token}

Get facebook album give error code 100

I use simple app but cannot understand next:
Opened 2 urls:
https://www.facebook.com/media/set/?set=a.675416519138045.1073741830.660049570674740&type=3
AND
https://www.facebook.com/joyasmariajose.valdivieso/media_set?set=a.383620231706322.80737.100001750452794&type=3
When I use Graph Exploder:
GET \675416519138045
return all information about album in this user
But When I try
GET \383620231706322
I can get only user_id and name. On the album have next error:
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"fbtrace_id": "Hb9lKBi2Wpz"
}
}
Question: What can be wrong with second url ?
Unsupported get request usually means that you can't access that resource without an Access Token, i.e. you don't have permissions to this object, as #CBroe said.

How to get message shares?

I try to get shares object from messages sent between two users.
According to Facebook documentation I should use the method /{message-id}/shares
https://developers.facebook.com/docs/graph-api/reference/v2.2/message/shares
But when I tried this with an user with read_mailbox permission I get the following error :
{
"error": {
"message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100
}
}
I use message's id retrieved with request /me/inbox
I am missing something ?
Use the following format /m_mid.$cAAGZr4WGacdkQBX_21eDtC3iV6w9/shares

facebook api get page ratings return Unsupported get request

I already followed instructions from this https://developers.facebook.com/docs/graph-api/reference/v2.0/page/ratings
some config I have already made, this has been run only in facebook graph explorer
using page_access_token from me/accounts which is a required just want to post this
the field=open_graph_story and other fields
age restrictions changed back and forth
country restrictions changed back and forth
still having the same problem.
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}
Is there something to do with the selected developer only to use this api? I have read something like that in the facebook api but failed to locate the url.
Any details about this problem, please, at least refer me some links.

Access archived private messages using Facebook Graph API

How can I access archived private messages using Facebook's Graph API?
https://graph.facebook.com/me/inbox seems to return unarchived messages only.
So the deal (apparently) is that archived messages are simply not available VIA the api. Whether this is a bug or not is yet to be determined.
You can see this behavior by querying a specific message by it's ID in the API Explorer, then archiving the message through Facebook. Returning to the Explorer and querying the same message yeilds the uber generic and much despised "Unsupported get request".
{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}