java 使用 REST API 在 android 中登录到 Facebook

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1860116/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 18:16:41  来源:igfitidea点击:

Login to facebook in android using REST API

javaandroidfacebookhttpclient

提问by Omnia

I develop facebook application in android i want to log in to facebook via HTTPClient , teh user give me username and password and then i connect to facebook.com/login

我在 android 中开发 facebook 应用程序我想通过 HTTPClient 登录到 facebook,用户给我用户名和密码,然后我连接到 facebook.com/login

i want to make like this code

我想做这样的代码

Facebook: Getting Incorrect Signature (104) when Getting Session Key

Facebook:获取会话密钥时获取错误签名 (104)

but in android, i tried to do that but when i get the session, a XML contain invalid parameter returned

但是在 android 中,我尝试这样做,但是当我获得会话时,返回的 XML 包含无效参数

can any one help me?

谁能帮我?

回答by Amit Kotlovski

Facebook released an official SDK for Android applications. See this poston their developers blog.

Facebook 发布了用于 Android 应用程序的官方 SDK。在他们的开发者博客上查看这篇文章

回答by FunnyLookinHat

You might want to try implementing the Android Facebook:Connect Library: http://wiki.developers.facebook.com/index.php/User:Android

您可能想尝试实施 Android Facebook:Connect 库:http://wiki.developers.facebook.com/index.php/User:Android

It's not official - but it seems fairly stable for most practical uses (allowing connecting and FQL queries, etc.)

这不是官方的 - 但对于大多数实际用途来说似乎相当稳定(允许连接和 FQL 查询等)