- Create Facebook App
- Paste WebView into mobile, redirect to facebook mobile gateway
- catch the redirect that runs between Facebook and your Facebook application server for email authorization.
- redirect from your server back to Facebook to get permissions
- As soon as Facebook notifies your server of permissions
- request an exchange of sessions from Facebook, and it will return the session to your server.
Based on the redirects posted in the webview, you can determine if the user is logged in and need to exchange sessions, since Facebook will put the session identifier in your URL so that you can save it by processing getPath()
Pentium10
source share