Chintan
Chintan

Reputation: 2808

OAuth integration in iphone app

I have one problem regarding OAuth integration in iPhone App.

Can anyone help me how to integrate OAuth 2.0 with facebook in iPhone ?

I have referred so many sites about OAuth but I haven't got satisfied answer yet. I referred this question of stackoverflow. There is one good option about ShareKit. But my client wants only OAuth 2.0.

I downloaded framework from google code. I integrated it in my application. But How to use it ? Without guidance I can't implement it in proper way.

I have got stuck between my application and 0Auth 2.0 since last 3 days. Please can anyone give me idea or demo project or any another tutorial ?

Upvotes: 3

Views: 4962

Answers (3)

stigi
stigi

Reputation: 6721

The framework you mentioned in your post is not for OAuth 2, but for OAuth 1.0a.

You can try the OAuth2Client we developed for talking to the SoundCloud API. It's build against draft 10 of the spec. I'm not sure which one is used by Facebook. Unfortunately the spec is not final yet and over the years different services adopted different drafts of the spec.

If you're able to argue with your client I'd try to convince him to let you go with the official iOS SDK. This gives you many benefits like automatic token refresh, single sign on via the official app & much more.

Upvotes: 2

Shamsudheen TK
Shamsudheen TK

Reputation: 31311

I just done a research

This post will really help you

Also please look at the below posts

iphone-facebook-oauth2-graph-api

OAuth and Facebook iPhone SDK

Upvotes: 2

AndyDev
AndyDev

Reputation: 1409

Rather than implement OAuth for Facebook, make use of the Facebook iOS SDK which makes handling Facebook Auth and Requests much easier. You can read about it and download it here... http://developers.facebook.com/ios/

Upvotes: 3

Related Questions