开发者

Can I use facebook-connect as my user authentication?

I'm building a iPhone App, that communicates with a webserver (Java webapp) using REST (XML over h开发者_运维知识库ttp). In my prototype I used http's basic-authentication to allow access and identify the user, using username and password. Since there should be friendships and profiles in my app, I want to use facebook-connect so I don't have to implement it and the users don't have to manage there friends and profiles twice. When I use fb-connect, I may even go without all the basic user management stuff, like create a new user, change password and so on.

So here is my question: Is it possible to use facebook-connect as my one and only user authentication? And more importantly: How can I authenticate the user while communicating with the webserver?

To clarify: I don't want to link the facebook account to my user accounts, I want to use it instead.


You can use the Facebook Graph API to do this. Here are some links to get started

A tutorial on the subject:

http://www.capturetheconversation.com/technology/iphone-facebook-oauth2-graph-api

Some objective-C work someone did to make life easier:

https://github.com/facebook/facebook-ios-sdk

The official graph API:

https://developers.facebook.com/docs/reference/api/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜