Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let albumRequest = FBSDKGraphRequest(graphPath: "me/albums?fields=name,cover_photo", parameters: nil)
- let albumCoverRequest = FBSDKGraphRequest(graphPath: "cover_photo_id", parameters: nil) //what should this look like? jsonpath?
- let graphConnection = FBSDKGraphRequestConnection()
- graphConnection.addRequest(albumRequest, completionHandler: { (connection:FBSDKGraphRequestConnection!, result:AnyObject!, error:NSError!) -> Void in
- if(error != nil){
- println(error)
- }else{
- }
- },batchParameters: ["name" : "albums"])
- graphConnection.addRequest(albumRequest, completionHandler: { (connection:FBSDKGraphRequestConnection!, result:AnyObject!, error:NSError!) -> Void in
- if(error != nil){
- println(error)
- }else{
- }
- },batchParameters: ["depends_on" : "albums"]) //should this be some jsonpath expression?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement