Some Common FacebookAPI operations found in .NET Facebook Developer Toolkit


Authentication

ApplicationKey
Secret
For DesktopApps:
    1. call facebook.auth.createToken (which is already implemented by the Facebook Control)
    2. pass AuthToken Property to CreateSession below
CreateSession(String AuthToken)
SessionKey
LogOff

Read Operations

GetLoggedInUser
GetEvents
GetEventMembers
GetFriends
GetFriendsAppUsers()() Get all the friends for the logged in user that use the current application 
GetFriendsNonAppUsers()() Get all the friends for the logged in user that do not use the current application 
GetGroups
GetGroupMembers
GetNotifications
GetPhotoAlbums
GetPhotos
GetTags – for the specified photos
GetUserInfo

    Low-level calls
    DirectFQLQuery(String) Sends a direct FQL query to FB 
    GetFBML(String) Gets the FBML on a user’s profile 

 

Write Operations

AddTag  // to photo
CreateAlbum
SendNotification(markup, tolist, email)
SetFBML(markup, userId)
UploadPhoto

PublishAction(String, String, Collection<(Of <PublishImage>)>) (title, body, images) Publishes an action to the logged-in user’s mini-feed, and to the news feeds of the user’s friends who have added the application. 
PublishStory(String, String, Collection<(Of <PublishImage>)>) (title, body, images) Publishes a story to the logged-in user’s feed. 
PublishTemplatizedAction(String, Dictionary<(Of <String, String>)>, String, Dictionary<(Of <String, String>)>, Collection<(Of <PublishImage>)>) (titleTemplate, titleData, bodyTemplate, bodyData, images) Publishes a templatized action to the logged-in user’s mini-feed, and to the news feeds of the user’s friends who have added the application. 
RefreshImgSrc(String) Tells Facebook to fetche and re-cache the image stored at the given URL for use in non-canvas pages on Facebook. 
RefreshRefUrl(String) Tells Facebook to fetches and re-cache the content stored at the given URL for use in a fb:ref FBML tag. 

 

Testing State

IsAppAdded
IsDesktopApplication
SessionExpires

Visit the Facebook Wiki for more detail explantion of the native api. For the .NET class library documentation download here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s