Hello all i have the fallowing code Code (CSharp): yield return new WaitForEndOfFrame(); var width = Screen.width; var height = Screen.height; var tex = new Texture2D(width, height, TextureFormat.RGB24, false); // Read screen contents into the texture tex.ReadPixels(new Rect(0, 0, width, height), 0, 0); tex.Apply(); byte[] screenshot = tex.EncodeToPNG(); var wwwForm = new WWWForm(); wwwForm.AddBinaryData("image", screenshot, "InteractiveConsole.png"); FB.API("me/photos", Facebook.HttpMethod.POST, Callback, wwwForm); Debug.Log ("Uploaded"); but i keep getting the error the name 'Callback' does not exist in the current context. any thoughts?
You'll need to include the code where you define Callback. If you don't have this code, then that's your problem.