system.openURL() opens Facebook app instead of browser

Hi,

I have a button in my app that suppose to open my facebook page. I’m using system.openURL to open the browser app with a certain URL but if I enter my facebook page URL (http://www.facebook.com/blablabla) it opens the FB app instead of browser.

Worse, it doesn’t open the facebook page that I want.

Is this a normal behaviour? what should I use to open my facebook page from the app?

Thanks

Anybody had any luck working around this issue?  I see the same behavior, though it happens on iOS only, not Android.

I have a similar issue. On the simulator it correctly opens facebook.com/mypage yet when I test on device it just opens up my timeline

not sure why I couldn’t get it to work, but I’ve added another line of code in to check if the Facebook app is installed and it now works???

if(not system.openURL("fb://profile/XXXXXXXXXXXXXXX")) then system.openURL("https://www.facebook.com/mypage") end

for XXXXXXXXXXXXXXX you find it on the https://developers.facebook.com/tools/explorer/?method=GET&path=pagename

adding your page name on the “pagename” part of the link

Anybody had any luck working around this issue?  I see the same behavior, though it happens on iOS only, not Android.

I have a similar issue. On the simulator it correctly opens facebook.com/mypage yet when I test on device it just opens up my timeline

not sure why I couldn’t get it to work, but I’ve added another line of code in to check if the Facebook app is installed and it now works???

if(not system.openURL("fb://profile/XXXXXXXXXXXXXXX")) then system.openURL("https://www.facebook.com/mypage") end

for XXXXXXXXXXXXXXX you find it on the https://developers.facebook.com/tools/explorer/?method=GET&path=pagename

adding your page name on the “pagename” part of the link

Yeah we had this problem as well.  The thing that worked for us was to create a redirect page.  So our Facebook button would open up the redirect first, which in turn would open up the Facebook link inside of the browser instead of the Facebook App.

Yeah we had this problem as well.  The thing that worked for us was to create a redirect page.  So our Facebook button would open up the redirect first, which in turn would open up the Facebook link inside of the browser instead of the Facebook App.

Redirect to fb page in following way, it worked:

system.openURL( “https://m.facebook.com/XXXXXXXXXXXX” )

XXXXXXXXXXXX is the name of your Facebook page.

Redirect to fb page in following way, it worked:

system.openURL( “https://m.facebook.com/XXXXXXXXXXXX” )

XXXXXXXXXXXX is the name of your Facebook page.