I have a Java Class in my Android project, where I wanted to separate facebook authorization from email authorization. Because of this line
LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList("email", "public_profile"));
I was obliged to extend my FBLogin class from Activity. Did I do it right or I should have done in other way?
But my main Question is - how to show a Toast message in this FBLogin class? this line shows me errors
Toast.makeText(getActivity(), "Success", Toast.LENGTH_SHORT).show();