C# Class FacebookSharp.Extensions.FacebookExtensions

Mostrar archivo Open project: prabirshrestha/FacebookSharp

Public Methods

Method Description
CreateEvent ( this facebook, Event @event, string>.IDictionary parameters ) : string

Create a page event using the old rest api.

Create a page event using the old rest api.

http://developers.facebook.com/docs/reference/rest/events.createhttp://developers.facebook.com/docs/reference/rest/events.create

CreateEventForPage ( this facebook, string pageId, Event @event, string>.IDictionary parameters ) : string

Create event for page.

The access token must be of user not of page.

GetComments ( this facebook, string objectId, string>.IDictionary parameters ) : CommentCollection

Gets list of comments for the specified facebook id (album,link,note,photo,post,status message and video).

type of id | returns ----------------|-------------------------------------- Album | The comments made on this album. Link | All of the comments on this link. Note | All of the comments on this note Photo | All of the comments on this photo. Post | All of the comments on this post. Status Message | All of the comments on this message. Video | All of the comments on this video.

GetComments ( this facebook, string objectId, int limit, int offset, string until, string>.IDictionary parameters ) : CommentCollection

Gets list of comments for the specified facebook id (album,link,note,photo,post,status message and video).

type of id | returns ----------------|-------------------------------------- Album | The comments made on this album. Link | All of the comments on this link. Note | All of the comments on this note Photo | All of the comments on this photo. Post | All of the comments on this post. Status Message | All of the comments on this message. Video | All of the comments on this video.

GetEvent ( this facebook, string eventId ) : Event

Gets the specified event.

GetEvent ( this facebook, string eventId, string>.IDictionary parameters ) : Event

Gets the specified event.

GetEventAsJson ( this facebook, string eventId, string>.IDictionary parameters ) : string

Gets the specified event as plain json string.

GetFeeds ( this facebook, string id, string>.IDictionary parameters ) : PostCollection

Get the feeds for the specified facebook id (application ,event, group, page or user).

type of id | returns ------------|------------------- Application| The application's wall. Event | The event's wall. Group | The group's wall. Page | The page's wall. User | The user's wall. Requires the read_stream permission to see non-public posts.

GetFeeds ( this facebook, string id, int limit, int offset, string until, string>.IDictionary parameters ) : PostCollection

Get the feeds for the specified facebook id (application ,event, group, page or user).

type of id | returns ------------|------------------- Application| The application's wall. Event | The event's wall. Group | The group's wall. Page | The page's wall. User | The user's wall. Requires the read_stream permission to see non-public posts.

GetFeedsAsJson ( this facebook, string id, string>.IDictionary parameters ) : string

Get the feeds for the specified facebook id (application ,event, group, page or user).

type of id | returns ------------|------------------------ Application| The application's wall. Event | The event's wall. Group | The group's wall. Page | The page's wall. User | The user's wall. Requires the read_stream permission to see non-public posts.

GetMyPages ( this facebook ) : AccountCollection
GetMyPages ( this facebook, string>.IDictionary parameters ) : AccountCollection
GetMyPagesAsJsonString ( this facebook ) : string
GetMyPagesAsJsonString ( this facebook, string>.IDictionary parameters ) : string

Get list of pages for the current Facebook User

GetPage ( this facebook, string pageId ) : FacebookSharp.Schemas.Graph.Page

Gets the page with specified id.

GetPage ( this facebook, string pageId, string>.IDictionary parameters ) : FacebookSharp.Schemas.Graph.Page

Gets the page with specified id.

GetPageMembers ( this facebook, string pageId ) : BasicUserInfoCollection

Gets the the list of all facebook user who are members of the specified page.

GetPageMembers ( this facebook, string pageId, string>.IDictionary parameters ) : BasicUserInfoCollection

Gets the the list of all facebook user who are members of the specified page.

GetPageMembers ( this facebook, string pageId, int limit, int offset, string until, string>.IDictionary parameters ) : BasicUserInfoCollection
GetPost ( this facebook, string postId ) : Post

Gets the post with the specified id.

GetPost ( this facebook, string postId, string>.IDictionary parameters ) : Post

Gets the specified post by id.

GetPostAsJson ( this facebook, string id, string>.IDictionary parameters ) : string

Gets the specified post by id.

GetPosts ( this facebook, string id, string>.IDictionary parameters ) : PostCollection

Get the posts for the specified facebook id (application, page or user).

type of id | returns ------------|------------------------ Application| The applications's own posts. Page | The page's own posts. User | The user's own posts. Requires the read_stream permission to see non-public posts.

GetPosts ( this facebook, string id, int limit, int offset, string until, string>.IDictionary parameters ) : PostCollection

Get the posts for the specified facebook id (application, page or user).

type of id | returns ------------|------------------------ Application| The applications's own posts. Page | The page's own posts. User | The user's own posts. Requires the read_stream permission to see non-public posts.

GetPostsAsJson ( this facebook, string id, string>.IDictionary parameters ) : string

Get the posts for the specified facebook id (application, page or user).

type of id | returns ------------|------------------------ Application| The applications's own posts. Page | The page's own posts. User | The user's own posts. Requires the read_stream permission to see non-public posts.

PostComment ( this facebook, string objectId, string>.IDictionary parameters ) : string

Writes the given comment on the given post.

PostComment ( this facebook, string objectId, string message ) : string

Writes the given comment on the given post.

UpdateEvent ( this facebook, Event @event, string>.IDictionary parameters ) : bool

Private Methods

Method Description
AmIAdminOfPage ( this facebook, string pageId ) : bool
GetEvents ( this facebook, string userId, string eventIds, int startTime, int endTime, RsvpStatus rsvpStatus, string>.IDictionary parameters ) : List
IsAdminOfPage ( this facebook, string userId, string pageId ) : bool
IsAdminOfPage ( this facebook, string userId, string pageId, bool ignoreAccessTokenException ) : bool
UserLikes ( this facebook, string userId, string objectId ) : bool
UserLikes ( this facebook, string userId, string objectIds ) : string[]
UsersLike ( this facebook, string userIds, string objectId ) : string[]

Method Details

CreateEvent() public static method

Create a page event using the old rest api. Create a page event using the old rest api.
http://developers.facebook.com/docs/reference/rest/events.create http://developers.facebook.com/docs/reference/rest/events.create
public static CreateEvent ( this facebook, Event @event, string>.IDictionary parameters ) : string
facebook this ///// The facebook. /////
@event Event
parameters string>.IDictionary ///// The parameters. /////
return string

CreateEventForPage() public static method

Create event for page.
The access token must be of user not of page.
public static CreateEventForPage ( this facebook, string pageId, Event @event, string>.IDictionary parameters ) : string
facebook this /// The facebook. ///
pageId string /// The page id. ///
@event Event
parameters string>.IDictionary /// The parameters. ///
return string

GetComments() public static method

Gets list of comments for the specified facebook id (album,link,note,photo,post,status message and video).
type of id | returns ----------------|-------------------------------------- Album | The comments made on this album. Link | All of the comments on this link. Note | All of the comments on this note Photo | All of the comments on this photo. Post | All of the comments on this post. Status Message | All of the comments on this message. Video | All of the comments on this video.
public static GetComments ( this facebook, string objectId, string>.IDictionary parameters ) : CommentCollection
facebook this The facebook.
objectId string Id of the Facebook Graph Object.
parameters string>.IDictionary The parameters.
return CommentCollection

GetComments() public static method

Gets list of comments for the specified facebook id (album,link,note,photo,post,status message and video).
type of id | returns ----------------|-------------------------------------- Album | The comments made on this album. Link | All of the comments on this link. Note | All of the comments on this note Photo | All of the comments on this photo. Post | All of the comments on this post. Status Message | All of the comments on this message. Video | All of the comments on this video.
public static GetComments ( this facebook, string objectId, int limit, int offset, string until, string>.IDictionary parameters ) : CommentCollection
facebook this The facebook.
objectId string Id of the Facebook Graph Object.
limit int The limit.
offset int The offset.
until string The until.
parameters string>.IDictionary The parameters.
return CommentCollection

GetEvent() public static method

Gets the specified event.
public static GetEvent ( this facebook, string eventId ) : Event
facebook this The facebook.
eventId string The event id.
return Event

GetEvent() public static method

Gets the specified event.
public static GetEvent ( this facebook, string eventId, string>.IDictionary parameters ) : Event
facebook this The facebook.
eventId string The event id.
parameters string>.IDictionary The parameters.
return Event

GetEventAsJson() public static method

Gets the specified event as plain json string.
public static GetEventAsJson ( this facebook, string eventId, string>.IDictionary parameters ) : string
facebook this The facebook.
eventId string The event id.
parameters string>.IDictionary The parameters.
return string

GetFeeds() public static method

Get the feeds for the specified facebook id (application ,event, group, page or user).
type of id | returns ------------|------------------- Application| The application's wall. Event | The event's wall. Group | The group's wall. Page | The page's wall. User | The user's wall. Requires the read_stream permission to see non-public posts.
public static GetFeeds ( this facebook, string id, string>.IDictionary parameters ) : PostCollection
facebook this
id string
parameters string>.IDictionary
return PostCollection

GetFeeds() public static method

Get the feeds for the specified facebook id (application ,event, group, page or user).
type of id | returns ------------|------------------- Application| The application's wall. Event | The event's wall. Group | The group's wall. Page | The page's wall. User | The user's wall. Requires the read_stream permission to see non-public posts.
public static GetFeeds ( this facebook, string id, int limit, int offset, string until, string>.IDictionary parameters ) : PostCollection
facebook this
id string
limit int
offset int
until string
parameters string>.IDictionary
return PostCollection

GetFeedsAsJson() public static method

Get the feeds for the specified facebook id (application ,event, group, page or user).
type of id | returns ------------|------------------------ Application| The application's wall. Event | The event's wall. Group | The group's wall. Page | The page's wall. User | The user's wall. Requires the read_stream permission to see non-public posts.
public static GetFeedsAsJson ( this facebook, string id, string>.IDictionary parameters ) : string
facebook this
id string
parameters string>.IDictionary
return string

GetMyPages() public static method

public static GetMyPages ( this facebook ) : AccountCollection
facebook this
return AccountCollection

GetMyPages() public static method

public static GetMyPages ( this facebook, string>.IDictionary parameters ) : AccountCollection
facebook this
parameters string>.IDictionary
return AccountCollection

GetMyPagesAsJsonString() public static method

public static GetMyPagesAsJsonString ( this facebook ) : string
facebook this
return string

GetMyPagesAsJsonString() public static method

Get list of pages for the current Facebook User
public static GetMyPagesAsJsonString ( this facebook, string>.IDictionary parameters ) : string
facebook this
parameters string>.IDictionary
return string

GetPage() public static method

Gets the page with specified id.
public static GetPage ( this facebook, string pageId ) : FacebookSharp.Schemas.Graph.Page
facebook this /// The facebook. ///
pageId string /// The page id. ///
return FacebookSharp.Schemas.Graph.Page

GetPage() public static method

Gets the page with specified id.
public static GetPage ( this facebook, string pageId, string>.IDictionary parameters ) : FacebookSharp.Schemas.Graph.Page
facebook this /// The facebook. ///
pageId string /// The page id. ///
parameters string>.IDictionary /// The parameters. ///
return FacebookSharp.Schemas.Graph.Page

GetPageMembers() public static method

Gets the the list of all facebook user who are members of the specified page.
public static GetPageMembers ( this facebook, string pageId ) : BasicUserInfoCollection
facebook this /// The facebook. ///
pageId string /// The page id. ///
return BasicUserInfoCollection

GetPageMembers() public static method

Gets the the list of all facebook user who are members of the specified page.
public static GetPageMembers ( this facebook, string pageId, string>.IDictionary parameters ) : BasicUserInfoCollection
facebook this /// The facebook. ///
pageId string /// The page id. ///
parameters string>.IDictionary /// The parameters. ///
return BasicUserInfoCollection

GetPageMembers() public static method

public static GetPageMembers ( this facebook, string pageId, int limit, int offset, string until, string>.IDictionary parameters ) : BasicUserInfoCollection
facebook this
pageId string
limit int
offset int
until string
parameters string>.IDictionary
return BasicUserInfoCollection

GetPost() public static method

Gets the post with the specified id.
public static GetPost ( this facebook, string postId ) : Post
facebook this /// The facebook. ///
postId string /// The post id. ///
return Post

GetPost() public static method

Gets the specified post by id.
public static GetPost ( this facebook, string postId, string>.IDictionary parameters ) : Post
facebook this /// The facebook. ///
postId string /// The id. ///
parameters string>.IDictionary /// The parameters. ///
return Post

GetPostAsJson() public static method

Gets the specified post by id.
public static GetPostAsJson ( this facebook, string id, string>.IDictionary parameters ) : string
facebook this /// The facebook. ///
id string /// The id. ///
parameters string>.IDictionary /// The parameters. ///
return string

GetPosts() public static method

Get the posts for the specified facebook id (application, page or user).
type of id | returns ------------|------------------------ Application| The applications's own posts. Page | The page's own posts. User | The user's own posts. Requires the read_stream permission to see non-public posts.
public static GetPosts ( this facebook, string id, string>.IDictionary parameters ) : PostCollection
facebook this
id string
parameters string>.IDictionary
return PostCollection

GetPosts() public static method

Get the posts for the specified facebook id (application, page or user).
type of id | returns ------------|------------------------ Application| The applications's own posts. Page | The page's own posts. User | The user's own posts. Requires the read_stream permission to see non-public posts.
public static GetPosts ( this facebook, string id, int limit, int offset, string until, string>.IDictionary parameters ) : PostCollection
facebook this
id string
limit int
offset int
until string
parameters string>.IDictionary
return PostCollection

GetPostsAsJson() public static method

Get the posts for the specified facebook id (application, page or user).
type of id | returns ------------|------------------------ Application| The applications's own posts. Page | The page's own posts. User | The user's own posts. Requires the read_stream permission to see non-public posts.
public static GetPostsAsJson ( this facebook, string id, string>.IDictionary parameters ) : string
facebook this
id string
parameters string>.IDictionary
return string

PostComment() public static method

Writes the given comment on the given post.
public static PostComment ( this facebook, string objectId, string>.IDictionary parameters ) : string
facebook this The facebook.
objectId string Id of the object.
parameters string>.IDictionary The parameters.
return string

PostComment() public static method

Writes the given comment on the given post.
public static PostComment ( this facebook, string objectId, string message ) : string
facebook this The facebook.
objectId string Id of the object.
message string Comment Message.
return string

UpdateEvent() public static method

public static UpdateEvent ( this facebook, Event @event, string>.IDictionary parameters ) : bool
facebook this
@event Event
parameters string>.IDictionary
return bool