Facebook的身份验证在web视图 [英] Facebook Authentication in Webview

查看:133
本文介绍了Facebook的身份验证在web视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个原生的Andr​​oid应用程序,要求Facebook登录它的启动各一次。做这个认证是使用FB SDK(SSO)。

I am building a native android app that require facebook login each time it's initiated. This authentication is done using the FB SDK (SSO).

后来在应用程序中,用户打开的WebView到Facebook的个人资料页(http://m.facebook.com/some页)的移动版本。 我的问题是,打开web视图时,用户输入用户名和密码Facebook网站要求。因为我已经有一个Facebook的访问令牌,用户可能已经安装了Facebook应用程序,我认为有一些方法可以跳过签署这个恼人的阶段在Facebook网站的web视图。

Later on in the app, the user opens a WebView to the mobile versions of facebook profile page (http://m.facebook.com/some page). My problem is that when opening the webview, the user is required to enter user name and password for the facebook site. Since I already have a facebook access token, and the user might have installed the facebook app, I assume there some way to skip this annoying phase of signing in to facebook website in the webview.

我已经在网上搜索并尝试了不同的解决方案,但没有成功。这会帮助我很多,如果有人可以张贴一个解决方案,code,它的工作原理。谢谢!

I have searched the web and tried different solution with no success. It will help me a lot if someone could posts a solution code that works. Thank you!

推荐答案

有教程可在Facebook的开发者网站的单点登录(SSO)登录。一是 使用的WebView < /一>,另一个是 使用SDK
虽然我想,如果用户选择了记住密码复选框,它不应该要求重新登录。

There's tutorial available on Developer site of Facebook for Single-Sign-On (SSO) login. One is using webview and another is using SDK.
Although I think if the user selected remember the password checkbox, it should not ask for login again.

这篇关于Facebook的身份验证在web视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆