Downloading and installing Facebook’s SDK
We couldn’t have a chapter on social networking without mentioning Facebook. Facebook has its own SDK that can be used with Unity. This can allow us to use the information that Facebook already has, including the user’s name and profile image, within our game experience. Let’s look at the steps to incorporate them:
- Open up your web browser and visit https://developers.facebook.com/docs/unity/:
Figure 8.9: Facebook SDK for Unity page
- Click on the Download the SDK button and wait for it to finish downloading. Once it is downloaded, unzip it and then open up the
facebook-unity-sdk-15.1.0
folder. Then, open up theFacebookSDK
folder and you’ll see a single file,facebook-unity-sdk-15.1.0.unitypackage
.
Unlike previous chapters, the use of the Facebook SDK requires both iOS and Android build support for your Unity version installed, so make sure that both are...