SHARE
TWEET

Facebook Graph API Multipart Photo Upload, Json Postdata

JayJay32 Apr 25th, 2018 (edited) 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. POST https://graph.facebook.com/v2.12/<PAGE_ID>/photos HTTP/1.1
  2. Host: graph.facebook.com
  3. User-Agent: curl/7.52.1
  4. Accept: */*
  5. Content-Length: 3077
  6. Expect: 100-continue
  7. Content-Type: multipart/form-data; boundary=------------------------e94f377a15b0500f
  8.  
  9. --------------------------e94f377a15b0500f
  10. Content-Disposition: form-data; name="<WHAT_NAME_HERE?>"
  11. Content-Type: application/json
  12.  
  13. { "access_token":"<ACCESS_TOKEN>", "caption":"This is the message I want to post."}
  14. --------------------------e94f377a15b0500f
  15. Content-Disposition: form-data; name="filedata"; filename="square.png"
  16. Content-Type: image/png
  17.  
  18. <IMAGE_DATA>
  19. --------------------------e94f377a15b0500f--
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top