« first day    last day (151 days later) » 

4:46 AM
I am working with a app which uses the offline access to post as the user using the accesstoken in to facebook wall ,but now the facebook is depreciated the offline access ,so that i cant get the offline access to do so ;the facebook document is unclear and i hav trird the document codes,but no hopes. so is their any one to help me to extend the offline access expire period of both new user and already using one.
 
1
Q: How to extend access token validity since offline_access deprecation

Rok DominkoSince offline_access is deprecated we have problem geting the so called long lived access tokens without that permission. Here (https://developers.facebook.com/docs/offline-access-deprecation/) it says, that server side OAuth generated access tokens will be long lived, but they are not. Am I miss...

 
but dosn't getting a extended accesstoken to expire after 60 days and for a new user the "graph.facebook.com/oauth/access_token? client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN" this doesnot works for getting a accesstoken of 60 days expire for a new user.
When used the debug tool of the facebook the expire time of the access token is got but it cannot be extended with the available codes for extending accesstoken expire.
because when i have changed the app setting in the facebook app by enabling=>depreciated offline_access .
:2584383
 
I am not even sure what you are saying.
1. Did you disable deprecate offline_access?
If you did you need to enable it
There is no offline_access available so you need long lived access tokens
 
ya,now i have disabled the deprecate offline_access ,but after the 90 days break point period given by facebook this will affect the app
:2584468
 
5:01 AM
What is it that you exactly want to do? Extend it for 60 days?
Did you read the docs where it says
> When a user visits your site with an existing, valid access_token, you have the option to extend the expiration time of that access token without requiring the user to login again. Our platform will only extend the expiration time once per day, so even if a user revists your site multiple times a day, the token will be extended the first time requested.
 
Though in order to post in facebook as user from a app,we need the accesstoken of the user with the scope"offline_access" but now from my app db when i take the new user accesstoken after enabling the =>depreciated offline_access . the expire time is shown to only 2hours which will be expired after it,in order to get a valid access token the user have to reenter the app then only the expire time extended to 2 hours ,when tried the codes as in the documents its not working
ya i need a long time expire accesstoken
:2584501
 
If you are using server side authentication flow then it should be extended normally
 
actually i working with client side authentication
:2584556
any way i going to check with server side authentication ,pls reply with ;if their is any way to extended it when using it in client side authenication
Thanks for the info shared
:2584501
 
5:17 AM
I just tried a call server side
Issued: 9:13 pm Feb 8 2012
Expires: 10:13 pm Apr 8 2012
So it works that way
 
Hi Gokul
 
can u put that sample code
:2584625
@ArunMohan Hi arun
 
Inform me when it is worked.
:2584656
 
@phwd can u pls put that sample code which works for u to extend the accesstoken
 
I have not been able to get the client token to extend yet but the server side flow works fine for me.
There is no code
I just used the authentication flows within the browser
 
5:46 AM
Okay I think I got the Client Token working
If a token is already in use and has not expired you need to recall a new token via client-side authentication. Then use that new token (it may end up being the same token as before but you need to reauth. Then place the token in the endpoint to get your extended token. Most likely you were calling the endpoint but you cannot extend unless the client authentication happens first.
> To get the access_token simply pass your own client_id (your app_id), your app_secret, and the client-side access_token to the endpoint below. The returned access_token will be set to expire in 60 days. If you would like to renew a still valid access_token, you will have to get a new client-side access token first and then call the same endpoint below. The returned access_token with the newly extended expiration time may or may not be the same as the previously granted extended access_token.
 
6:34 AM
Ya server side authentication works for me automatically, Thanks a lot; it also works in client side authentication like this FB.login(function(response) {
if (response.authResponse) {
alert(response.authResponse.accessToken);
console.log('Welcome! Fetching your information.... ');
// FB.api('/me', function(response) {
// console.log('Good to see you, ' + response.name + '.');
// FB.logout(function(response) {
// console.log('Logged out.');
 
Good stuff
 
thenhave to extend it via url graph.facebook.com/oauth/…
 
That's correct
 
 
5 hours later…
11:27 AM
Hi when i am trying this $token_url = "https://graph.facebook.com/oauth/access_token?"
. "client_id=" . $appid
."redirectUri=".$baseurl. "&grant_type=fb_exchange_token &client_secret="
. $secret . "&fb_exchange_token=" . $token; from client side authentication
i am getting the following error "{
"error": {
"message": "Missing redirect_uri parameter.",
"type": "OAuthException"
}
}"
:2585260
 
 
3 hours later…
2:25 PM
your appid and redirectUri are concatenated
 

« first day    last day (151 days later) »