(Android) How to open a Facebook page from app?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
LJE
Posts: 5
Joined: Fri Aug 19, 2016 10:36 am

(Android) How to open a Facebook page from app?

Post by LJE » Mon Aug 22, 2016 4:50 pm

How do I create a button that will send the user to a Facebook page when pressed? Should I send the user to the Facebook app or a browser (and the browser will send them to the Facebook app?)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: (Android) How to open a Facebook page from app?

Post by FourthWorld » Mon Aug 22, 2016 5:07 pm

The launch url command will open any valid web link in the user's default browser.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: (Android) How to open a Facebook page from app?

Post by MaxV » Wed Aug 31, 2016 10:43 am

for the app use

Code: Select all

launch URL "fb://facebookRequest"
Where facebookrequest can be any valid facebook request.
If the app is installed it, Android would ask if open the URL with Facebook app, because fb: is the standard custom URL of facebook.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply