Implement basic check using PackageManager.

Add example app.js to check for facebook installation.