I'm using Facebook's graph API to authorize an app. I just authorized the app with
and got an access_token from the redirect uri with less expiration time.
Then I just used
this to get an access_token with higher expiration time.
The problem is that the format of response I got from this method is text/plain
. It's just like
access_token=EAAYZC5w2OP4kBAKNU7nfSKRkdlrGeE2ZCamo8CSTEFZAwzZBMgqlPxPZATTE8EPpM0rdJJX1Rh7ZA8ABZAeOqt0ZA3OxldZB3nnfPWUrcqdTa5R0q9nas1T0OXSZChKgUyxzZBh5Ugbjvm4GMixVcM8vo2tZCdo3YUZD&expires=5184000
My query is that how to get the response in application/json format
.
Any help will be appreciated !!!