The Facebook API is implemented using Unity Official Facebook SDK

What does it mean?

First of all, in order to use Facebook OAuth API with the Android Native plugin, you need to import FB SDK to your project. You have few options here:

  1. If you currently using Unity 4.* - import latest  Unity Official Facebook SDK v 6.2.2. This is latest SDK that has Unity 4.* support prepared to work with no conflicts with the Android Native Plugin.
  2. In case you Unity 5 user, you can get latest Facebook SDK for Unity which is requires Unity5. 

As soon as you done with importing the Facebook SDK, plugin will automatically detect in your project, and you ready to use the OAuth API described bellow.


It also mean that Unity Facebook SDK integrated with the plugin and has no conflicts, which makes you able to use it (if for some reason you do not like the way facebook stuff is implemented in this plugin). Or use function from Unity Facebook SDK. Like, for example, direct API call using FB.AP method.

And of course all other stuff offered by Unity SDK is available for you.


What the difference between Unity SDK and Android Native Plugin Facebook part?

There is couple difference:

  • Another workflow.
  • Few extra features based on Unity SDK  like for example:
    • Posting screenshot in the background
    • Posting with auto authentication check
  • Few feature not available from Unity SDK like for example:
    • Platform-Native Image Posting
    • Platform-Native Text Posting
    • Scores API
    • Likes API
  • Ability to use PlayMaker Actions instead coding.
  • And all other feature you got with the plugin instead Facebook.


The Facebook OAuth API integration is the same as in the Mobile Social Plugin described in following articles:


Full use example can be founded at the FacebookExample example scene.