1

I want to integrate Facebook and Nextpeer in my App. I have facebook login button in my activity and it works fine. I have also nextpeer multiplayer activity which also works fine if I'm not logged in to facebook but when I'm logged in to facebook and try to start multiplayer game than I get error:

java.lang.ClassCastException: com.facebook.AccessTokenSource 
cannot be cast to com.nextpeer.android.facebook.AccessTokenSource 

So it's seems that nextpeer is trying to login to facebook using class from facebook SDK.

Can anyone help me with that? Please :)

user3387617
  • 21
  • 1
  • 1

2 Answers2

0

Double check your AndroidManifest.xml file. Have you set the right login activity?

It should point to “com.nextpeer.android.facebook.LoginActivity”.

  <activity android:name="com.nextpeer.android.facebook.LoginActivity"

                  android:theme="@android:style/Theme.Translucent.NoTitleBar"

                  android:label="@string/np__application_name" />
shaimagz
  • 1,265
  • 4
  • 17
  • 39
0

So I wrote to guy from Nextpeer and he fixed it and now it works fine.

user3387617
  • 21
  • 1
  • 1