Example on configuring a session manager

IFacebookService facebookService =
   FB.For("apikey", "secret")
        .With(new FacebookSessionManager())
        .Build;
public class FacebookSessionManager : IFacebookSessionManager
{
        public string GetSession()
        {
            return "asdf4rasdf4t565464wfg33fdsf";
        }
}

Example on using Fluent FQL

{
    Collection<user> query = FBSQL
        .With(facebookService)
        .Select(User.uid, User.sex)
        .From<user>()
        .Where(User.uid).Eq(99999999);
}

Last edited Feb 24, 2009 at 12:24 AM by Nym, version 1

Comments

No comments yet.