Page 1 of 1
Navigate to facebook
Posted: Fri Nov 01, 2013 2:58 pm
by itay1023
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:
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

Same problem.... Navigate to facebook
Posted: Sat Nov 09, 2013 6:02 am
by jorgecaballero
I have the same problem...
Please help us...
Re: Navigate to facebook
Posted: Sun Nov 10, 2013 10:40 am
by Jellicle
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
Re: Navigate to facebook
Posted: Tue Nov 12, 2013 12:34 am
by endernafi
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