示例#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
                                   };
        }
示例#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);
 }
示例#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;
 }
示例#5
0
文件: data.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#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;
 }
示例#7
0
文件: users.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#8
0
文件: admin.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#16
0
文件: fql.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#17
0
文件: batch.cs 项目: taoxiease/asegrp
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parent"></param>
 public batch(API parent)
 {
     _api = parent;
 }
示例#18
0
文件: pages.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#19
0
文件: feed.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#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;
 }
示例#22
0
文件: auth.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#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;
 }
示例#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;
 }
示例#25
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parent"></param>
 public photos(API parent)
 {
     _api = parent;
 }
示例#26
0
文件: fbml.cs 项目: taoxiease/asegrp
 /// <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;
 }
示例#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;
 }