Can Unity games be deployed to facebook?

Hi.
I know that unity is a multi platform game engine. I wonder if I could deploy an Unity 2D or 3D game in facebook! Is it possible?

There was an option about five years ago to do just that, but I haven’t heard anything of that for a significant amount of time.

Yes! Unity SDK - Documentation - Meta for Developers

3 Likes

Yes, the latest facebook SDK update supports WebGL.

1 Like

Yes. Just be aware that Facebook is not that developer friendly. Its fine if you have an established game to port. But I wouldn’t target it as a primary platform.

Can you elaborate on that?

2 Likes

Sure. This info is about six months old, I stopped working with Facebook after then.

  • The Facebook SDK will not work on other web platforms. Meaning there is a lot of effort required for just one platform.
  • The SDK is poorly documented. Many of the simplest task you would expect require a lot of your own code (for example getting the profile pictures of users friends).
  • Facebook will place ads next to your game. They will not pay you for the ads. But your game will glitch each time the browser switches ads.
  • If you do decide to do ads of your own. Facebook only allows a limited number of ad providers.
4 Likes