I am working on a game in Unity3D (version 4.3.4) which I want to build to mobile platfroms Android and iOS. I am trying to make the login via Facebook. I have downloaded and imported Facebook SDK for Unity (5.0.4) into my Unity project. I have also made all the prerequsities for autheticating a unity3d game via facebook sdk (register app on FB dev website, added the app id to unity project and wrote the code for FB.Login, which is in the documentation of the Facebook SDK for Unity).
When I ran the app in Unity3D editor, everything is working (DLL is loaded, facebook window popups...), but when I build the Unity app to any kind of platform (android, iOS, desktop, web...) and I open the game, then the Facebook SDK is not loaded anymore, authentification is not working. I have found the next error: "Facebook Dll: Not Loaded". Maybe this can cause the problem (and maybe some other things), I dont know.
I have tried everything. I found on the web that there can be a version problem with Unity3D and with the SDK, so I tried to build the project with older version of Unity3D (4.2.2) and with older version of Facebook SDK for Unity (4.3.3) but nothing helped.
Please help me If you can.
Did you also fill out the required fields for Android and iOS in the developers.facebook.com/apps. You need to add a platform for them and fill in the Bundle Identifier (aka Package Name) and the Class name.
Also the SDK doesn't support Desktop and only supports web if your app is on Facebook Canvas.
Related
"Gameroom(windows)"
I'm trying to integrate our game with Facebook Gameroom. The first step is Login integration.
Seems, the official SDK does not support "Gameroom(windows)" Login.
Where can I find the unity SDK that supported "Gameroom(windows)" Login?
Has anyone integrated with Gameroom before?
Thanks.
I had the same question up until yesterday. I would direct you to this link: https://developers.facebook.com/docs/games/gameroom
You want to use at least Unity 5.6.2 and use the Facebook Gameroom (Windows Native) build included in Unity. Use the 7.10 SDK (choose it from the dropdown it'll say 'Facebook SDK 7.10.1') on the Build Settings screen.
The link that I gave is needed as once you have the build set up there's a lot of things that you need to do to make it work, and the link will help you through that. (On the page in the documentation, there's a link that will take you to the build and testing page - it's the second set of instructions).
I'm currently in the process of porting over a Mobile game to FB Gameroom, so I am going through it myself. Oh! and you'll want to have the 7.10.0 Facebook SDK (available from Facebook) as a .unitypackage file.
The reason for the unity package version is that you will seriously want the examples directory and scripts so that you can implement facebook's api. Do NOT install the entire package as that will blow everything up, just need the scripts and the scenes.
That should get you started. Also, a tech-tip... if you are using UNITY IAP, it will log into facebook on its own (to set up the codeless IAP stuff). I found that out AFTER I modified the examples to handle the login and initialization of the Facebook API.
Good Luck!!!
I'm trying to integrate Trial Period in my game(https://developers.facebook.com/docs/games/gameroom/premium), but the FB.Arcade API is only available in SDK version 7.9.4. The only way to get this version is to download Unity with integrated Facebook, but my current version of unity (5.5.0f3) is bugged and it makes my game crash.
Upgrading to latest versions(5.6) only making things worse.
So can someone tell me how to extract Facebook SDK v7.9.4 Gameroom from Unity, or how to get 5.5.0p3 version with FB Gameroom Build target.
I have been trying to figure out the best way to implement dynamic photos and voice notes into my Unity3d app, and am looking for guidance about the correct backend/database to use. There would be two apps, one that a user would login to and upload content: I am working with someone that can build an Android app that allows for a user to login with Google, Facebook, etc and upload content (images, messages, etc) to their profile using Firebase. The other half would be the Windows Oculus Rift app.
I am building a Unity VR experience for Oculus Rift that needs to use this user content dynamically during runtime, but I am not sure the best way to connect Unity with Firebase. I am aware of the recent Firebase SDK for Unity, but the examples show use cases for Android and IOS builds from Unity, whereas I would need to build to Windows for use with the Oculus Rift. Will the Unity Firebase SDK work for Windows and if not, are there any suggestions about the best way to accomplish my goal?
Thank you,
Jacob
The current version of the Firebase Unity SDK only works on Android and iOS. There is nothing on the road map to implement desktop apps in Unity at present.
Note that you can still interact with the Firebase Database using the REST API.
I've tried building apps with Xcode and it has been a struggle, i then discovered unity and an entire world opened up to me. and then i released 3 games this year on the iOS apple store made in unity.
now I'm trying to build a game and this games main feature is to upload and view videos. let me call it what it is making an app with unity. why? because i know how to use unity, this is my tool.
so i headed to Facebook and download the latest SDK for unity and boy did it take me time to figure how it works. after weeks of struggle i found out that the Facebook SDK can not upload video, well at least not yet (i hope i can ask them if they could make it that the Facebook unity SDK can do everything that all the other sdk's can do, like their iOS sdk and android sdk).
the way i found out was when i submitted a bug report and asked a Facebook team member and they told me that it is not supported. i then went to check the references of the Facebook iOS sdk and compared it to the reference of the Facebook unity SDK and to my wonder the calls are not there.
so my question is how can i use Facebook sdk in unity the way that i want it to?
is there a method of using the Facebook iOS SDK in unity and not the Facebook unity SDK?
At the end of the day i would really like to push the app out on android as well hence why i added the android tag. so I'm sure if i can achieve it with either platform i can just do it for the other one as well.
please if anyone can share assistance it would be appreciated, I'm extremely serious to get this project completed i can't wait to share my idea with the world.
seems like I've confused myself. apparently one can do exactly what i want to do. The Facebook team member responded to my question I've included his exact reply for your convenience.
I developed a game for Android with Unity3d. I am using the latest Facebook Unity SDK (Version 5.1).
The game is NOT published on the Google Play Store, yet.
I want to release it soon and I want Android to be a listed platform in the AppCenter.
For some reason I can not switch it on. It says: "This platform cannot be listed because it is either configured incorrectly or not supported in App Center".
I also created it as a canvas app. I can switch that on!
Is this because:
a) The Facebook Unity SDK is not support by the AppCenter (https://developers.facebook.com/docs/games/appcenter/guidelines states that an Android App should use the Facebook Login SDK for Android, see "Eligibility Requirements")
b) The App is not published on Google Play.
c) A wrong configuration. What could this be? I filled in every possible box and uploaded the needed screenshots.
d) something else?!?
Thanks in advance!
I got problem solved with enabling single sign on in settings->basic->android.