I am trying to get an image from a facebook page. I got the page id, and now I need to use this id to get the image from the page. I am using the following code:
let pictureRequest : FBSDKGraphRequest = FBSDKGraphRequest(graphPath: picPath, parameters: ["fields" : "data"], HTTPMethod: "GET") pictureRequest.startWithCompletionHandler({ (connection: FBSDKGraphRequestConnection!, result, error) -> Void in if (error != nil) { print("picResult: \(result)") } else { print(error!) } })
I am not getting an error message, but my result is zero. Pickup looks like this:
/110475388978628/picture
I copied the code directly from here , but it does not work. Any idea what I'm doing wrong? I have an access token, because I can get the page ID through a graph request
source share