Structures
The following structures are available globally.
-
A list of keys to be used in options dictionary for authentication with Facebook.
See moreDeclaration
Swift
public struct CredentialsFacebookOptions
-
A structure representing the metadata provided by the Facebook API corresponding to a subject’s profile picture. This includes the URL of the image and its width and height. If you wish to retrieve this information, include
See morelet picture: FacebookPicture
in your user profile.Declaration
Swift
public struct FacebookPicture : Codable
-
Information about the subject’s age range. See: https://developers.facebook.com/docs/graph-api/reference/user/
See moreDeclaration
Swift
public struct FacebookAgeRange : Codable
-
Information on the subject’s friends. Note that only friends of this user that have also granted this permission to the same OAuth application will be detailed.
See moreDeclaration
Swift
public struct FacebookFriends : Codable
-
Information about a Facebook Page, which can represent (for example) a subject’s Hometown or selected Location. See: https://developers.facebook.com/docs/graph-api/reference/page/
See moreDeclaration
Swift
public struct FacebookPage : Codable
-
Information about items the subject has ‘liked’. See: https://developers.facebook.com/docs/graph-api/reference/user/likes/
See moreDeclaration
Swift
public struct FacebookLikes : Codable
-
Metadata about the subject’s photos, which can be used to access the photos via the User API. See: https://developers.facebook.com/docs/graph-api/reference/user/photos/
See moreDeclaration
Swift
public struct FacebookPhotos : Codable
-
Data from the subject’s timeline, including posts they have created and been tagged in. See: https://developers.facebook.com/docs/graph-api/reference/v3.0/user/feed
See moreDeclaration
Swift
public struct FacebookPosts : Codable
-
A list of places that the subject has been tagged at.
See moreDeclaration
Swift
public struct FacebookTaggedPlaces : Codable
-
Allows further retrieval of paginated data. See: https://developers.facebook.com/docs/graph-api/using-graph-api/#paging
See moreDeclaration
Swift
public struct CursorBasedPagination : Codable
-
Allows further retrieval of paginated data. See: https://developers.facebook.com/docs/graph-api/using-graph-api/#paging
See moreDeclaration
Swift
public struct OffsetBasedPagination : Codable
-
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:
See moreFacebookTokenProfile.appID = "yourAppID" router.get("/facebookProfile") { (user: FacebookTokenProfile, respondWith: (FacebookTokenProfile?, RequestError?) -> Void) in respondWith(user, nil) }
Declaration
Swift
public struct FacebookTokenProfile : TypeSafeFacebookToken