Android的:避免两个登录至Facebook(SDK和浏览器),同时集成了网页"喜欢"按键 [英] Android: Avoiding two logins to Facebook (SDK and Browser) while integrating a page "like" button

查看:314
本文介绍了Android的:避免两个登录至Facebook(SDK和浏览器),同时集成了网页"喜欢"按键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个Like按钮添加到我的Andr​​oid应用程序,用户可以preSS喜欢一个粉丝页面。
以我的理解,这是因为Facebook的安全限制不可能的。

I am trying to add a LIKE button to my android app that the user can press to like a fan page. To my understanding, this is not possible because of Facebook security restrictions.

我的选择是与显示使用的WebView一个Like按钮的喜欢社交的html code被Facebook提供。
这种做法的问题是,用户必须使用Web界面为他看到类似按钮,重新登录到Facebook。也就是说,此前他在使用SDK的身份验证(这也是一个Web视图)已经登录。

My alternative is to display a Like button using WebView with the "like social html code" provided by Facebook. The issue with that approach is that the user will have to re-login to Facebook using the web interface for him to see the like button. That is, after he already logged in using the SDK authentication (which is also a web view).

是否有可能只使用一个登录做到这一切?
它是如何在使用SDK不保存cookies来默认Web浏览器(该SDK使用Web视图)?

Is it possible to do all of that using only one login? How is it that logging in using the SDK does not save the cookies to the default web browser (the SDK uses a web view...) ?

是否有任何替代方案来实现这一目标?

Are there any alternatives to accomplish that?

推荐答案

尝试登录到使用SSO应用程序。非SSO(标准)认证使用安装在应用程序的Facebook应用程序。如果你做一个SSO FB登录到您的应用程序,只需通过一个URL来web视图为喜欢功能,我想它应该工作,因为你正在使用SSO FB登录有关的应用程序和pre安装Facebook应用程序设备处理的WebView FB。

Try logging into your application with SSO. Non SSO(Normal) authentication uses the Facebook application installed on the app. If you do a SSO FB login into your app and simply pass a url to webView for the "Like" feature, I guess it should work because you are using a SSO FB login for the app and pre installed facebook app on the device to handle the webview's FB.

我希望这件事。请分享您的反馈。

I am hopeful about this. Please share your feedback.

这篇关于Android的:避免两个登录至Facebook(SDK和浏览器),同时集成了网页"喜欢"按键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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