social sharing icons launch native apps instead of browser?

254 views
Skip to first unread message

barbara schendel

unread,
Jul 27, 2015, 11:44:06 AM7/27/15
to Minneapolis St. Paul WordPress User Group
Hey all! Does anybody know of a sharing service/plugin (or I guess a way to do it manually) that creates social sharing icons which (only when viewed on a mobile device) will launch the native Facebook/Twitter app instead of trying to open them in browser window? (on desktop should still launch in browser)

Both sharethis and addthis just open facebook/twitter in browser but that seems pointless since I'm guessing most people use the native apps on mobile, and so are not logged in in the browser. The extra step will likely cause people to not bother (at least anyone like me who has a long ugly password which cannot be memorized).

What are others doing to solve this?

Thanks!
-barbara-

erik mattheis

unread,
Jul 27, 2015, 12:01:35 PM7/27/15
to mpls-stpau...@googlegroups.com
If the device understands, you can launch apps by using the app's URI scheme. For example, if the device can launch the Facebook app from the browser and you want it to load a Facebook profile with an ID of 666, you tell it what to do by requesting "fb://profile/666"

Here's is one way of making the request and falling back to loading the link in the browser if the call to the app-specific URL scheme: https://gist.github.com/kmallea/6784568

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.
To post to this group, send email to mpls-stpau...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpls-stpaul-wordpress.
For more options, visit https://groups.google.com/d/optout.



--
Erik Mattheis

barbara schendel

unread,
Jul 27, 2015, 12:10:08 PM7/27/15
to mpls-stpau...@googlegroups.com
Hi Erik thanks for that. This is close but rather than launching a known profile ID, I need the user to be able to share the page they are currently on in a new status update (like what would happen if, from safari on iphone, they click the little "share" icon and select Facebook). 
Do you think that is doable?

erik mattheis

unread,
Jul 27, 2015, 12:23:43 PM7/27/15
to mpls-stpau...@googlegroups.com
I don't believe you can open a share dialog in Facebook's native app. To open a new tweet in Twitter's app, link to twitter://post?message=http://erikmattheis.com

I'd council a client who asked to do this, making sure they knew they were asking for a mechanism to make it easy for a visitor to leave their website and start looking at their Facebook or Twitter feed.

On Mon, Jul 27, 2015 at 11:09 AM, barbara schendel <etel...@gmail.com> wrote:
Hi Erik thanks for that. This is close but rather than launching a known profile ID, I need the user to be able to share the page they are currently on in a new status update (like what would happen if, from safari on iphone, they click the little "share" icon and select Facebook). 
Do you think that is doable?

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.
To post to this group, send email to mpls-stpau...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpls-stpaul-wordpress.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages