0
votes

Hi I am trying to generate a Facebook access token that has offline access and doesn't expire.

We are currently generating the token using

https://graph.facebook.com/oauth/authorize?type=user_agent&client_id=OurAppId&redirect_uri=http://OurSite.com&scope=read_stream,offline_access

which generates the following

http://OurSite.com/#access_token=BWLjKqmm5I4dBAJUoJsbrZBMjqUTYd5oUVKdMDf0nyZBkBMnl62F5lFPqliU4cfAaI9vHjwhfgpsidjw5zrBfg4M5RftQcYHkD2rf3rCmsfd4vyxW1SPkg1bfUS3NuY2MwwhUGD159LztlpgkjSunVwf8LZA70NoefhRt1fhYPZCpSJ35gjgs6SxHwZDZD&expires_in=5500

But this expires pretty quickly. The fields in the Graph Explorer are not very obvious either.

enter image description here

How can we generate a token with offline access that doesn't expire

Cheers

1

1 Answers

5
votes

Facebook has deprecated and removed the offline_access permission. This permission previously allowed you to get a long-lived token. It is no longer possible to do so.