Packagecom.facebook.graph.utils
Classpublic class FacebookDataUtils

Utility class used to parse Facebook data into corresponding ActionScript types.



Public Methods
 MethodDefined by
  
dateToUnixTimeStamp(date:Date):uint
[static] Utility method to convert a Date object to seconds since Jan 1, 1970 for use on Facebook.
FacebookDataUtils
  
flattenArray(source:Array):Array
[static] Converts a multidimensional array into a one dimensional array.
FacebookDataUtils
  
getURLVariables(url:String):URLVariables
[static] Obtains the query string from the current HTML location and returns its values in a URLVariables instance.
FacebookDataUtils
  
stringToDate(value:String):Date
[static] Attempts to convert the various Facebook date formats to a Date object.
FacebookDataUtils
Method detail
dateToUnixTimeStamp()method
public static function dateToUnixTimeStamp(date:Date):uint

Utility method to convert a Date object to seconds since Jan 1, 1970 for use on Facebook.

Parameters
date:Date

Returns
uint
flattenArray()method 
public static function flattenArray(source:Array):Array

Converts a multidimensional array into a one dimensional array. Used to ensure that ExtendedPermissions passed to Facebook are correct.

Parameters
source:Array — Array to flatten.

Returns
Array
getURLVariables()method 
public static function getURLVariables(url:String):URLVariables

Obtains the query string from the current HTML location and returns its values in a URLVariables instance.

Parameters
url:String

Returns
URLVariables
stringToDate()method 
public static function stringToDate(value:String):Date

Attempts to convert the various Facebook date formats to a Date object. Supported formats are: 1270706413 (unix timestamp), in Seconds 2010-03-20T22:46:41+0000 (ISO 8601) 11/30/1973

Parameters
value:String

Returns
Date