Facebook的fbrocket API为Android [英] Facebook fbrocket api for android

查看:184
本文介绍了Facebook的fbrocket API为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望开发采取电子邮件和Facebook作为输入密码的应用程序,并获取好友列表来自Facebook。

i want to develop an application that take email and password of facebook as input, and gets the friends list from facebook.

有关此我使用fbrocket.jar API。但我不能登录到Facebook的通过Android手机的帐户。这是fbrocket.jar API足够与否?是否有任何的Facebook API的.jar为Android?

For this i am using fbrocket.jar api. But i can't login into the account of facebook through android mobile. Is this fbrocket.jar api enough or not?. Is there any facebook api .jar for android?

任何一个可以RESOLV我的问题。 PLZ澄清我的疑惑。

any one can resolv my problem . plz clarify my doubts.

ThanQ。

推荐答案

首先,Facebook并没有允许其他应用程序使用的电子邮件和密码来验证到Facebook。

First of all, Facebook doesn't allow other applications to authenticate to Facebook by using email and password.

Facebook已经发布了一个Facebook的API,它允许1)你的应用程序在Facebook的注册和2)通过应用程序,你可以得到一个用户的会话密钥(这实质上是一个代表用户应用程序的身份验证)。

Facebook has released a Facebook API which allows 1) your application to be registered in Facebook and 2) through your application, you can get a user Session Key (which is essentially your application authentication for a user's behalf).

FBRocket基本上包裹Facebook的API,使Facebook的REST风格的函数调用更容易使用Java(Android版)。

FBRocket essentially wrapped the Facebook API to make Facebook RESTful function call easier in Java (for Android).

有关Facebook的API完整规格,请访问: HTTP://wiki.developers。 facebook.com/index.php/API 要知道,Facebook的如何验证您的应用程序,的http://wiki.developers.facebook.com/index.php/How_Facebook_Authenticates_Your_Application.

For full spec on the Facebook API, visit: http://wiki.developers.facebook.com/index.php/API To know how Facebook Authenticate your application, http://wiki.developers.facebook.com/index.php/How_Facebook_Authenticates_Your_Application.

总之,创建一个Facebook应用程序,获得了Facebook的应用程序ID 应用程序秘密(从Facebook)和你是好去得到所有你想要使用Facebook的API。

In short, create a Facebook Application, get a Facebook application ID and application secret (from Facebook) and you're good to go to getting all you want using the Facebook API.

这篇关于Facebook的fbrocket API为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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