如何使用Android应用程序的WebView Facebook的访问令牌 [英] How to use Facebook access token in android app webview

查看:149
本文介绍了如何使用Android应用程序的WebView Facebook的访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于如何使用Android应用程序的WebView Facebook的访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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