I’m trying to implement the Facebook SDK (3.0 beta) in an Android app that relies on ActionBarSherlock but I don’t understand how since I can’t extend both SherlockFragmentActivity and FacebookActivity.
The sample app in the Facebook SDK has:
public class MainActivity extends FacebookActivity {
private static final int SPLASH = 0;
private static final int SELECTION = 1;
And the FacebookActivity looks like:
public class FacebookActivity extends FragmentActivity {
Any ideas on how to do this?
extending
FacebookActivityis not a requirement, but it does make your life easier when working with the Facebook integration. See the SessionLoginSample in our sample apps to see how to integrate Facebook without usingFacebookActivity. You will just have to handle your own Session serialization and onActivityResult callbacks.I would suggest extending
SherlockFragmentActivityand then handling the Facebook integration manually. This SO answer might also have more relevant information: http://facebook.stackoverflow.com/a/13018745/931354