title: Facebook SSO, Android and authentication against Google App Engine
body: <p>I followed the tutorial here: <a href="https://developers.facebook.com/docs/mobile/android/build/#enablesso" rel="nofollow">https://developers.facebook.com/docs/mobile/android/build/#enablesso</a></p>
  
  <p>I am able to authenticate on the android side, but what I want to do is to use SSO or some sort of authentication using facebook [preferrably OAuth] to authenticate against my web application on GAE. I expect it to work something like this: <a href="http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app" rel="nofollow">blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app</a></p>
  
  <p>This is the sort of flow I expect:</p>
  
  <ol>
  <li>The user starts my app, and is prompted with an option to <code>authenticate to FB</code>.</li>
  <li>The FB app/web dialog opens and asks the user to confirm permissions to be given to my app.</li>
  <li>Once that is done, FB provides me with a cookie [or something similar].</li>
  <li>I use that cookie for subsequent requests to my web service, where I can get the username simply using:</li>
  </ol>
  
  <blockquote>
  <pre><code>user = oauth.get_current_user()
  user.nickname()
  </code></pre>
  </blockquote>
  
  <p>Is anything like this possible? The problem I face is that while performing SSO, there is no place where I specify an OAuth end point. GAE provides OAuth endpoints<a href="http://code.google.com/appengine/docs/python/oauth/overview.html" rel="nofollow"> [http://code.google.com/appengine/docs/python/oauth/overview.html]</a>, which I think I should be using. Any clue as to how I can proceed about this?</p>
  
  <p>Any help is appreciated. Regards, rohan</p>