0

Is there any way to start a facebook chat using the messenger application. I know we can lead a user to the messenger application using intents and using their Messenger API. But I want to do is open a chat window directly with particular user using the facebook User Id. Is that possible?

I found this post Android Facebook sdk messaging ID mismatch I couldn't really find much else and I was hoping the new messenger API might support that kind of an interaction?

Community
  • 1
  • 1
Vinay
  • 505
  • 5
  • 8

3 Answers3

3

The answer is in the first comment of the other thread: That solution does not work with App Scoped IDs, and you don´t get the real IDs anymore. Even if it would be possible, you can only get App Scoped IDs of friends who authorized your App too. Meaning, it´s impossible.

andyrandy
  • 72,880
  • 8
  • 113
  • 130
  • thanks. I found out on the FB developers group as well. Just that it seems a pretty useful feature to have. – Vinay Jun 08 '15 at 20:37
1

to start Facebook messenger with a particular user

check this answer dear will help you how to start with particuler user

Community
  • 1
  • 1
Adiii
  • 54,482
  • 7
  • 145
  • 148
1

try this... final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://messaging/" + facebookId)); But you have to know the facebook id . Ref: How to open specific contact chat screen in various popular chat/social-networks apps?

Community
  • 1
  • 1
Thu Thu
  • 91
  • 1
  • 3