***Facebook deprecated xmpp api.
Is there a way to open an intent (or pass data to fb) to send chat message on android device?
Facebook & Messenger apps installed on the device.
Thanks 🙂
***Facebook deprecated xmpp api.
Is there a way to open an intent (or pass data to fb) to send chat message on android device?
Facebook & Messenger apps installed on the device.
Thanks 🙂
2
Answers
Here is my sample code
This is what worked for me and i haven not tested this for some time now.
To launch facebook app let urlString = “fb://page/your_fb_page_id”
To launch facebook messenger let urlString = “fb-messenger://user/your_fb_page_id”
FB page id is usually numeric. To get it, goto Find My FB ID input your profile url, something like http://www.facebook.com/edgedevstudio then click “Find Numberic ID”.
Voila, you now have your fb numeric id. replace “your_fb_page_id” with the generated Numeric ID