Game Development Reference
In-Depth Information
Fig 8.21 Connect to Facebook button in Unity.
Fig 8.22 The Magic Token needed by
the Unity application to retrieve data
from Facebook.
Step 4. This token is unique to you. You need to enter it into
the Unity application so that Unity can communicate with your
account. To do this, modify interface.js to the code shown in
Listing 8.13 .
Step 5. Play. After the Magic Token appears in your browser, copy
and paste it into the Magic Token box, shown in Figure 8.23 , which
will appear in the Unity application after you hit the Connect
Step 6. Select Authenticate to Save. The code also saves the Magic
Token in the player preferences for later use. This saves you typing
it in every time the program runs.
Search Nedrilad ::

Custom Search