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

Gets a network of Facebook friends.
Use GetNetworkAsync to asynchronously get a directed network of Facebook freinds.
Inheritance: FacebookNetworkAnalyzerBase
Datei anzeigen Open project: 2014-sed-team3/term-project

Public Properties

Property Type Description
txt String

Public Methods

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

Initializes a new instance of the class.

GetNetwork ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
GetNetworkAsync ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : void
oTimer_Elapsed ( object sender, System e ) : void
oTimer_Tick ( object sender, EventArgs e ) : void

Protected Methods

Method Description
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
CreateGraphMLXmlDocument ( AttributesDictionary attributes ) : GraphMLXmlDocument
GetFriendsNetworkInternal ( string sAccessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
GetNetworkDescription ( List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, GraphMLXmlDocument oGraphMLXmlDocument ) : String

Private Methods

Method Description
AddEdgeAttributes ( XmlNode oEdgeXmlNode, Edge oEdge ) : void
AddEdges ( ) : void
AddVertexAttributes ( XmlNode oVertexXmlNode, Vertex oVertex ) : void
AddVertices ( ) : void
CreateAuthorEdges ( ) : void
CreateCommenterEdges ( ) : void
CreateEdges ( bool bGetUsersTagged, bool bGetCommenters, bool bGetLikers, bool bGetAuthorPosts, bool bIncludeMe ) : void
CreateIncludeMeEdges ( ) : void
CreateLikerEdges ( ) : void
CreateUserTaggedEdges ( ) : void
DownloadAttributes ( AttributesDictionary attributes ) : void

Gets the selected attributes for all the friends

DownloadEgo ( ) : Facebook.JSONObject
DownloadFriendConnections ( ) : void
DownloadFriends ( ) : void
DownloadFromPostToPost ( int iFromPost, int iToPost, string sFirstPartQuery ) : List
DownloadPosts ( bool bDownloadFromPostToPost, bool bDownloadBetweenDates, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bGetUsersTagged, bool bGetCommenters, bool bGetLikers ) : void
DownloadPostsBetweenDates ( System.DateTime oStartDate, System.DateTime oEndDate, string sFirsPartQuery, bool bEgoTimeline, bool bFriendsTimeline ) : void
DownloadVertices ( bool bGetUsersTagged, bool bGetCommenters, bool bGetLikers, bool bGetPosts, bool bLimitCommentsLikes, int iNrLimit ) : void
ExecuteFQLMultiqueryWithRetry ( string>.Dictionary oQueries, string sProgress ) : Facebook.JSONObject
FQLBatchRequest ( Facebook.FacebookAPI fb, List oQueries ) : List
GetCommenters ( bool bLimitCommentsLikes, int iNrLimit ) : void
GetEgo ( ) : void
GetHashtags ( string txt, char concatenator ) : string

Returns the hashtags found in a string

GetInfo ( string sTableName, string sPostId, int iLimit, int iNrOfLikesComments, int iCallNr ) : List
GetLikers ( bool bLimitCommentsLikes, int iNrLimit ) : void
GetLoggedInUsername ( ) : string
GetPostAuthors ( ) : void
GetTooltips ( ) : void
GetURLs ( string txt, char concatenator ) : string

Returns the URLs found in a string

GetUsersTagged ( ) : void
ManageDuplicateNames ( string sName ) : string
VerticesToQuery ( bool bEgoTimeline, bool bFriendsTimeline ) : VertexCollection

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 ( AttributesDictionary attributes ) : GraphMLXmlDocument
attributes AttributesDictionary
return Smrf.XmlLib.GraphMLXmlDocument

FacebookUserNetworkAnalyzer() public method

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

GetFriendsNetworkInternal() protected method

protected GetFriendsNetworkInternal ( string sAccessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
sAccessToken string
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
bEgoTimeline bool
bFriendsTimeline bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
bGetTooltips bool
bIncludeMe bool
attributes AttributesDictionary
return System.Xml.XmlDocument

GetNetwork() public method

public GetNetwork ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : XmlDocument
s_accessToken String
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
bEgoTimeline bool
bFriendsTimeline bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
bGetTooltips bool
bIncludeMe bool
attributes AttributesDictionary
return System.Xml.XmlDocument

GetNetworkAsync() public method

public GetNetworkAsync ( String s_accessToken, List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, bool bEgoTimeline, bool bFriendsTimeline, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, bool bGetTooltips, bool bIncludeMe, AttributesDictionary attributes ) : void
s_accessToken String
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
bEgoTimeline bool
bFriendsTimeline bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
bGetTooltips bool
bIncludeMe bool
attributes AttributesDictionary
return void

GetNetworkDescription() protected method

protected GetNetworkDescription ( List oEdgeType, bool bDownloadFromPostToPost, bool bDownloadBetweenDates, int iFromPost, int iToPost, System.DateTime oStartDate, System.DateTime oEndDate, bool bLimitCommentsLikes, int iNrLimit, GraphMLXmlDocument oGraphMLXmlDocument ) : String
oEdgeType List
bDownloadFromPostToPost bool
bDownloadBetweenDates bool
iFromPost int
iToPost int
oStartDate System.DateTime
oEndDate System.DateTime
bLimitCommentsLikes bool
iNrLimit int
oGraphMLXmlDocument Smrf.XmlLib.GraphMLXmlDocument
return String

oTimer_Elapsed() public method

public oTimer_Elapsed ( object sender, System e ) : void
sender object
e System
return void

oTimer_Tick() public method

public oTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

txt public_oe property

public String txt
return String