Launching a Facebook Profile with openURL("fb://profile/<XXXXX>)

Having some issues and maybe someone can shine some light. 

With the native facebook app installed the below code successfully launches the facebook app, but sits on my news feed without going to the user’s facebook page. In the simulator it works fine, but not on the device(tested with Galaxy S4).

Using the URL method it works fine, but would prefer to not have to use the browser since it usually requires a user to login and isn’t as user friendly as the native app. 

if not (system.openURL("fb://profile/\<"..row.params.facebookID.."\>") ) then&nbsp; system.openURL("http://facebook.com/"..row.params.facebookID)&nbsp; end

Does anyone have any idea as to why this isn’t working properly? Issues launching native facebook app to launch a user’s profile.

I don’t know what you’re trying to do, but this discussion re: native.showPopup() and FB/Android may be useful:

http://forums.coronalabs.com/topic/52755-can-corona-enable-limited-facebook-sharing-on-android-via-nativeshowpopup/

Facebook sharing on Android is broken using that method, but Corona has said they’re looking into it.

And FYI, in case this helps, there is an almost-entirely-undocumented way to check to see whether the Facebook app is installed on Android via display.newImage, which you may want to do before trying system.openURL:

http://forums.coronalabs.com/topic/33636-my-android-app-needs-to-check-if-another-one-of-my-apps-is-installed-on-the-device-on-ios-i-use-url-schemes/?p=174720

Does anyone have any idea as to why this isn’t working properly? Issues launching native facebook app to launch a user’s profile.

I don’t know what you’re trying to do, but this discussion re: native.showPopup() and FB/Android may be useful:

http://forums.coronalabs.com/topic/52755-can-corona-enable-limited-facebook-sharing-on-android-via-nativeshowpopup/

Facebook sharing on Android is broken using that method, but Corona has said they’re looking into it.

And FYI, in case this helps, there is an almost-entirely-undocumented way to check to see whether the Facebook app is installed on Android via display.newImage, which you may want to do before trying system.openURL:

http://forums.coronalabs.com/topic/33636-my-android-app-needs-to-check-if-another-one-of-my-apps-is-installed-on-the-device-on-ios-i-use-url-schemes/?p=174720