C# Class Smrf.NodeXL.GraphDataProviders.Facebook.FacebookFanPageNetworkAnalyzer

Gets networks of Facebook fan page.
Use GetNetworkAsync to asynchronously get a undirected network of a Facebook fan page.
Inheritance: FacebookNetworkAnalyzerBase
Show file Open project: 2014-sed-team3/term-project

Public Properties

Property Type Description
txt String

Public Methods

Method Description
AssertValid ( ) : void
FacebookFanPageNetworkAnalyzer ( ) : System

Initializes a new instance of the class.

GetNetwork ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
GetNetworkAsync ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : void

Protected Methods

Method Description
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateGraphMLXmlDocument ( bool>.Dictionary attributes, List netTypes ) : GraphMLXmlDocument
GetFanPageNetworkInternal ( string sAccessToken, string fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
GetNetworkDescription ( Facebook.JSONObject streamPosts, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, System.DateTime fromDate, System.DateTime endDate, GraphMLXmlDocument oGraphMLXmlDocument ) : String

Private Methods

Method Description
AddAttributes ( GraphMLXmlDocument &oGraphMLXmlDocument, XmlNode &oVertexXmlNode, JSONObject>.Dictionary attributeValues ) : void
AddCommenterVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments, JSONObject>.Dictionary attributeValues, object>.Dictionary statusUpdates, object>.Dictionary wallPosts ) : void
AddEdges ( GraphMLXmlDocument &oGraphMlXmlDocument, List netTypes, Dictionary commentersComments, Dictionary likersPosts, Facebook.JSONObject streamPosts, JSONObject>.Dictionary attributeValues ) : void
AddLikerVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPost, JSONObject>.Dictionary attributeValues, object>.Dictionary statusUpdates, object>.Dictionary wallPosts ) : void
AddPostDateRangeToNetworkDescription ( Facebook.JSONObject streamPosts, NetworkDescriber oNetworkDescriber ) : void
AddPostPostCommentsEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments ) : void
AddPostPostLikesEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPosts ) : void
AddPostVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, Facebook.JSONObject streamPosts ) : void
AddStatusUpdates ( GraphMLXmlDocument &oGraphMLXmlDocument, XmlNode &oVertexXmlNode, string userID, object>.Dictionary statusUpdates ) : void
AddUserPostCommentsEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments, JSONObject>.Dictionary attributeValues ) : void
AddUserPostLikesEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPosts, JSONObject>.Dictionary attributeValues ) : void
AddUserUserCommentsEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary commentersComments, Facebook.JSONObject streamPosts, JSONObject>.Dictionary attributeValues ) : void
AddUserUserLikesEdges ( GraphMLXmlDocument &oGraphMLXmlDocument, Dictionary likersPosts, Facebook.JSONObject streamPosts, JSONObject>.Dictionary attributeValues ) : void
AddVertices ( GraphMLXmlDocument &oGraphMLXmlDocument, JSONObject>.Dictionary &attributeValues, bool>.Dictionary attributes, List netTypes, Dictionary commentersComments, Dictionary likersPosts, Facebook.JSONObject streamPosts ) : void
AddWallPosts ( GraphMLXmlDocument &oGraphMLXmlDocument, XmlNode &oVertexXmlNode, string userID, object>.Dictionary wallPosts ) : void
CallGraphAPIWithRelogin ( string sRelativePath ) : Facebook.JSONObject
ConcatenateNetworkTypes ( List netTypes ) : string
DownloadComments ( Facebook.JSONObject streamPosts, int iLimit ) : Dictionary>>
DownloadLikes ( Facebook.JSONObject streamPosts, int iLimit ) : List>.Dictionary
DownloadPosts ( string fanPageUsernameID, int iFromPost, int iToPost, System.Boolean includeOthers, System.DateTime startDate, System.DateTime endDate ) : Facebook.JSONObject
ExecuteFQLMultiqueryWithRetryRelogin ( string>.Dictionary oQueries, string sProgress, bool bForcePrevent ) : Facebook.JSONObject
ExecuteFQLWithRelogin ( string sQuery, bool bForcePrevent ) : Facebook.JSONObject
GetHashtags ( string txt, char concatenator ) : string

Returns the hashtags found in a string

GetStatusUpdates ( List userUIDs ) : Dictionary>>
GetURLs ( string txt, char concatenator ) : string

Returns the URLs found in a string

GetWallPosts ( List userUIDs ) : Dictionary>>
ManageDisplayNames ( string usersName, string usersID ) : string
ManageDisplayNames ( JSONObject>.Dictionary &attributes ) : void
ManageDuplicateNames2 ( JSONObject>.Dictionary &attributes ) : void
Relogin ( ) : void
ReloginMethod ( ) : void
getAttributes ( bool>.Dictionary attributes, List users ) : Dictionary>

Gets the selected attributes for all the friends

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

BackgroundWorker_DoWork() protected method

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
return void

CreateGraphMLXmlDocument() protected method

protected CreateGraphMLXmlDocument ( bool>.Dictionary attributes, List netTypes ) : GraphMLXmlDocument
attributes bool>.Dictionary
netTypes List
return Smrf.XmlLib.GraphMLXmlDocument

FacebookFanPageNetworkAnalyzer() public method

Initializes a new instance of the class.
public FacebookFanPageNetworkAnalyzer ( ) : System
return System

GetFanPageNetworkInternal() protected method

protected GetFanPageNetworkInternal ( string sAccessToken, string fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
sAccessToken string
fanPageUsernameID string
netTypes List
iFromPost int
iToPost int
attributes bool>.Dictionary
getStatusUpdates bool
getWallPosts bool
includeOthers bool
startDate System.DateTime
endDate System.DateTime
iLimit int
return System.Xml.XmlDocument

GetNetwork() public method

public GetNetwork ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : XmlDocument
s_accessToken String
fanPageUsernameID String
netTypes List
iFromPost int
iToPost int
attributes bool>.Dictionary
getStatusUpdates bool
getWallPosts bool
includeOthers bool
startDate System.DateTime
endDate System.DateTime
iLimit int
return System.Xml.XmlDocument

GetNetworkAsync() public method

public GetNetworkAsync ( String s_accessToken, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, bool>.Dictionary attributes, bool getStatusUpdates, bool getWallPosts, bool includeOthers, System.DateTime startDate, System.DateTime endDate, int iLimit ) : void
s_accessToken String
fanPageUsernameID String
netTypes List
iFromPost int
iToPost int
attributes bool>.Dictionary
getStatusUpdates bool
getWallPosts bool
includeOthers bool
startDate System.DateTime
endDate System.DateTime
iLimit int
return void

GetNetworkDescription() protected method

protected GetNetworkDescription ( Facebook.JSONObject streamPosts, String fanPageUsernameID, List netTypes, int iFromPost, int iToPost, System.DateTime fromDate, System.DateTime endDate, GraphMLXmlDocument oGraphMLXmlDocument ) : String
streamPosts Facebook.JSONObject
fanPageUsernameID String
netTypes List
iFromPost int
iToPost int
fromDate System.DateTime
endDate System.DateTime
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
return String

Property Details

txt public property

public String txt
return String