Structures

The following structures are available globally.

  • A list of keys to be used in options dictionary for authentication with Facebook.

    See more

    Declaration

    Swift

    public struct CredentialsFacebookOptions
  • A pre-constructed TypeSafeFacebookToken which contains the default fields plus examples of optional fields that can be requested from Facebook. See: https://developers.facebook.com/docs/facebook-login/permissions/v3.0#reference-default_fields

    Note that the Optional fields will only be initialized if the user’s OAuth token grants access to the data, and many extended permissions require a Facebook app review prior to that app being allowed to request them.

    Usage Example:

    FacebookTokenProfile.appID = "yourAppID"
    router.get("/facebookProfile") { (user: FacebookTokenProfile, respondWith: (FacebookTokenProfile?, RequestError?) -> Void) in
       respondWith(user, nil)
    }
    
    See more

    Declaration

    Swift

    public struct FacebookTokenProfile: TypeSafeFacebookToken