Navigate to facebook

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
itay1023
Posts: 68
Joined: Fri Sep 28, 2012 1:44 pm

Navigate to facebook

Post by itay1023 » Fri Nov 01, 2013 2:58 pm

Hi,
I would like to create a button in LC that when i push it (mouseUp) it navigate's to my facebook page.
I wrote a code:
on mouseUp
launch url "www.facebook.com/pages/myPage"
end mouseUp
When i tested it on my iPhone,i pushed the button and it launched the facebook application, but it navigated to the "news" and not to my page.
How can i fix it?

Best regards,
Itay :D

jorgecaballero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 32
Joined: Mon Nov 26, 2012 6:07 pm

Same problem.... Navigate to facebook

Post by jorgecaballero » Sat Nov 09, 2013 6:02 am

I have the same problem...

Please help us...

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Navigate to facebook

Post by Jellicle » Sun Nov 10, 2013 10:40 am

I just tried this in the simulator:

Code: Select all

on mouseUp
  launch url "https://www.facebook.com/orkin"
end mouseUp
...and it opened Safari, not the Facebook app. And it took me to the page I wanted.

But on my iPhone, it did as you describe. This looks like a bug. [See Ender's post below - it's not a bug]

It'll probably work in a native browser control. See here for a lesson on how to make your own browser:

http://lessons.runrev.com/s/lessons/m/4 ... er-control


Gerry
Last edited by Jellicle on Tue Nov 12, 2013 11:13 am, edited 1 time in total.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Contact:

Re: Navigate to facebook

Post by endernafi » Tue Nov 12, 2013 12:34 am

I'll suggest Gerry's advice, too.
Using a native browser.

"launch url" command isn't reliable in this respect.
It can open Safari and your desired Facebook page,
but if the user has installed native Facebook app then it'll navigate to it with the user's News screen.

Plus, I don't want the user to leave my app just to look at the social media link of the customer.

So, I integrate a dedicated browser card in all my projects.
Then, open the customer's {owner of the project} Facebook, Twitter, LinkedIn, etc. pages in that browser card.
In result, the user won't leave the app and go back to previous page just hitting the back button;
and the problem you've mentioned is not issue anymore.


Best,

~ Ender Nafi
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

Post Reply