I need to embed the facebook login in my application using the Model-View-Presenter (MVP) template, but the problem is how to avoid injecting my host with an activity link (which will negate the MVP template, since the presenter should not contain platform components).
LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList("email", "public_profile"));
As you can see above, the function logInWithReadPermissins()takes as an argument a link to activity.
source
share