Note that there are some explanatory texts on larger screens.

plurals
  1. POLaunching the Google Drive sharing dialog in an app. What should be the APP_ID value?
    primarykey
    data
    text
    <p>I'm following <a href="https://developers.google.com/drive/manage-sharing#launching_the_google_drive_sharing_dialog_in_your_app" rel="nofollow">this article</a>, trying to add a sharing dialog in a web app. </p> <p>I got the button working in opening the modal popup, but it just prints this error in the console:</p> <pre><code>Refused to display 'https://drive.google.com/share?id=SOME_LONG_ID&amp;foreignService=explorer&amp;shareService=explorer&amp;shareProtocolVersion=2&amp;command=init&amp;subapp=10&amp;popupWindowsEnabled=true&amp;shareUiType=default&amp;rand=1386925457304&amp;theme=2&amp;client=postMessage&amp;appId=MY_APP_ID&amp;embedOrigin=http%3A%2F%2Fmy_app.appspot.com' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. </code></pre> <p>And the modal itself just shows the message <strong>"Sorry, sharing is unavailable at this time. Please try again later."</strong></p> <p>For the checklist at the bottom of the article:</p> <ul> <li>The user is signed in to Google <strong>True</strong></li> <li>The user has installed your app <strong>False</strong> How do I ask them to install? </li> <li>The URL of the page that launches the dialog must have the same origin as the Open URL registered for the app. <strong>True</strong></li> </ul> <p>So I have 2 questions:</p> <ol> <li><p>How do I ask them to install my app? It's supposed to be a web app, where there's 1 button to select Drive files via the <a href="https://developers.google.com/picker/docs/" rel="nofollow">Picker API</a> (which is now working), and then another button which will sow this Drive sharing dialog to set the permissions of the selected files. There's no need for installation. Will it work for this setup?</p></li> <li><p>What should be the value for the <code>APP_ID</code>? I'm guessing it's the ID in the "Drive SDK" section of the Cloud Console? The console is so confusing and there's so many values for keys, ids, etc. that I have no idea which to use. <a href="http://i.imgur.com/Y48NARW.png" rel="nofollow">Here's a screenshot</a> of what I mean by the ID and what I'm trying to use.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload