How can I force a facebook access token to expire?

前端 未结 8 1687
执念已碎
执念已碎 2020-12-23 12:00

I\'m doing some testing in the wake of offline_access\'s expiration. I think that since all interactions my app makes with Facebook are done via my servers and are user ini

8条回答
  •  情歌与酒
    2020-12-23 12:33

    This should work, check below.

    Invalidating (aka logout) your token; make HTTP GET call to that endpoint;

    https://api.facebook.com/restserver.php?method=auth.expireSession&format=json&access_token=
    

    p.s. my answer is from 2012... Since then, Facebook API has evolved with many major changes. It is more reliable to read the up2date Facebook developer doc

提交回复
热议问题