- Home /
Post image to facebook wall
I'm trying to post a Texture2d within Unity to Facebook.
I have the proper access token and album id, but it doesn't want too upload.
I don't get any web or Facebook error codes.
This is what i'm working with:
 IEnumerator _Post()
 {
     WWWForm form = new WWWForm();
         
     form.AddBinaryData("source", texture.EncodeToPNG(), texture.name + ".png", "image/png");
         
     string url = string.Format("https://graph.facebook.com/{0}/photo?access_token={1}", albumId, accessToken);
         
     Debug.Log(url);
         
     WWW web = new WWW(url, form);
     yield return web;
         
     Debug.Log(web.error);    
     Debug.Log(web.text);
 }
From the Debug.Log's I get Null and True
               Comment
              
 
               
              I realized that i use photo ins$$anonymous$$d of photos. Now I get a 400 bad request error
Your answer
 
 
             Follow this Question
Related Questions
Unity Facebook 400 Bad Request 0 Answers
www form 400 bad request 1 Answer
Necessary Data Rewind Wasn't Possible WWWForm Error 0 Answers
Post Reqest with dictionary 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                