I want to open a page in fb app using a deep link (on.fb.me/xxx) but it opens in the web browser, is there a way I can do this? or Am I forced to use the usual fb url (fb://xxx).
the code I'm using right now
final Uri uri = Uri.parse("http://on.fb.me/xxx");
final Intent facebookIntent = new Intent(Intent.ACTION_VIEW, uri);
facebookIntent.setPackage("com.facebook.katana");
try {
startActivity(facebookIntent);
} catch (ActivityNotFoundException e) {
startActivity(new Intent(Intent.ACTION_VIEW, uri));
}
I have the same issue with Instagram and Twitter with links like "bit.ly/xxx"