Scrap messages from Facebook messenger or Instagram Direct

Hi!
I need to scrap messages from facebook/Instagram direct, located in the same area in facebook. attached image below.
which method can i use to enter each unread conversation and extract with a getText activity or somethin like that.
hope been clear, dont hesitate to ask if smth is not clear at all

image