Facebook now allows us to upload arbitrary file types to Facebook groups, which is great. I am writing a one-time iOS application that accesses such a private group the user belongs to and upload these files.
I was able to get the URL of these files using the Graph API, which look like this:
http://www.facebook.com/download/444555666777888/foo.bar
(If I type this URL in the browser, the browser will download it until I log in to Facebook as me from this browser, but it doesn’t work otherwise - Facebook has a good security feature).
I cannot pass this URL to the graphical API because it is not part of the graph (which always starts with https://graph.facebook.com/ ), but I cannot load it using the usual NSURLConnection due to the lack of a token access.
Is there any way to download these files? Or, is there any specific HTTP header that I need to set when downloading such a file using NSURLConnection?
source
share