I am working on the application where I have to get the subscriberid, oauth_token and oauth_token_secret for Google, Yahoo and Facebook. How can I do this?
Asked
Active
Viewed 904 times
-1
-
http://developers.facebook.com/docs/authentication/ – Neil Knight Dec 06 '11 at 16:31
-
Use the APIs described on the page of google, yahoo, fb. – mybecks Dec 06 '11 at 17:23
1 Answers
2
Well for all OAuth system you need to follow the below mentioned steps
- Register you application with them and get client_key and secret_key
- When user want to get authenticate them self pass on the
secret key
andclient_key
to OAuth system to getAuthorizationUrl
which will contain request token. - Redirect user to these provider and once user authenticate them, OAuth system will redirect back user to your application.
- They will send a
verification code
, use thatverification_code
along with the request token got in step2 to getAccess token
. - Once you have
Access_Token
you can interact with the oAuth system to access user data.
out of them only step 3 is where user will be in directly engaged and for rest of steps things will happen behind the scene. Each service provide has a well defined documentation like at which URL to send request to get request token/Access Token and what they expect in request data what they will send back in conformation etc.
here are the details
Using OAuth 2.0 to Access Google APIs
Though i have never worked with mobile application but the protocol is more or less same. My suggestion is to use some API to achieve this.
hope will help you

Umesh Awasthi
- 23,407
- 37
- 132
- 204