get friends messages history api