Google apps script I';我一直在尝试为facebook创建一个社区连接器。我正在使用OAuth2.0。单击“验证”按钮后,它会显示“验证”;Can';t加载URL";错误
我正在使用以下身份验证方法:Google apps script I';我一直在尝试为facebook创建一个社区连接器。我正在使用OAuth2.0。单击“验证”按钮后,它会显示“验证”;Can';t加载URL";错误,google-apps-script,oauth-2.0,google-data-studio,Google Apps Script,Oauth 2.0,Google Data Studio,我正在使用以下身份验证方法: function getOAuthService() { return OAuth2.createService('exampleService') .setAuthorizationBaseUrl('https://www.facebook.com/dialog/oauth') .setTokenUrl('https://graph.facebook.com/v3.1/oauth/access_token') .setC
function getOAuthService() {
return OAuth2.createService('exampleService')
.setAuthorizationBaseUrl('https://www.facebook.com/dialog/oauth')
.setTokenUrl('https://graph.facebook.com/v3.1/oauth/access_token')
.setClientId(CLIENT_ID)
.setClientSecret(CLIENT_SECRET)
.setPropertyStore(PropertiesService.getUserProperties())
.setCallbackFunction('authCallback')
.setScope('ads_read');
};
function authCallback(request) {
var authorized = getOAuthService().handleCallback(request);
if (authorized) {
return HtmlService.createHtmlOutput('Success! You can close this tab.');
} else {
return HtmlService.createHtmlOutput('Denied. You can close this tab');
};
};
function get3PAuthorizationUrls() {
return getOAuthService().getAuthorizationUrl();
}
当我发布连接器并对其进行身份验证时,facebook auth弹出窗口会打开,但会出现错误:“无法加载URL:此URL的域不包含在应用程序的域中。”
我已经将gds url和脚本url放在应用程序的重定向url部分中,但似乎没有任何东西可以解决此错误
如果你能帮忙,我们将不胜感激。谢谢您有工作区帐户吗?