I want to be able to request multiple photos using facebook API. For now, I can request a profile photo with the following code:
let FBSession = PFFacebookUtils.session() let accessToken = FBSession.accessTokenData.accessToken let url = NSURL(string: "https://graph.facebook.com/me/picture?type=large&return_ssl_resources=1&access_token="+accessToken) let urlRequest = NSURLRequest(URL: url!) NSURLConnection.sendAsynchronousRequest(urlRequest, queue: NSOperationQueue.mainQueue(), completionHandler: { response, data, error in let fbImageData = data let image = UIImage(data: data) self.profilePic.image = image
This works great and allows me to access my current profile. But if I want to have access, I will say the 5 most recent profile photos, how can I request this?
early.
source share