Coder Social home page Coder Social logo

googlearchive / gplus-quickstart-javascript Goto Github PK

View Code? Open in Web Editor NEW
92.0 21.0 111.0 26 KB

This quick-start app is built in JavaScript and lets you get started with the Google+ platform in a few minutes.

Home Page: https://developers.google.com/+/quickstart/javascript

HTML 100.00%

gplus-quickstart-javascript's Introduction

gplus-quickstart-javascript's People

Contributors

cartland avatar claywilkinson avatar frank-carnovale avatar gguuss avatar lefters avatar samtstern avatar scarygami avatar silvolu avatar vivekkiran avatar xbazilio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gplus-quickstart-javascript's Issues

g-signin2 broken with IE11

This sample, and apparently anything else using g-signin2/auth2 are broken with IE11. You get the account selection/scope confirmation popup, but after authentication, nothing. The console logs a SCRIPT5: Access is Denied error.

g-signin2 broken on EDGE (inside LAN)

I had been commenting on this inside a related ticket that is now "closed," but am still seeing the issue and wanted to give it its own thread

Specifically, g-signin2 fails only on Edge (IE11 DOES work) and only when computers on our LAN attempt to sign into our site at help.swcsd.us. Signing in using Edge works as expected -- even from the same devices -- when browsing the site from outside our LAN.

Our site is hosted on a server inside our LAN, but accessed via a public URL.

Signing in using IE, Chrome, Firefox, or Safari works as expected no matter whether the user is signing in on our LAN or not.

Here's a video demonstrating the problem: https://youtu.be/zBz1OGzHQBA

Any ideas?

gapi.client.plus.moments.insert return 400

hi. i'd like to test moments.insert api. so i was add moment function below to helper object. but i couldn't get result what i want.

i had called two type moment open api below. first, 'gapi.client.plus.moments.insert' [1] wasn't works but second style, gapi.client.request[2] was works. please let me know what is different or what am i missed.

moment: function(){
  var moment  = {
    'type':'https://schemas.google.com/AddActivity',
    'target':{
      'url': 'https://developers.google.com/+/plugins/snippet/examples/thing'
    }
  };

  var request = gapi.client.plus.moments.insert({
    'userId': 'me',
    'collection': 'vault',
    'body': moment
  });

  request.execute( function(mement) {
    console.log(mement);
  });

  // using gapi.client.request
  var args = {
    'path': '/plus/v1/people/me/moments/vault',
    'method': 'POST',
    'body': JSON.stringify(moment),
    'callback': function(response) {
      console.log(response);
    }
  };

  gapi.client.request(args);
}

thanks

Does not work on Safari

Worked on chrome. But does not work on Safari 9.0.3(11601.4.4) on OS X El Capitan
After clicked Sign in button, consent screen pops out. Then I clicked Allow, the consent is dismissed but nothing happened.

InPrivate failure on EDGE / IE 11

Upon loading https://gusclass.com/demos/button2/min.html in an InPrivate window, EDGE logs:

SCRIPT5007: Unable to get property 'open' of undefined or null reference
2552014555-idpiframe.js (53,13)

Javascript processing stops and no authentication window is displayed.

Microsoft Edge 38.14393.0.0
Microsoft EdgeHTML 14.14393

The exact same error is reported in IE 11, also using an InPrivate window:

SCRIPT5007: Unable to get property 'open' of undefined or null reference
2552014555-idpiframe.js (53,13)

Version: 11.576.14393.0
Update Version: 11.0.38

Both browsers work correctly when not using InPrivate.

Google Sign In Issue

I have written the following code to integrate the Google Sign In.
`<%@ Page Title="login" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<asp:Content ID="Header" ContentPlaceHolderID="headContentPlaceHolder" Runat="Server">

<script type="text/javascript">
(function () {
var po = document.createElement('script');
po.type = 'text/javascript'; po.async = true;
po.src = 'https://plus.google.com/js/client:plusone.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
})();
</script>
</asp:Content>
<asp:Content ID="Body" ContentPlaceHolderID="BodyContentPlaceHolder" Runat="Server">


sign in





sign in to place your order!







sign in


Or choose from the following sign in methods.

Twitter
Facebook
<%--Google+--%>
<%--
--%>


<%--<div id="gConnect">
    <button class="g-signin"
        data-scope="https://www.googleapis.com/auth/plus.login  https://www.googleapis.com/auth/userinfo.email "
        data-requestvisibleactions="http://schemas.google.com/AddActivity"
        data-clientid="538471399363-nbfgv00mksir2cnh2fi4vfld8nfqhuv3.apps.googleusercontent.com"
        data-accesstype="offline"
        data-callback="onSignInCallback"
        data-theme="dark"
        data-cookiepolicy="single_host_origin">
    </button>
</div>--%>
<script type="text/javascript">
    function onSignInCallback(authResult) {
        if (authResult['access_token']) {
            var loc = '/?accessToken=' + authResult['access_token'];
            window.location.href = loc;
        }
        //var str = JSON.stringify(authResult);alert(str);
    }
</script>

</asp:Content>`

It's not working in IE but working in Chrome.
Request got stuck on below url while in IE after after entering credentials.

https://accounts.google.com/o/oauth2/auth?client_id=538471399363-nbfgv00mksir2cnh2fi4vfld8nfqhuv3.apps.googleusercontent.com&redirect_uri=postmessage&response_type=code%20token%20id_token%20gsession&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.login%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&access_type=offline&request_visible_actions=http%3A%2F%2Fschemas.google.com%2FAddActivity&cookie_policy=single_host_origin&include_granted_scopes=true&proxy=oauth2relay1966652252&origin=http%3A%2F%2Flocalhost%3A11761&gsiwebsdk=1&state=1078229923%7C0.022402776350047264&&e=3100077&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_GB.gesYOH10IyQ.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAGLTcCPGlvlHVANs8R14d_NyG-YXq_5opA

work as a local file

Running a local webserver is an absurd requirement for something as trivial.
This demo should easily work as a locally saved hta application, or even html file.
The js client library should not rely on postMessage between frames. Instead, use only http requests, no problems for hta, or forms targeting an iframe for post, jsonp for fetch results to enable even plain html to work.

Blank page inside a WebView

The page works perfectly on desktop but when I try to login inside a WebView on iOS (e.g. a link shared on Messenger) after clicking the "Allow" button, I just see a blank page.
We found the issue on our website and we thought it was related to our implementation but I'm experiencing the same problem with this sample page.
Can someone please help me? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.