Got origin_mismatch error in Google+ share api

后端 未结 16 821
醉梦人生
醉梦人生 2020-12-03 07:04

I want to share some dynamic content on google+. For this I checked it https://developers.google.com/+/web/share/interactive#rendering_the_button_with_javascript

<         


        
相关标签:
16条回答
  • 2020-12-03 07:39

    I did a stupid thing which took a few minutes to resolve, so I thought I would post a warning in case somebody else falls in this trap.

    In the console, when origins are displayed, 'Redirect URIs' come above 'Javascript origins'. When you open the edit pane, it's the other way around, so if you are not paying attention, you could paste your origins in the Redirect URIs field and ....

    0 讨论(0)
  • 2020-12-03 07:39

    You must read the developer guide here

    https://developers.google.com/analytics/devguides/reporting/embed/v1/devguide
    

    Good luck !

    0 讨论(0)
  • 2020-12-03 07:46

    Please check the origin url set in google console for you WEB application/Android

    and check the http or https because your site does not work on https (in general site).

    0 讨论(0)
  • 2020-12-03 07:47

    My default javascript origins is https://www , my website does not support https:// , I included http://www. http:// https://www. and https:// , it works.

    0 讨论(0)
  • 2020-12-03 07:47

    Log out from all google services from your browser.

    0 讨论(0)
  • 2020-12-03 07:48

    Just a little addition to Lee's answer: listing both the www.whatever.ext and whatever.ext forms of your URL in JavaScript origins may get rid of the error. That's what did the trick for my app.

    0 讨论(0)
提交回复
热议问题