Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by dawidk · Sep 04, 2013 at 03:47 PM · androidfacebookunity 4.2

Facebook SDK - FB.Init throws AuthTokenNullException on Android

Hiya,

I'm having problem with official Facebook SDK for Unity. When I call FB.Init on Android device an app opens up FB login window. Device logs shows:

 W/fb4a(:<default>):BlueServiceQueue( 5290): Exception during service
 W/fb4a(:<default>):BlueServiceQueue( 5290): com.facebook.http.protocol.AuthTokenNullException: auth token is null, user logged out?
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:327)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.http.protocol.SingleMethodRunnerImpl.a(SingleMethodRunnerImpl.java:153)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.http.protocol.AbstractSingleMethodRunner.a(AbstractSingleMethodRunner.java:16)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.katana.server.handler.PlatformOperationHandler.c(PlatformOperationHandler.java:366)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.katana.server.handler.PlatformOperationHandler.a(PlatformOperationHandler.java:259)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.fbservice.service.BlueServiceQueue.d(BlueServiceQueue.java:293)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.fbservice.service.BlueServiceQueue.d(BlueServiceQueue.java:53)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at com.facebook.fbservice.service.BlueServiceQueue$3.run(BlueServiceQueue.java:230)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
 W/fb4a(:<default>):BlueServiceQueue( 5290):     at java.util.concurrent.FutureTask.run(FutureTask.java:234)

I have set up app id in Unity and package name, class name (com.facebook.unity.FBUnityPlayerActivity) and my hash keys on Facebook (one I see in Unity Editor and one from ~/.android/debug.keystore. On iOS it behaves as it should - FB.Init goes through and then I can display login window using FB.Login... Any ideas what I'm doing wrong? Help much appreciated!

Best, Dawid

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bmackenzie · Sep 06, 2013 at 07:25 AM 0
Share

In the same boat, plenty(including myself) have issues where the SD$$anonymous$$ fails during Init on Android. Just to check, you have two different hash key from the debug key-store and the one that Unity is reporting in the Facebook settings? that sounds a little suspect.

If I get more info I'll be sure to post it here.

Regards, Bryan

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by abrady · Sep 25, 2013 at 06:51 AM

Hi Dawidk (and Bryan),

We had some problems with the Android SDK that have now been worked out (hopefully!). If you'd like to try the very latest candidate, please grab it here:

http://beta-fb-unity-sdks.parseapp.com/v4.2.4/FacebookSDK.unitypackage

And let me know if that works for you.

Thanks for trying the SDK!

Aaron

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sumeetkhobare · Apr 30, 2014 at 03:43 PM 0
Share

the FB package works fine in Unity Editor, but fails on Android.. I have explained my problem clearly at this thread: http://stackoverflow.com/questions/23388069/facebook-fb-init-fail-for-android-unity

Please.. do look into and help me, tell me where i am going wrong.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rewarding Facebook requests 0 Answers

Unity Facebook apprequest notifcation opens browser instead of play store 0 Answers

Using Facebook API with android, says login is cancelled by Player. 6 Answers

Facebook SDK 3.1.2 for Unity - Trouble logging in on Android Devices 1 Answer

Can't build after importing facebok SDK 7.10.0 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges