topical media & game development

talk show tell print

#mobile-application-10-DerbyApp-build-iphone-Classes-FacebookModule.h / h



  
Appcelerator Titanium Mobile Copyright (c) 2009-2011 by DerbyApp, Inc. All Rights Reserved. Licensed under the terms of the Apache Public License Please see the LICENSE included with this distribution for details. WARNING: This is generated code. Modify at your own risk and without support.

  
  ifdef USE_TI_FACEBOOK
  #import <TiModule.h>
  #import <Facebook.h>
  
  @protocol TiFacebookStateListener
  @required
  -(void)login;
  -(void)logout;
  @end
  
  @interface FacebookModule : TiModule <FBSessionDelegate2, FBRequestDelegate2>
  {
          Facebook *facebook;
          BOOL loggedIn;
          NSString *uid;
          NSString *url;
          NSString *appid;
          NSArray *permissions;
          NSMutableArray *stateListeners;
      BOOL forceDialogAuth;
  }
  
  @property(nonatomic,readonly) Facebook *facebook;
  
  -(BOOL)isLoggedIn;
  -(void)addListener:(id<TiFacebookStateListener>)listener;
  -(void)removeListener:(id<TiFacebookStateListener>)listener;
  
  -(void)authorize:(id)args;
  -(void)logout:(id)args;
  
  @end
  endif


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.