How to use FacebookAPI.dll

Here we will explain how to use FacebookAPI.dll with an asp.net website
  1. Create an asp.net website.
  2. In web.config>appSettings add the following <add key="GraphBaseUrl" value="https://graph.facebook.com" /> (If appSettings tag is missing add one directly below <configuration>
  3. Right click on the project in solution explorer and click on "Add Reference"
  4. Browse to the location where you have downloaded "FacebookAPI.dll" and click OK. This will add the .dll file to your project
  5. Add namespace reference in the pages where you want to integrate Facebook actions
    • using FacebookAPI;
    • using FacebookAPI.Managers;
    • using FacebookAPI.Objects;
    • using FacebookAPI.FacebookProperties;
  • To call various actions create instance of corresponding Manager class and respective functions
  • Output objects come under Objects namespace

Last edited Oct 21, 2011 at 9:18 AM by robinjome, version 3

Comments

Nitha Aug 7, 2013 at 6:52 AM 
How to post on my facebook page using this code..?

ramanaamina Aug 7, 2012 at 6:54 AM 
It is giving bad request

ramanaamina Aug 7, 2012 at 6:53 AM 
where can i get documentation or example of this?

lheidrich Apr 12, 2012 at 6:18 PM 
Hi,

I would like to create a comment but I do not know why...
I am using this:

Comment comment = new Comment();
comment.Message = "face message";

FacebookCommentManager manager = new FacebookCommentManager();
manager.CreateComment("user", comment, "pswd");

Is this correct?

Tks,

Thumbleweed Oct 28, 2011 at 7:19 AM 
Well, it's my first time to work with facebook in development. So some sort of tutorial for authenticating and reading a feed (statusupdates preferably) would be awesome ^^

robinjome Oct 25, 2011 at 5:26 PM 
Sure. We are in a process of creating a full fledged documentation for the library. Hopefully in a day or 2 it will be released. Meanwhile if any assistance is required post comments and we shall reply for it.

Thumbleweed Oct 25, 2011 at 11:58 AM 
Hi, is there any tutorial of how to use the library? some code examples of how to request a user status from facebook is what i'm actually searching for.
Thanks!

Regards,
Peter