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
1
Question by Unity Ninja · Aug 11, 2014 at 11:32 AM · facebooklogin

How easy is it to integrate facebook in your game?

Some people have told me its very easy but I tried integrating it fully for 3 whole weeks, trying to solve all kinds of problems and in the end had to give up. The last problem I was totally stuck with is, when I run the game on device and press the facebook login button, the game crashes. Any idea how to debug this sort of problem. Device logs doesn't show anything at that point.

Comment
Add comment · Show 7
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 Unity Ninja · Aug 11, 2014 at 11:43 AM 0
Share

Yes I had followed the sample and tutorial fully but even that was giving me problems. For example "Util.log" given in the tutorial didn't work because the Util.cs file was missing. When I downloaded Util.cs from the sample project some other missing file was creating problems and so on..

avatar image Ekta-Mehta-D · Aug 11, 2014 at 11:46 AM 0
Share

ok. Try to use FB.log. It may work. and update manifest file also as said by Harshadk.

Check error log in eclipse.

avatar image Unity Ninja · Aug 11, 2014 at 11:47 AM 0
Share

Done that. Do I really need to use eclipse?

avatar image Ekta-Mehta-D · Aug 11, 2014 at 11:50 AM 0
Share

I am just telling u to check error log message in eclipse so that we can identify the actual error or exception. just start your eclipse and open log window and play your game in device.

avatar image darkmwar · Aug 15, 2014 at 04:32 PM 1
Share

ITS NOT EASY! :(

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by HarshadK · Aug 11, 2014 at 11:42 AM

The answer to this question on SO states that:

This is a bug, You can edit your android manifest in Plugins/Android and add android:configChanges so that FBUnityLoginActivity isn't destroyed when orientation/whatever changes:

 <activity 
     android:name="com.facebook.unity.FBUnityLoginActivity" 
     andrid:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
     android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
 </activity>

you may also want to remove "Translucent" from activity style.

Comment
Add comment · Show 8 · 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 Unity Ninja · Aug 11, 2014 at 11:45 AM 0
Share

Yes I have already tried that. Didn't work for me. I have actually searched for solutions like crazy for a week or so. No luck!

avatar image Unity Ninja · Aug 11, 2014 at 11:46 AM 0
Share

btw how to 'remove "Translucent" from activity style'?

avatar image HarshadK · Aug 11, 2014 at 12:01 PM 0
Share

Change the line

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

to use any other theme like

 android:theme="@android:style/Theme..Holo.Light">

avatar image Unity Ninja · Aug 11, 2014 at 12:06 PM 0
Share

Oh thanks, where do you get these themes?

avatar image HarshadK · Aug 11, 2014 at 12:08 PM 0
Share

These are standard Android themes. You don't need to get them from anywhere.

Show more comments

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

23 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

facebook login on android 0 Answers

Facebook Login " Invalid App Id : 0 " 0 Answers

How to get facebook login pop in my unity project? 0 Answers

unishare help!!!! 1 Answer

Facebook login crash on Android. FB.Login 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