Beispiel #1
0
 public void Initialize()
 {
     _api = new API
            	{
            		IsDesktopApplication = true,
            		ApplicationKey = Constants.FBSamples_ApplicationKey,
            		Secret = Constants.FBSamples_Secret,
            		SessionKey = Constants.FBSamples_SessionKey,
            		uid = Constants.FBSamples_UserId
            	};
 }
        public AccountService(IRepository repository, IAuthenticationService authenticationService)
        {
            _repository = repository;
            _authenticationService = authenticationService;

            _facebookService = new API
                                   {
                                       ApplicationKey =Settings.FacebookApiKey,
                                       Secret = Settings.FacebookSecret,
                                       IsDesktopApplication = false
                                   };
        }
Beispiel #3
0
 public void setAppPropertiesTest()
 {
     //This stuff only works for canvas apps, and since I don't have an infinite session anymore
     //with canvas apps, I can't run this test...
     API parent = new API
     {
         ApplicationKey = Constants.FBSamples_WebApplicationKey,
         Secret = Constants.FBSamples_WebSecret,
         uid = Constants.FBSamples_UserId
     }; ;
     admin target = parent.admin;
     bool expected = true; // TODO: Initialize to an appropriate value
     bool actual;
     var dict = new Dictionary<string, string>
     {
         {"application_name","Sample IFrame App"}
     };
     actual = target.setAppProperties(dict);
     var props = target.getAppProperties(target.GetApplicationPropertyNames());
     Assert.AreEqual(expected, actual);
     Assert.IsNotNull(props);
 }
Beispiel #4
0
 /// <summary>
 /// Public constructor for facebook.fql
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public fql(API parent)
 {
     _api = parent;
 }
Beispiel #5
0
 /// <summary>
 /// Public constructor for facebook.data
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public data(API parent)
 {
     _api = parent;
 }
Beispiel #6
0
 /// <summary>
 /// Public constructor for facebook.permissions
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public permissions(API parent)
 {
     _api = parent;
 }
Beispiel #7
0
 /// <summary>
 /// Public constructor for facebook.permissions
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public users(API parent)
 {
     _api = parent;
 }
Beispiel #8
0
 /// <summary>
 /// Public constructor for facebook.admin
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public admin(API parent)
 {
     _api = parent;
 }
Beispiel #9
0
 /// <summary>
 /// Public constructor for facebook.profile
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public profile(API parent)
 {
     _api = parent;
 }
Beispiel #10
0
 /// <summary>
 /// Public constructor for facebook.auth
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public application(API parent)
 {
     _api = parent;
 }
Beispiel #11
0
 /// <summary>
 /// Public constructor for facebook.marketplace
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public marketplace(API parent)
 {
     _api = parent;
 }
 public FaceBookService()
 {
     _api = new API();
     _api.ApplicationKey = Settings.FacebookApiKey;
     _api.Secret = Settings.FacebookSecret;
 }
 /// <summary>
 /// Public constructor for facebook.stream
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public stream(API parent)
 {
     _api = parent;
 }
Beispiel #14
0
 /// <summary>
 /// Public constructor for facebook.permissions
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public permissions(API parent)
 {
     _api = parent;
 }
Beispiel #15
0
 /// <summary>
 /// Public constructor for facebook.friends
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public friends(API parent)
 {
     _api = parent;
 }
Beispiel #16
0
 /// <summary>
 /// Public constructor for facebook.fql
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public fql(API parent)
 {
     _api = parent;
 }
Beispiel #17
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parent"></param>
 public batch(API parent)
 {
     _api = parent;
 }
Beispiel #18
0
 /// <summary>
 /// Public constructor for facebook.auth
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public pages(API parent)
 {
     _api = parent;
 }
Beispiel #19
0
 /// <summary>
 /// Public constructor for facebook.feed
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public feed(API parent)
 {
     _api = parent;
 }
 public FaceBookController()
 {
     _api = new API();
     _api.ApplicationKey = Settings.Default.FacebookApiKey;
     _api.Secret = Settings.Default.FacebookSecret;
 }
Beispiel #21
0
 /// <summary>
 /// Public constructor for facebook.notifications
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public notifications(API parent)
 {
     _api = parent;
 }
Beispiel #22
0
 /// <summary>
 /// Public constructor for facebook.auth
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public auth(API parent)
 {
     _api = parent;
 }
Beispiel #23
0
 /// <summary>
 /// Public constructor for facebook.liveMessage
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public liveMessage(API parent)
 {
     _api = parent;
 }
Beispiel #24
0
 /// <summary>
 /// Public constructor for facebook.events
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public events(API parent)
 {
     _api = parent;
 }
Beispiel #25
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parent"></param>
 public photos(API parent)
 {
     _api = parent;
 }
Beispiel #26
0
 /// <summary>
 /// Public constructor for facebook.fbml
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public fbml(API parent)
 {
     _api = parent;
 }
Beispiel #27
0
 /// <summary>
 /// Public constructor for facebook.groups
 /// </summary>
 /// <param name="parent">Needs a connected API object for making requests</param>
 public groups(API parent)
 {
     _api = parent;
 }