Hi Experts,

I am trying to POST on google plus wall from my django application.I am 
able to get the google share pop up .But Once I click the share Button its 
not posting on my page.

Here is what I did.

Settings.py file:
--------------------
GOOGLE_OAUTH2_CLIENT_ID = "XXXXXXXXX-YYYYYYYYYY.apps.googleusercontent.com" 

publish.html:
-----------------

<div id="sharePost">
                                <button type="button" id="{{ project.id }}" 
class="btn btn-info"
                                  onclick='publish_project(id);'>
                                    publish
                                </button>
 </div>

{% block google_script %}
    <script >
        window.___gcfg = {
        lang: 'en',
        parsetags: 'onload',
        isSignedOut: true
        };
    </script>
    <script src="https://apis.google.com/js/platform.js"; async 
defer></script>
{% endblock %}

{% block share %}

<script>
  var options = {
    contenturl: 'https://localhost:8000',
    clientid: 'XXXXXXXXXXXXX-YYYYYYYYYYYY.apps.googleusercontent.com',
    cookiepolicy: 'single_host_origin',
    prefilltext: 'New project is added',
    calltoactionurl : 'https://plus.google.com'    
  };
  // Call the render method when appropriate within your app to display
  // the button.
  var gapi = gapi.interactivepost.render('sharePost', options);
  console.log(gapi);
</script>
{% endblock %}

{% block google_style %}
    <style>
        iframe[src^="https://apis.google.com/u/0/_/widget/oauthflow/toast";] 
{
            display: none;
        }
    </style>
{% endblock %}


Can anyone Please help me with this

Thanks,
Karthik

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f8ed996d-4d2a-4e95-b984-b1611527cf59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to