Javascript &引用;您请求的页面无效";当尝试登录谷歌时..用于导入Gmail联系人

Javascript &引用;您请求的页面无效";当尝试登录谷歌时..用于导入Gmail联系人,javascript,Javascript,我在head中添加外部脚本 身体部位: google.load("gdata", "1.s"); google.setOnLoadCallback(function (){ if(window.location.hash=="") { if(!checkLogin()){ logMeIn(); } else { var feedUrl = "https:

我在head中添加外部脚本 身体部位:

    google.load("gdata", "1.s");
    google.setOnLoadCallback(function (){
        if(window.location.hash=="") {
            if(!checkLogin()){
                logMeIn();
            } else {
                var feedUrl = "https://www.google.com/m8/feeds/contacts/default/full";
                query = new google.gdata.contacts.ContactQuery(feedUrl);
                query.setMaxResults(5000);
                myService = new google.gdata.contacts.ContactsService('exampleCo-exampleApp-1.0');
                myService.getContactFeed(query, function(result) {
                        document.cookie="g314-scope-0=";
                            window.opener.parseGmailContacts(result.feed.entry);
                    close();
                    }, function(e){
                        alert(e.cause ? e.cause.statusText : e.message);
                });
            }
        }
    });
    function logMeIn() {
        scope = "https://www.google.com/m8/feeds";
        var token = google.accounts.user.login(scope);
    }
    function logMeOut() {
        google.accounts.user.logout();
    }
    function checkLogin(){
        scope = "https://www.google.com/m8/feeds/";
        var token = google.accounts.user.checkLogin(scope);
        return token;
    }
页面打开后,将转到 而且它,;显示您请求的页面无效。请帮忙