Torsten2217 / google-plus-platform

Automatically exported from code.google.com/p/google-plus-platform
0 stars 0 forks source link

data-recipients not working in interactive posts #1125

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How does the product behavior differ from your expectations?
Using the interactive post JS code on chrome, safari and mozilla.

If I supply a recipient or data-recepient value the person (their id's) is not 
pre-filled when the interactive post is displayed, me showing public with as 
recipient.

https://drive.google.com/open?id=0BxhxZ7t4dmT8OWppSW9hQkxCTkE&authuser=0

https://drive.google.com/open?id=0BxhxZ7t4dmT8OFZFYVdxLXZMQlU&authuser=0

https://drive.google.com/open?id=0BxhxZ7t4dmT8d201a1F4QjV4c0U&authuser=0 

Describe, step-by-step, how to reproduce this issue.

- I have my list of friends google +

  gapi.client.load('plus', 'v1', function() {
    var request = gapi.client.plus.people.list({
      'userId': 'me', 'collection':'visible'
    });
    request.execute(function(resp) {
      cb(resp); //list de friends
    });
  });

I make selection of friends, to whom invitations are sent with interactive post.

When clicking to button 'Send Invitations' (post interactive) , the container 
of recipient is incorrect,  me showing public with as recipient.

JAVASCRIPT 
============= 
      (function() {
        var po = document.createElement('script');
        po.type = 'text/javascript'; po.async = true;
        po.src = '//plus.google.com/js/client:plusone.js?onload=onPlusOneLoadedNL';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(po, s);
      })();

var MY_SCOPES = [ 
    'https://www.googleapis.com/auth/plus.login', 
    'https://www.google.com/m8/feeds/', 
    "https://www.googleapis.com/auth/plus.circles.read", 
    "https://www.googleapis.com/auth/userinfo.email", 
    ], 

function onPlusOneLoaded(){
  var url=WSY.urlInviteGoogle;
  var friends=WSY.recipientesFriends;
  var msgGoogle=WSY.messageGoogle;
  var params = {
    clientid: MY_CLIENTIDG,
    cookiepolicy: 'single_host_origin',
    scope: MY_SCOPESG.join(' '),
    contenturl: url,
    calltoactionlabel:"INVITE",
    calltoactionurl: url,
    recipients:'103127615938920254845',
    prefilltext: 'Test Message ',
    onshare: function(response){
      console.log(response);        
    } 
  };

  gapi.interactivepost.render('googleBtnShare', params);
}

  HTML 
====== 
      <div id="googleBtnShare" style="font-size: 15px;  width: 172px;"> 
        <span class="iconGmail"></span> 
        <span class="buttonTextGmail" style="padding-right:6px;">Tell me Friends</span> 
      </div> 

Describe the impact of this bug
 - We can't share our content privately with our friends.

When did this bug start happening?
It's getting use since December 2014.
This bug was noted on March 13, 2015.

When does the bug occur?
This bug occurs when making invitations with interactive posts.

Describe any workarounds you have found
So far, I don't find any interim solutions or workarounds.

Original issue reported on code.google.com by jbalvin....@gmail.com on 21 Apr 2015 at 11:38

GoogleCodeExporter commented 9 years ago
Start Happening: This bug was noted on Abril 13, 2015, no March.

Original comment by jbalvin....@gmail.com on 21 Apr 2015 at 11:50

GoogleCodeExporter commented 9 years ago
Library is making a request at https://docs.google.com/picker endpoint. Seems 
like it stopped working after google docs picker changes. It was planned to 
april 15. https://groups.google.com/forum/#!topic/google-picker-api/tOF_Z0ePK1M

But examples in docs still working.

Original comment by emelya1...@gmail.com on 26 May 2015 at 8:57

GoogleCodeExporter commented 9 years ago
The picker is a separate issue. 
https://code.google.com/p/google-plus-platform/issues/detail?id=718&q=type%3DDef
ect&sort=-stars&colspec=ID%20Type%20Status%20Component%20Owner%20Summary%20Stars

Original comment by sachagri...@gmail.com on 12 Jun 2015 at 5:52