SHARE
TWEET

Untitled

a guest Feb 17th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. accessKey = "(appID)|(appSecret)"
  2.  
  3. let connection = GraphRequestConnection()
  4. connection.add(GraphRequest(graphPath: "/myPage")) { httpResponse, result in
  5.     switch result {
  6.     case .success(let response):
  7.         print("Graph Request Succeeded: (response)")
  8.     case .failed(let error):
  9.         print("Graph Request Failed: (error)")
  10.     }
  11. }
  12. connection.start()
RAW Paste Data
Top