POSTING IN GOOGLE PLUS BUSINESS PAGE

14 views
Skip to first unread message

Karthik Reddy

unread,
Mar 23, 2016, 5:17:06 AM3/23/16
to Django users
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:
--------------------

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',
    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>
            display: none;
        }
    </style>
{% endblock %}


Can anyone Please help me with this

Thanks,
Karthik
Reply all
Reply to author
Forward
0 new messages