0

iPhoneアプリにGigyaを統合しています。現在、アクセス用に 17 のプロバイダーが提供されていますが、9 つのプロバイダーに制限したいと考えています。どうやってやるの?

iPhoneに統合した人はいますか?グループ化された表形式で 17 のプロバイダーを表示する Web ビューをロードします。こちら を参照してください

4

2 に答える 2

2

Facebook と Twitter を設定するには、次のコードを使用できます。

GSDictionary *pParams5 = [[GSDictionary new] autorelease];

[pParams5 putStringValue:@"facebook,twitter" forKey:@"enabledProviders"]; 

[gsAPI showAddConnectionsUI:pParams5 delegate:self context:nil];
于 2010-11-25T12:50:41.303 に答える
0
 GSAPI *gsAPI // declare this  

 gsAPI = [[GSAPI alloc] initWithAPIKey:<API-KEY> viewController:self];  // i kept this in viewDidload

// add this code to have facebook and twitter on provider list

   GSDictionary *pParams5 = [[GSDictionary new] autorelease];
   [pParams5 putStringValue:@"facebook,twitter" forKey:@"enabledProviders"];  
   [gsAPI showAddConnectionsUI:pParams5 delegate:self context:nil];


//this method called when login fails
  -(void)gsLoginUIDidFail:(int)errorCode errorMessage:(NSString*)errorMessage context:(id)context{ }

// this method called on successful login
  - (void)  gsLoginUIDidLogin:(NSString*)provider user:(GSDictionary*)user context:(id)context {} 

有効な API があるかどうかを確認する

于 2010-11-30T12:16:51.377 に答える