Share the post "How To Check If Facebook App Is Installed Android"
The key here is by using the correct package name. A common error is that developers use the package com.facebook.android.
This is the package name for the Facebook SDK for Android, not the app itself.
The package name for the app is com.facebook.katana;
So you can do it like this:
|
1 2 3 4 5 |
try { context.getPackageManager(). getApplicationInfo("com.facebook.katana", 0); } catch (PackageManager.NameNotFoundException e) { System.out.println("Facebook app not installed"); } |









