Created
February 8, 2021 12:46
-
-
Save letswritetw/64884e0ad79515980538b8ad52e44b91 to your computer and use it in GitHub Desktop.
ig-oembed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var appId = '從 FB 後台取得的「應用程式編號」'; | |
var secret = '從 FB 後台取得的「應用程式密鑰」'; | |
var uri = 'https://graph.facebook.com/oauth/access_token?client_id=' + appId + '&client_secret=' + secret + '&grant_type=client_credentials'; | |
function doGet(e) { | |
var response = UrlFetchApp.fetch(uri); | |
return ContentService.createTextOutput(response).setMimeType(ContentService.MimeType.JSON); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment