Пример #1
0
    public static void ShareToFBWithImage(string imageURL, string text)
    {
#if  UNITY_WP8 && !UNITY_EDITOR
#elif UNITY_ANDROID && !UNITY_EDITOR
        System.Text.StringBuilder sb = new System.Text.StringBuilder();
        JsonWriter writer            = new JsonWriter(sb);
        writer.WriteObjectStart();
        writer.WritePropertyName("imageURL");
        writer.Write(imageURL);
        writer.WritePropertyName("text");
        writer.Write(text);
        writer.WriteObjectEnd();
        AndroidHelper.doSdk("shareToFBWithImage", sb.ToString());
#elif UNITY_IPHONE && !UNITY_EDITOR
        IOSHelper.SDK_ShareToFBWithImage(imageURL, text);
#else
#endif
    }