0

I need to generate access token for particular Facebook account through app on iPhone. Please give some guidelines to start this work.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
ios developer
  • 923
  • 2
  • 12
  • 19
  • Open Facebook.com-->login-->click on developers tag-->iOS SDK-->Find out Register an app-->After registering the app at that portal will give you the access token – Kuldeep Mar 21 '12 at 07:07

1 Answers1

1

You can get access token by this:

https://graph.facebook.com/oauth/access_token?client_id=MYID&client_secret=*MY_SECRET*&grant_type=client_credentials

Access token granted by user have expiration time. If token expired then you need to request it again. But if you ask user to grant you "offline_access" permissions then you'll have almost not limited access token. You can store it in database or file and use next time.

You can see this questions:

Community
  • 1
  • 1
Somnath Muluk
  • 55,015
  • 38
  • 216
  • 226