Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Share From Mobile Web to Native App Without Javascript?

I am looking to let a reader of my site share the url from a mobile browser to their native facebook app without using javascript, or having them login through the cumbersome web process.

In the past, this was accomplished using the fb://publish/profile/me?text=blah url scheme for both iOS and Android. When clicked, this link would open the native app and start a new share dialog.

Sometime in late 2013/early 2014 though, this method stopped working. Is there a more current way to use a static URL to open up a native share dialog on iOS and/or an Android Intent? A canonical answer is needed here as searching SO leads to a ton of old, deprecated dead ends.

like image 650
coneybeare Avatar asked Dec 07 '14 20:12

coneybeare


2 Answers

It's crazy that facebook doesn't have the latest URI schemes documented. Whatsapp, twitter, mail, sms, tel all have them available and are working.

Whatsapp:

whatsapp://send?text=Hello%20World!

Twitter:

twitter://post?message=hello%20world!

Mail:

mailto:<address>[?<header1>=<value1>[&<header2>=<value2>]]

SMS:

sms:+15105550101?body=hello%20there

Tel:

tel:<phonenumber>

I've been researching methods of HTML5 interaction with phone features (intents), maybe there is a way to open the mobile phone share menu from a web url? This would allow the user to share an article, per say, with any native app if installed (fb, twitter, etc...)

like image 194
Jamil Avatar answered Nov 14 '22 17:11

Jamil


I don't know if you've come across this thread, but the guy seems like did some reverse engineering and has a full list of all Facebook custom URL schemes

like image 28
Islam Avatar answered Nov 14 '22 17:11

Islam