- Home /
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.
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..
ok. Try to use FB.log. It may work. and update manifest file also as said by Harshadk.
Check error log in eclipse.
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.
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.
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!
btw how to 'remove "Translucent" from activity style'?
Change the line
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
to use any other theme like
android:theme="@android:style/Theme..Holo.Light">
These are standard Android themes. You don't need to get them from anywhere.
Your answer
![](https://koobas.hobune.stream/wayback/20220613160335im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
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