Shima_Max Posted March 4, 2019 Share Posted March 4, 2019 Hi, I'm trying to reset leaderboard by sending request: https://graph.facebook.com/v3.2/[APP_ID]/leaderboards_reset?name=[LEADERBOARD_NAME]&reset_time=[TIME]&access_token=[ACCESS_TOKEN] But I can't understand how can I get required access token on server part. Now I'm getting it on this page: https://developers.facebook.com/tools/explorer/123?method=GET&path={application-id}&version=v3.2 (GET TOKEN). But this token has 1 hour live Quote Link to comment Share on other sites More sharing options...
b10b Posted March 4, 2019 Share Posted March 4, 2019 Get the token from the request auth credentials. Then create an appsecret_proof (using your client secret) and include that in the payload too. Simple right Quote Link to comment Share on other sites More sharing options...
Shima_Max Posted March 7, 2019 Author Share Posted March 7, 2019 @b10bNow I have app secret key, client key, key getted from https://graph.facebook.com/oauth/access_token and node js with crypto-js. Can you show some code on JS how to get appsecret_proof from this ingredients? I will really happy to get it Quote Link to comment Share on other sites More sharing options...
Shima_Max Posted March 11, 2019 Author Share Posted March 11, 2019 Solution is to get page long live token: https://stackoverflow.com/questions/17197970/facebook-permanent-page-access-token Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.