skip to Main Content

How to code in app secrets and tokens for Facebook authentication in Google Scripts without having the credentials in the script? – Facebook api

I have a script that can obtain successfully from the Facebook oAuth API: function getToken() { var appId = "XXXXXX"; var clientSecret = "XXXXXXXXXXXX"; var url = "https://graph.facebook.com/oauth/access_token?client_id="+appId+"&client_secret="+clientSecret+"&grant_type=client_credentials"; var response = UrlFetchApp.fetch(url); var queryResult = response.getContentText(); var token = queryResult.slice(13);…

VIEW QUESTION
Back To Top
Search