Is it possible to share images, text or whatever you want through Whatsapp in a iOS app? I'm searching on google but I only found results talking about Android implementations.
Thanks in advance!
Is it possible to share images, text or whatever you want through Whatsapp in a iOS app? I'm searching on google but I only found results talking about Android implementations.
Thanks in advance!
Yes it's possible :
No this is not possible, whatsapp does not have any public API you can use.Please note that this answer is correct for 2011 when there was no API for WhatsApp.
Now there is an api available for interacting with WhatsApp: http://www.whatsapp.com/faq/en/iphone/23559013
The Objective-C call to open one of these URLs is as follows:
Swift 3 version of Wagner Sales' answer:
Is now possible in this way:
Send Text - Obj-C
Send Text - Swift
Send Image - Obj-C
-- in .h file
-- in .m file
Send Image - Swift
I did not find a single solution for both. More information on http://www.whatsapp.com/faq/en/iphone/23559013
I made a small project to help some. https://github.com/salesawagner/SharingWhatsApp
Simple code and Sample code ;-)
Note:- You can only share text or image, both sharing together in whatsApp is not working from whatsApp side