public static void ShareToFB(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("Text"); writer.Write(text); writer.WriteObjectEnd(); AndroidHelper.doSdk("shareToFB", sb.ToString()); #elif UNITY_IPHONE && !UNITY_EDITOR IOSHelper.SDK_ShareToFB(text); #else #endif }