Please log in or register to answer this question. Related questions. I am using Google's php api client. I am running through the quickstart guide for service accounts.
I followed the steps perfectly as far as I can tell. Long lived state with Google Dataflow. Just trying to get my head around the programming model here. I've often read that in the Sun JVM short-lived objects "relatively new objects" can be garbage collected more efficiently than long-lived The reference for downloadUrl states that the link exists for a short amount of time. How long is this roughly? The short-lived token has a short span of a time. You will get the unauthorized response once the token expires.
Each API call requires valid access token as a parameter then only they send a response in back. Once token expired you need to ask the user for go through the login process again using your application. This is where we should use the concept of Long-Lived access token of Facebook. A long-lived token generally lasts about 60 days. And it is much better than using short-lived tokens. To get started, you first need to register an application on Facebook Developers. You will get step by step guide on how to register and configure an app here.
Now, we have app id and app secret keys. One thing that I have not checked yet is if you get the same result if the user access token that you may be querying has expired instead. For each and every user token which is what you're getting from your link , there is an expiration date. You will see that generally they expire within 60 minutes or so.
That user token has to be still valid not expired to do this. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more.
Does a Facebook application's access token expire? Ask Question. Asked 9 years, 8 months ago. Active 6 years ago. Viewed 8k times. Improve this question. Jim Miller Jim Miller 3, 4 4 gold badges 33 33 silver badges 54 54 bronze badges. Add a comment. Active Oldest Votes. Access Token Tool - Facebook Developers App tokens do not expire and should be kept secret as they are related to your app secret.
Improve this answer. Community Bot 1 1 1 silver badge.
0コメント