My app uses app a FB AuthButton. If there is no FB app installed on the device, the user goes to m.facebook on a browser and logs in. If a current FB app is installed, the fb custom URL (fbconnect) lets the user log in with the FB app.
Older versions of the FB app do not recognize the custom URL and kick it over to a browser. (This problem: Facebook SDK 3.0 with old Facebook app version redirects to browser and gets stuck)
How can I check what version of the FB app is installed on the device? If I can do this then for older versions of the FB app I'll send to browser or use a webdialoug.
The closest I've found would be using getPackageManager().getApplicationInfo("com.example.name", 0) but I'm unsure if I can get it to return apk version.