简体   繁体   English

Facebook API Android Authentication used for the Web API

[英]Facebook API Android Authentication used for the Web API

I'd like to use the Android SDK for the Facebook API.我想将 Android SDK 用于 Facebook ZDB974238714CA8DE634A7CE1DF08。 I'm having no issues with retrieving the access_token, described here: [Retrieve Auth Key][1]http://stackoverflow.com/questions/4593061/how-to-retrieve-an-facebook-authtoken-from-the-accounts-saved-on-android我在检索 access_token 时没有问题,如下所述:[检索身份验证密钥][1]http://stackoverflow.com/questions/4593061/how-to-retrieve-an-facebook-authtoken-from-the-帐户保存在 android

I can also authenticate just fine with Facebook using the Android SDK.我还可以使用 Android SDK 对 Facebook 进行很好的身份验证。

On the Web end, I'm having no problem authenticating with this, Found on FB在 Web 端,我对此进行身份验证没有问题FB上找到

My problem is I need to be able to issue the Web API authentication using the information I get from the Android SDK.我的问题是我需要能够使用从 Android ZF20E735C5E5B3FAB86D.

Is this possible?这可能吗? I'm having trouble finding any information on how to do this.我无法找到有关如何执行此操作的任何信息。

Thanks!谢谢!

--Scott ——斯科特

Scott,斯科特,

Are you retrieving the access token when the user authenticates from the FB Android SDK?当用户从 FB Android SDK 进行身份验证时,您是否正在检索访问令牌?

Once you have that access token, no matter where you get it, it's good for up to 30 minutes (soon to be 3 weeks).一旦您拥有该访问令牌,无论您从何处获得它,它都可以使用长达 30 分钟(很快为 3 周)。

So you can make any Graph call you like about the user as long as you have the proper permissions from the allow.因此,只要您拥有允许的适当权限,您就可以对用户进行任何您喜欢的 Graph 调用。

something along these lines: facebook.request("me");类似这样的东西: facebook.request("me"); // to get the current logged in users info.. // 获取当前登录用户信息..

-J -J

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM