Why fiddle for hours trying to integrate with Facebook when there is already a tool for that. Branches FB API is that tool and will save you significant amounts of time that you would otherwise spend on integrating with Facebook directly.
Branches FBAPI:
- is easy to use
- strongly typed to make debugging easier.
- can be used in any .NET project or language, (VB, C#, etc) from the 2.0 framework and up.
- supports most major graph api functions
- is supported and maintained as the Facebook graph changes
- enabled you to validate users on your ASP.NET site
- removes the hassle of having to fiddle with httpRequests, formatting and cryptic messages.
If for any reason we are missing a graph function that you need, just ask us. We can easily update our interface to accomodate most facebook API calls.
View a list of currently supported functions.
Download Free Trial Now - free for up to 30 days
Sample Code
Making Requests
Imports Branches.FBAPI
...
Dim SI As New SessionInfo("[access_token]"))
Dim Req New Functions.Requests(SI)
Dim User = Req.GetUserInfo("[optional user ID]")
Response.Write(U.name)
Making Posts
Imports Branches.FBAPI
...
Dim SI As New SessionInfo("[access_token]"))
Dim Posts = New Functions.Posts(SI)
Dim P As New Post
P.name = "name of post"
P.message = "message"
P.link = "www.cnn.com"
P.caption = "my caption"
Posts.PublishCreate("[object ID to post to]", P)
Dim PostID = P.id
Authenticating Users
Imports Branches.FBAPI
...
Dim SI As New SessionInfo("[application_id]","applicaiton_secret")
'Redirects user to facebooks
SI.AuthenticateUser("http://[my url]", New SessionInfo.PermissionsEnum(){SessionInfo.PermissionsEnum.email, SessionInfo.PermissionsEnum.read_stream}))
'Called when the user is returned to your page
Dim FSR = SI.ReadFacebooAuthResponse
Response.Write(FSR.Access_Token)
Response.Write(FSR.UserID)