Facebook platform and mobile SDK

I’m going to enumerate the problems I’m facing:

  1. Clicking on “Facebook” on Build Settings hangs Unity for 10 seconds or more (if it’s checking SDK versions or something it should have a progress bar with some feedback)

  2. If I have the previous SDK (Downloads - Unity SDK - Documentation - Meta for Developers) I will face an error in that window saying that my SDK is incompatible with the Facebook build target.

  3. If I remove my downloaded SDK and allow Unity to use the Facebook build target SDK I can’t build for mobile because that SDK it’s only for Windows or WebGL.

How are you going to deal with this? Facebook SDK should me used for mobile platforms too.

As for 1. - which version of Unity is this?

As for 2. and 3.: This is meant to be supported, but the downloaded Facebook SDK needs to be one which is compatible with the Facebook build target – currently, that is 7.9.1 and higher. But it seems you cannot download 7.9.1 from Facebook yet. I’ll bring this to Facebook’s attention.

1 Like

I’m using 5.6b6.

But I don’t understand. if unity downloads SDK from build settings window it doesn’t get copied in the project but if you download from Facebook download page you get and asset that gets imported in your project.

Yes. But the downloaded SDK is too old to work with the Facebook build target, which is why it says that it is incompatible. Our colleagues at Facebook told me that they will try to make a compatible version available for download by the end of this week.

I don’t mean that.

I mean that you have two ways to get Facebook SDK:

  1. Download directly from Facebook download page (When it’s compatible with Facebook target). This way, you import an asset to your project.

  2. From build settings Window switching to Facebook target. This way you have SDK available but no assets in your project related to Facebook.

I like the second approach but if you are using SDK only for Android or iOS it’s weird that you need to have Facebook module installed and switch platform to it to get that SDK.