javascript - how to get Facebook user access token using only server side with nodejs -


i want facebook account campaigns statistics every half hour using nodejs. need user access token (a new 1 every request, because expires). how can using server side?

you can request tokens using facebook's api. however, in case should enough use application level token required permissions. can generate once (even manually, call) , won't expire.

get {api-path}/oauth/access_token?client_id={app-id} &client_secret={app-secret} &grant_type=client_credentials 

Comments