My organization recently started using folders on its Facebook page. Conversations can then be categorized as Inbox, Unread, Delay, Done, and Spam.
I regularly upload messages through the Graph API, and everything worked fine when they saved all conversations in the inbox. However, they recently classified conversations, so there are only 7 items in the Inbox, 0 items in unread and subsequent and countless items in the Finish and Spam folders.
I used the following query before:
me/conversations?fields=updated_time,messages.limit(100){message,from,created_time}&limit=100
Now it only returns items from the inbox.
Link API Link contains undefined parameters, such as a folder and tags. I tried using the folder option, for example:
me/conversations?folder=done me/conversations?folder=unread me/conversations?folder=randomstring
He kept returning the same 7 items from the inbox.
However, if I request me/conversations?folder=spam , it returns 10 different items that do not overlap with the actual Spam folder and contain items marked as βDoneβ. (These are rather suspicious conversations, so they can be marked as spam, and there can be two different definitions: spam, marked as spam or located in the spam folder, I do not know.)
The API link does not indicate how to actually use the folder and tag parameter, and does not say anything about how to request messages in other folders.
Any idea how to access conversations in other folders? It is very convenient for me to request folders one by one or to request from all folders.
rest facebook facebook-graph-api
szedjani
source share