0

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

JasonMArcher
  • 13,296
  • 21
  • 55
  • 51
ios developer
  • 913
  • 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
  • 51,453
  • 32
  • 215
  • 222