简体   繁体   中英

curl simulation for facebook publishing

To publish photos on the Facebook need to perform:

curl -F 'access_token=...' \
     -F 'source=@file.png' \
     -F 'message=Caption for the photo' \
     https://graph.facebook.com/me/photos

example from developers.facebook.com/docs/reference/api/photo

How to create the same POST request in the iPhone app?

I like the ASIHTTPRequest library a lot. Without that library, you would have to use NSURLConnection, which is a lot more low level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM