# Facebook SDK for Unity



The [Unity engine and ecosystem](http://unity3d.com) gives developers a world class technology platform from which they can build games that work seamlessly across multiple platforms quickly and effectively.

The Facebook SDK for Unity complements Unity Technologies' cross-platform support, providing a pure-Unity write-once, run-everywhere experience across the key gaming platforms of WebGL, Unity Web Player, Android and iOS. By maintaining a single codebase, you'll be able to deploy socially integrated gaming experiences to your players, regardless of platform.

The Facebook SDK for Unity provides a comprehensive collection of Facebook's social features, giving players of your Unity game the ability to share content with their friends and allowing you to create a personal, social gaming experience. In addition to providing a base set of features that are invoked consistently across platforms, the SDK also offers support for Facebook features that are unique to a particular platform (e.g. payments on the Web or App Invites on mobile). This will allow you to keep your code clean, using a simple, consistent model for everything your game can do on Facebook.

## In Unity SDK {#guides}

#### [Login](https://developers.facebook.com/documentation/unity/reference/current/FB.LogInWithReadPermissions)
People can easily sign in to your game with their Facebook Login.

#### [Share](https://developers.facebook.com/documentation/unity/reference/current/FB.ShareLink)
People can share content with their friends. They can also share [Custom Stories with Open Graph](https://developers.facebook.com/docs/games/services/sharing#opengraphstories).

#### [Game Invites](https://developers.facebook.com/docs/games/services/gamerequests)
People can send invites to friends from your game.

#### [App Events](https://developers.facebook.com/documentation/app-events/unity)
Understand people's actions in your game and measure the effectiveness of your Mobile App Ads.

#### [Graph API](https://developers.facebook.com/documentation/unity/reference/current/FB.API)
Get data in and out of Facebook's social graph. Query data, post stories, upload photos and do other tasks.

#### [Ads](https://developers.facebook.com/documentation/app-ads)
Drive installs with [Mobile App Install Ads](https://developers.facebook.com/documentation/app-ads). Increase engagement with [Mobile App Engagement Ads](https://developers.facebook.com/documentation/app-ads). Find your target audience with [Custom Audiences for Mobile Apps](https://developers.facebook.com/documentation/app-ads/targeting). Monetize in your game with [Audience Network](https://developers.facebook.com/documentation/audience-network/setting-up/platform-steup/unity/add-sdk).

#### [App Links](https://developers.facebook.com/documentation/unity/reference/current/FB.GetAppLink)
Link to a context in your game.

#### [Audience Network](https://developers.facebook.com/documentation/audience-network/setting-up/platform-steup/unity/add-sdk)
Monetize your mobile property with Facebook ads.

## Other Resources {#resources}

#### [Porting From Mobile to Canvas](https://developers.facebook.com/docs/games/gamesonfacebook/porting)
Guide for mobile developers thinking about bringing their games to Facebook Canvas.

#### [Terms of Use](https://opensource.fb.com/legal/terms/) {#terms-of-use}
Terms of use for Facebook's open source SDKs

#### [Privacy Policy](https://opensource.fb.com/legal/privacy/) {#privacy-policy}
Privacy policy for Facebook's open source SDKs

Copyright © 2014-present Meta Platforms, Inc