Facebook

Before you start:

  • The Facebook SDK for Unity only supports iOS version 7.0 and above.

The code  snippet below will demonstrate Facebook posting example:

using SA.IOSNative.Social;
...
ISN_Facebook.Post("My app Screenshot", screenshot);

We can also find out posting result:

using SA.IOSNative.Social;
...

public void PostScreenshot() {
    ISN_Facebook.Post("My app Screenshot", screenshot, HandleOnFacebookPostResult);       
}

private void HandleOnFacebookPostResult(SA_Result result) {
    if(result.IsSucceeded) {
        Debug.Log("Post Success!");
    } else {
        Debug.Log("Post Failed!");
    }
}