happstack-facebook-0.9: A package for building Facebook applications using Happstack

Happstack.Facebook.Common

Contents

Synopsis

Documentation

newtype ApiKey Source

Constructors

ApiKey 

Fields

unApiKey :: String
 

newtype AppId Source

Constructors

AppId 

Fields

unAppId :: String
 

data Sex Source

Constructors

Male 
Female 

newtype Flid Source

Constructors

Flid 

Fields

unFlid :: Integer
 

newtype User Source

Constructors

User 

Fields

uid :: Integer
 

data UidRequired Source

Constructors

UidRequired 

data None Source

Constructors

None 

class Monad m => HasUser m whereSource

Methods

askUser :: m UserSource

data FacebookState d Source

the State that lives in the facebook monad

Constructors

FacebookState 

Fields

fbConfig :: FacebookConfig
 
fbData :: d
 

XMLGenT

lookupBool :: String -> [(String, String)] -> BoolSource

helper function

callMethod :: forall method m. (HasFacebookConfig m, MonadIO m, FacebookMethod m method) => method -> m (Either FacebookError (FacebookResponse method))Source

callMethodWithConfig :: forall method m. (MonadIO m, FacebookMethod m method) => FacebookConfig -> method -> m (Either FacebookError (FacebookResponse method))Source

callMethodOld :: forall method m. (HasFacebookConfig m, MonadIO m, FacebookMethod m method) => method -> m (Either String (FacebookResponse method))Source

signature :: AppSecret -> [(String, String)] -> (String, [(String, String)])Source

calculate the sig, and return the args in sorted order. The sig is *not* added to the args.

newtype FbXML Source

Constructors

FbXML 

Fields

unFbXML :: XML
 

fbd :: HasFacebookData d m => (d -> a) -> m aSource

function to read some FacebookConnectData from the Facebook environment