Can I use facebook-connect as my user authentication?

I am creating an iPhone application that interacts with a web server (Java webapp) using REST (XML over http). In my prototype, I used http basic-authentication to allow access and identify the user using the username and password. Since my application must have friendships and profiles, I want to use facebook-connect, so I do not need to implement it, and users do not need to manage friends and profiles twice. When I use fb-connect, I can even do without all the basic user controls, for example, create a new user, change the password, etc.

So here is my question: is it possible to use facebook-connect as my only user authentication? And even more important: how can I authenticate a user while communicating with a web server?

To clarify: I do not want to associate a facebook account with my user accounts, I want to use it instead.

+3
source share
1 answer

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

Related tutorial:

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

Some objective-Cs work to make life easier:

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

Official Graphics API:

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

0

Source: https://habr.com/ru/post/1749016/


All Articles