Reputation: 1000
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?
Upvotes: 4
Views: 705
Reputation: 4928
extending FacebookActivity
is 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 using FacebookActivity
. You will just have to handle your own Session serialization and onActivityResult callbacks.
I would suggest extending SherlockFragmentActivity
and then handling the Facebook integration manually. This SO answer might also have more relevant information: http://facebook.stackoverflow.com/a/13018745/931354
Upvotes: 2