Starting yesterday, getThreadList() returns a []. I thought this was weird, because it's not throwing any errors, but it just returns an empty array regardless of input.
Hmm, they might have finally switched it to use graphql instead, like they did with getThreadInfo and getThreadHistory. @bsansouci
Where is the current GraphQL API captured and analysed from? facebook.com or messenger.com? Desktop or Mobile? Web or App? Thanks.
All of our api queries run against the web version of Facebook and messenger (depending on the query). The other graphql calls use an endpoint called https://www.facebook.com/api/graphqlbatch/, I believe.
Thanks for the reply.
And I think I've found the the getThreadList equivalent for GraphQL, just note it down here.
"batch_name": "MessengerGraphQLThreadlistFetcherRe"
"queries": {
"o0":{
"doc_id":"1349387578499440",
"query_params":{
"limit":12, // Length
"before": <millisecond_UNIX_timestamp_int>, // show threads that was active before this time
"tags":["INBOX"], // source ['INBOX', 'PENDING', 'OTHER' /* filtered pending */, 'unread', 'ARCHIVED']
"includeDeliveryReceipts":true,
"includeSeqID":false
}
}
}
@blueset Hi, friend, can you have the code of this solution to be able to integrate it into my project
I just tried to at least start coding this...
so much work to do 馃槩
https://github.com/ravkr/facebook-chat-api/commit/9f4cc4f81268398a426dc435359785746612bf4f

GraphQL version of getThreadList is available since 1.6.0 (PR #572)
@Schmavery, we can close it now
Most helpful comment
I just tried to at least start coding this...

so much work to do 馃槩
https://github.com/ravkr/facebook-chat-api/commit/9f4cc4f81268398a426dc435359785746612bf4f