I have a feeling this one's going to be hard.
On iOS7, the Facebook app has the ability to be launched directly from the iOS Contact application, by clicking on any contact's IM (instant messaging) info:
This only works if you enable Facebook to have access to your contacts, obviously, but I'm wondering how they do it?
I know of the Custom URL handling, which is perfect for handling specially crafted URLs, but in this case, putting my own forged url ( "myapp://gui13@lol.com" ) in an IM contact information doesn't trigger the functionnality.
There's only one way that I found that triggers the launch of my app from the Contact application, which is to save my URL into a "link"-type information about the contact.
The bad drawback is that this "link" type information is not synced with the remote address books...
So my question is: how can I tell iOS to launch my app when the user clicks an IM information in the Contact app.?
Or the bad news... Facebook is an Apple-blessed app, just like Twitter, which enables it to have this kind of advanced interaction with Apple's apps?