Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script I';我一直在尝试为facebook创建一个社区连接器。我正在使用OAuth2.0。单击“验证”按钮后,它会显示“验证”;Can';t加载URL";错误_Google Apps Script_Oauth 2.0_Google Data Studio - Fatal编程技术网

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部分中,但似乎没有任何东西可以解决此错误


如果你能帮忙,我们将不胜感激。谢谢

您有工作区帐户吗?