Module Facebook

Index

Variables

Interfaces

Functions

Variables

BUTTON_STYLE_NORMAL: number

BUTTON_STYLE_WIDE: number

accessToken: string

appid: string

bubbleParent: boolean

expirationDate: Date

forceDialogAuth: boolean

loggedIn: boolean

permissions: Array<String>

uid: string

Functions

addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

applyProperties(props: Dictionary)

Parameters

authorize()

createLoginButton(parameters?: Dictionary): LoginButton

Parameters

Returns

LoginButton

dialog(action: string, params: any, callback: (...args: any[]) => any)

Parameters

  • action: string
  • params: any
  • callback: (...args: any[]) => any

fireEvent(name: string, event: Dictionary)

Parameters

getAccessToken(): string

Returns

string

getAppid(): string

Returns

string

getBubbleParent(): boolean

Returns

boolean

getExpirationDate(): Date

Returns

Date

getForceDialogAuth(): boolean

Returns

boolean

getLoggedIn(): boolean

Returns

boolean

getPermissions(): Array<String>

Returns

Array<String>

getUid(): string

Returns

string

logout()

removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

request(method: string, params: any, callback: (...args: any[]) => any)

Parameters

  • method: string
  • params: any
  • callback: (...args: any[]) => any

requestWithGraphPath(path: string, params: Dictionary, httpMethod: string, callback: (...args: any[]) => any)

Parameters

  • path: string
  • params: Dictionary
  • httpMethod: string
  • callback: (...args: any[]) => any

setAccessToken(accessToken: string)

Parameters

  • accessToken: string

setAppid(appid: string)

Parameters

  • appid: string

setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

setExpirationDate(expirationDate: Date)

Parameters

  • expirationDate: Date

setForceDialogAuth(forceDialogAuth: boolean)

Parameters

  • forceDialogAuth: boolean

setLoggedIn(loggedIn: boolean)

Parameters

  • loggedIn: boolean

setPermissions(permissions: Array<String>)

Parameters

  • permissions: Array<String>

setUid(uid: string)

Parameters

  • uid: string