Search code examples
facebookcordovaoauth-2.0access-token

Is there any way to get permissions until revoked with phonegap-plugin-facebook-connect?


I'm using phonegap-plugin-facebook-connect and it is working well (I can login the user and query the API) but the session that I'm getting has expiration. I wonder if is there any way to get the access token without expiration.

Thanks in advance!


Solution

  • Yes, you will need to request offline_access in addition to the other permissions your app requests. See https://developers.facebook.com/docs/reference/api/permissions/