I am developing a facebook application, so I need to do an http request to:
https://graph.facebook.com/oauth/access_token?
client_id=APP_ID&
client_secret=APP_SECRET&
grant_type=fb_exchange_token&
fb_exchange_token=EXISTING_ACCESS_TOKEN
to get a string like this:
token=AAABz7kfdgXPwmgBANKZCctdZCPdfgfgcRJ0ONpQr8cWr336dfZDZD&expires=5168309
and then I need to retrieve the token:
AAABz7kfdgXPwmgBANKZCctdZCPdfgfgcRJ0ONpQr8cWr336dfZDZD
What do I have to use to do that ? curl library ? or is there a simplest way ?