Facebook-chat-api: getThreadList error

Created on 5 Jan 2018  路  8Comments  路  Source: Schmavery/facebook-chat-api

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.

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
obraz

All 8 comments

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
obraz

572

GraphQL version of getThreadList is available since 1.6.0 (PR #572)
@Schmavery, we can close it now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MikeShi42 picture MikeShi42  路  9Comments

ezaca picture ezaca  路  3Comments

GEOFBOT picture GEOFBOT  路  4Comments

DanH42 picture DanH42  路  3Comments

Hraph picture Hraph  路  6Comments