OAuth2CodeGrantFacebook

public class OAuth2CodeGrantFacebook : OAuth2CodeGrant

Facebook only returns an “access_token=xyz&…” string, no true JSON, hence we override parseTokenExchangeResponse and deal with the situation in a subclass.

  • Facebook doesn’t return JSON but a plain URL-query-like string. This override takes care of the situation and extracts the token from the response.

    Declaration

    Swift

    override open func parseAccessTokenResponse(data: Data) throws -> OAuth2JSON