Facebook Graph Request using Swift3 -
<p>I am rewriting my graph requests with the latest Swift3. I am following the guide found here - <a href="https://developers.facebook.com/docs/swift/graph">https://developers.facebook.com/docs/swift/graph</a>. </p>

<pre><code>fileprivate struct UserProfileRequest: GraphRequestProtocol {
    struct Response: GraphResponseProtocol {
        init(rawResponse: Any?) {
            // Decode JSON into other properties

        }
    }

    let graphPath: String = "me"
    let parameters: [String: Any]? = ["fields": "email"]
    let accessToken: AccessToken? = AccessToken.current
    let httpMethod: GraphRequestHTTPMethod = .GET
    let apiVersion: GraphAPIVersion = .defaultVersion
}


fileprivate func returnUserData() {


    let connection = GraphRequestConnection()
    connection.add(UserProfileRequest()) {
        (response: HTTPURLResponse?, result: GraphRequestResult&lt;UserProfileRequest.Response&gt;) in
        // Process
    }
    connection.start()
</code></pre>

<p>However, I am getting this error in the connection.add method:</p>

<pre><code>Type ViewController.UserProfileRequest.Response does not conform to protocol GraphRequestProtocol.
</code></pre>

<p>I can't seem to figure this out what to change here. It seems like the developer guide is not up to date on Swift3, but I am not sure that is the issue. </p>

<p>Is anyone able to see what is wrong here?</p>

<p>Thanks.</p>