SHARE
TWEET

Facebook Graph API Multipart Photo Upload, Multiple Parts

JayJay32 Apr 25th, 2018 (edited) 70 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="access_token"
  11.  
  12. <ACCESS_TOKEN>
  13. --------------------------e94f377a15b0500f
  14. Content-Disposition: form-data; name="caption"
  15.  
  16. This is the message I wanna post.
  17. --------------------------e94f377a15b0500f
  18. Content-Disposition: form-data; name="filedata"; filename="square.png"
  19. Content-Type: image/png
  20.  
  21. <IMAGE_DATA>
  22. --------------------------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