haxl-facebook-0.1.0.0: An example Haxl data source for accessing the Facebook Graph API

Safe HaskellNone

FB.DataSource

Synopsis

Documentation

data Credentials

Credentials that you get for your app when you register on Facebook.

Constructors

Credentials 

Fields

appName :: Text

Your application name (e.g. for Open Graph calls).

appId :: Text

Your application ID.

appSecret :: Text

Your application secret key.

data AccessToken kind where

An access token. While you can make some API calls without an access token, many require an access token and some will give you more information with an appropriate access token.

There are two kinds of access tokens:

User access token
An access token obtained after an user accepts your application. Let's you access more information about that user and act on their behalf (depending on which permissions you've asked for).
App access token
An access token that allows you to take administrative actions for your application.

These two kinds of access tokens are distinguished by the phantom type on AccessToken, which can be UserKind or AppKind.

Instances

Typeable1 AccessToken 
Eq (AccessToken kind) 
Ord (AccessToken kind) 
Show (AccessToken kind) 
ToJSON (AccessToken kind)

Since 0.14.9. Not a Facebook JSON format, but a custom fb format for convenience if you need to serialize access tokens.

ParseAccessToken kind => FromJSON (AccessToken kind)

Since 0.14.9. Parses the format that ToJSON produces. Note that you need to statically decide whether you want to parse a user access token or an app access token.