如何使用Android应用程序的WebView Facebook的访问令牌

问题描述:

在我的应用程序,用户打开的WebView 来的Facebook个人页面的移动版本(http://m.facebook.com/some_page)。我的问题是,打开的WebView 时,用户需要输入用户名和密码为Facebook。因为我已经有过FB SDK Facebook的访问令牌,用户可能已经安装了Facebook应用程序,我想有一些方法可以跳过登入Facebook的开放的WebView $当这恼人的阶段C $ C>。

In my application, 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 username and password for Facebook. Since I already have a Facebook access token through FB SDK, and the user might have installed the Facebook application, I assume there is some way to skip this annoying phase of signing into Facebook when opening the WebView.

在换句话说,如何使用访问令牌,我已经在我的应用程序的的WebView

In other words, how do I use the access token that I already have in my application's WebView?

可以存储AccessToken单独的属性,如果你使用的WebView然后传递accessToken,当用户使用Ti.Facebook然后用另一个AccessToken检查。

You can store that AccessToken separately in Properties and check if you use webview then pass that accessToken and when user use Ti.Facebook then use another AccessToken.