WebGL & Facebook SDK 6

I am trying the WebGL exporter, and I am getting the following error as soon as I add the Facebook SDK to the project:

Failed to run python
Error building Player: Exception: IL2CPP compile failed.

I have attached the complete editor log, any help will be much appreciated .

1903776–122817–log.txt (80.1 KB)

In the log there are errors concerning multiple definitions of generic collection classes. I notice that another post in the forum has a similar issue that was fixed in a future Beta.

Could be the same issue. Is the Facebook C# SDK using generic collections? FB.cs?

Does Beta 18 compile for you without the Facebook SDK?

Probably it has to do with generics, I have submitted a bug, and I have attached the FB.cs file. And yes it compiles if I remove the Facebook SDK.

1907233–122994–FB.cs (14.7 KB)

Regardless of the compilation errors (which are bugs and should be reported, please), the current Facebook SDK is implemented in platform specific ways which would not work on WebGL. However, Facebook is AFAIK working on a WebGL implementation, so stay tuned for a version which will work.

2 Likes

Crossing our fingers that this is soon - If anyone has an ETA on the Facebook SDK version that will support WebGL, we’d love to know it.

1 Like