You need to use intentions. Here's how to invoke the FB application (if installed):
Intent intent = new Intent(); intent.setClassName("com.facebook.katana","com.facebook.katana.ProxyAuth"); intent.putExtra("client_id", applicationId); mAuthActivityCode = activityCode; activity.startActivityForResult(intent, activityCode);
This code is taken from the Facebook API, which allows action. Rather, according to your needs. Code - Copyright 2010 Facebook, Inc., licensed under the Apache License, version 2.0.
Amandeep grewal
source share