Facebook Online Subsystem for mobile

I’m developing a 2D game for Android and IOS and I’d like to include some functionality on it like getting the highest scores from other people on a specific level, getting the overall highest scores, getting what was the last level your facebook friends played, etc.

I was wondering how could I setup the online subsystem to use facebook for Android and IOS? do I have to change something in the config files? How can I call the facebook online subsystem functionality that comes integrated with the engine? Especially I would like a setup guide as I’m really lost at the moment and the documentation available only shows how to setup Steam.

Online subsystem support in Unreal is currently lacking for mobile.

Facebook is only supported for iOS not Android.

Google Play Game Services is only supported for Android not iOS.

There doesn’t appear to be any way to add 3rd party JAR files to Android projects using Unreal Build Tool.

I’m trying to work out a nice way to do this so that I can add authentication for an Azure or AWS backend.

The Azure SDK supports logins for Google, Facebook, etc. however it doesn’t seem possible to add these libraries to a project without a lot of time and difficulty.

You can add leaderboards to your game using Game Center on iOS and GPGS on Android.

I think that’s going to be your lot for now and I don’t see much on the roadmap for working on this sort of functionality unfortunately.

You can have the things you want, I think.

You need to edit engine files to load JARs on Android but that means having the same libraries loaded for every project, even if you don’t want that.

There’s the PublicAdditionalFrameworks collections for frameworks on iOS but I haven’t been able to get that to work as of yet. The compiler can never find the include files that come with the framework.

It’s all undocumented as far as I can tell but technically possible if you have the time to work out the problems.

Well, thanks :slight_smile: I guess I’ll stop developing for mobile with ue4 as I’ve found that it lacks a lot of what one would expect for a mobile game.

I can resolve your problem! I’ve just released plugin with Facebook implementation for iOS & Android! :smiley:

More info:

Patryk,
gameDNA studio