JayJay32

Facebook Graph API Multipart Photo Upload, Multiple Parts

Apr 25th, 2018
214
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×