title: How to Implement google and Facebook url handling in ios?
body: <p>I am looking to implement Google as well as Facebook Log-in  functionality.Both of them have a url handling method that is supposed to in appDelegate.Now how do I distinguish between the two  request here.</p>
  
  <p>The Facebook method is like this.</p>
  
  <pre><code>  - (BOOL)application:(UIApplication *)application
          openURL:(NSURL *)url
      sourceApplication:(NSString *)sourceApplication
       annotation:(id)annotation {
  
            // Call FBAppCall's handleOpenURL:sourceApplication to handle Facebook app responses
               BOOL wasHandled = [FBAppCall handleOpenURL:url sourceApplication:sourceApplication];
  
            // You can add your app-specific url handling code here if needed
  
                return wasHandled;
     }
  </code></pre>
  
  <p>Whereas Google's method looks like this : </p>
  
  <pre><code> - (BOOL)application: (UIApplication *)application
          openURL: (NSURL *)url
     sourceApplication: (NSString *)sourceApplication
       annotation: (id)annotation {
           return [GPPURLHandler handleURL:url
                 sourceApplication:sourceApplication
                    annotation:annotation];
   }
  </code></pre>