Reputation: 41
I notice Facebook Messenger Policy stated that the Page won't be able to send the user a message after 24 hours session/window ended.
I am trying to iterate over a list of Facebook User PSIDs, and send some update to them. For those users that are outside of 24 hours window, I would not want to send any message to them.
I have researched over the Facebook Messenger Graph API and found few of the API are suitable for use to calculate.
https://graph.facebook.com/v16.0/<PAGE_ID>/conversations?platform=messenger&user_id=<USER_ID>
https://graph.facebook.com/v16.0/<CONVERSATION_ID>?fields=messages
https://graph.facebook.com/v16.0/<MESSAGE_ID>?fields=from,to,message
By using this method, I am able to know when is the last message sent by the user. But there are downside to this approach because just for a single user, I have to call multiple APIs and it might reach the Facebook Messenger Rate Limit.
Does anyone here have better solution in order to check this problem?
Upvotes: 0
Views: 123