Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, it's possible:</p> <p><strong>iOS:</strong></p> <p>1) Login through Facebook</p> <pre><code>[QBUsers logInWithSocialProvider:@"facebook" delegate:self]; ... // QuickBlox queries delegate - (void)completedWithResult:(Result *)result{ // success result if(result.success){ // User Login if([result isKindOfClass:QBUUserLogInResult.class]){ QBUUserLogInResult *res = (QBUUserLogInResult *)result; // Your Facebook access token NSString *accessToken = res.socialProviderToken; NSString *expiresAt = res.socialProviderTokenExpiresAt; }else{ NSLog(@"Errors=%@", result.errors); } } </code></pre> <p>2) Retrieve your Facebook profile</p> <pre><code> NSString *meQuery = [NSString stringWithFormat:@"https://graph.facebook.com/me?access_token=%@", accessToken]; NSURL *url = [NSURL URLWithString:[meQuery stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; // perform request NSURLResponse **response = nil; NSError **error = nil; NSData *resultData = [NSURLConnection sendSynchronousRequest:request returningResponse:response error:error]; // set body NSString *bodyAsString = [[NSString alloc] initWithData:resultData encoding:NSUTF8StringEncoding]; SBJsonParser *parser = [[SBJsonParser alloc] init]; // This is your Facebook profile as dictionary NSDictionary *me = [parser objectWithString:bodyAsString]; [bodyAsString release]; [parser release]; </code></pre> <p>3) Location based chat - look at Location sample <a href="http://quickblox.com/developers/SimpleSample-location_users-ios" rel="nofollow">http://quickblox.com/developers/SimpleSample-location_users-ios</a> - it's simple location based chat, just is it after login</p> <p><strong>Android</strong></p> <p>Did you see </p> <p><a href="http://quickblox.com/developers/SuperSample_%28Map_Chat_code_sample%29_Android" rel="nofollow">MapChat sample</a> ?</p> <p>This sample contains all features you need</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload