How to refresh a Facebook access token for a specific Facebook user?

532 Views Asked by At

We have an application that allows users to associate multiple Facebook accounts. They use our software to, among other things, post selectively to those accounts.

Of course, the access tokens expire and we need to refresh them. However, since we have multiple tokens for multiple accounts, we need to refresh a very specific account.

If we simply throw the user into the auth flow, they will refresh to whichever Facebook account they are currently authenticated (or happen to log in to), which may not be the one we need to refresh.

Is there anyway to place the user into the auth flow with a hint so that they can log in to the correct Facebook account and refresh the specific token we need refreshed? Presumably, this would override any current session they might have with Facebook as well.

I can understand that this is sort of counter-intuitive to the normal use case (i.e., keeping the auth flow very seamless for the user), but nonetheless, it is our scenario.

If this is unsupported, does anyone have any ideas about alternate approaches?

0

There are 0 best solutions below