Before you begin
- Make sure That Social API is enabled under the plugin editor settings.
- Make sure, that Texture2D you trying to share is Readable.
Code Snippets
The code snippet below will demonstrate Facebook posting example:
using SA.iOS.Social;
...
ISN_Facebook.Post("My app Screenshot", screenshot);
We can also find out posting result:
using SA.iOS.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!");
}
}