Great module! It makes it possible for all the (relevant) users on my site to post a link to FB whenever they've written something of note.

I'm connected and can see myself under FACEBOOK PAGE INFORMATION at
http://mysite.cat/admin/config/services/fbautopost

...for a time. At some point the access token expires. And noone can Facebook autopost anymore.

1. How long is that connection/token good for?

2. Is it possible to extend it? https://developers.facebook.com/docs/facebook-login/access-tokens/expira... has some hints.

3. Would this be a good solution? On every cron-run Facebook autopost checks if there's a connected user. If not it sends a reminder to an e-mail address reminding somebody to connect with Facebook once more at
http://mysite.cat/admin/config/services/fbautopost
in order for the system to work.

Here I's the link to the docs. you should be able to create a rule to get a new access token:

Documentation for Facebook access tokens for Applications

Comments

MauMau created an issue. See original summary.

Joachim Namyslo’s picture

If you have a Dev account on fb you can check how long it lives by debugging the current token with the open graph explorer.

You could define a rule that regenerates a new token by accessing the address behind the link that is used to regenerate access tokens.

I reccomabd to use long live access to census because the normal ones just live for some hours.

As I said above you should debug the access token and than figure out a approach to regenerate the access token by using the rules module.

Joachim Namyslo’s picture

Issue summary: View changes