Receive CHAT message

I want to receive chat messages between me and my friend (between two people). I would like to use php apy. Will he somehow find the number of CHAT messages between us?

Thank..

Edit: Thanks to luca. Found! And I would like to see the number of posts reduced to half. How many messages are sent to me and how many messages my friend sends. Thanks you

+3


source to share


2 answers


you can have a look at the FQL Thread table see https://developers.facebook.com/docs/reference/fql/thread/ Message_count field



+3


source


TRY THIS FQL:



SELECT viewer_id,recipients,message_count FROM thread WHERE folder_id = 0 ORDER BY message_count DESC

      

+3


source







All Articles