Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105456
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2016-03-22 03:00 -0700 |
| References | <0a9353af-8179-4e33-ac36-fce8a3160465@googlegroups.com> <mailman.482.1458620677.12893.python-list@python.org> |
| Message-ID | <3c02f0c7-6308-45da-8b36-1ca163ae71e9@googlegroups.com> (permalink) |
| Subject | Re: GAPI -- Sharing a post to Social Networking Pages from my App |
| From | Karthik Reddy <challakarthik@gmail.com> |
On Tuesday, March 22, 2016 at 9:54:53 AM UTC+5:30, Mark Lawrence wrote:
> On 22/03/2016 04:14, Karthik Reddy wrote:
> > Hi Experts,
> >
> > I am trying to post on facebook and google plus page from my application. I am using facebook-sdk an d I am able to post using local machine but I am not able to post from dev server.
> >
> > Can Anyone Please help me on this.
> >
> > Thanks,
> > Karthik
> >
>
> Please state your OS and Python version, the code that you've tried and
> exactly what went wrong, including the full traceback if there is one.
>
> --
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
>
> Mark Lawrence
Hi Lawrence Thank you for your quick reply .I am using Ubuntu 14.04 and python 2.7.6 version.
In Template I have written
<button type="button" id="{{ project.id }}" class="btn btn-info"
onclick='publish_project(id);'>
publish
</button>
{% block google_script %}
<script >
window.___gcfg = {
lang: 'en',
parsetags: 'onload',
isSignedOut: true
};
// var sour = document.getElementById("1");
// // console.log(sour)
// var idd=document.getElementById("1").id;
// console.log(idd)
function(){ window.open = $("#sharePost").click(); };
</script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
{% endblock %}
{% block share %}
<script>
var options = {
contenturl: 'http://localhost:8000',
clientid: 'XXXXXXXXXXXXX.apps.googleusercontent.com',
cookiepolicy: 'single_host_origin',
prefilltext: 'New project is added',
calltoactionurl : 'https://plus.google.com/u/0/112729364286841783635/posts'
};
// Call the render method when appropriate within your app to display
// the button.
gapi.interactivepost.render('sharePost', options);
console.log(new Error().stack);
</script>
{% endblock %}
{% block google_style %}
<style>
iframe[src^="https://apis.google.com/u/0/_/widget/oauthflow/toast"] {
display: none;
}
</style>
{% endblock %}
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
GAPI -- Sharing a post to Social Networking Pages from my App Karthik Reddy <challakarthik@gmail.com> - 2016-03-21 21:14 -0700
Re: GAPI -- Sharing a post to Social Networking Pages from my App Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-22 04:23 +0000
Re: GAPI -- Sharing a post to Social Networking Pages from my App Karthik Reddy <challakarthik@gmail.com> - 2016-03-22 03:00 -0700
Re: GAPI -- Sharing a post to Social Networking Pages from my App Karthik Reddy <challakarthik@gmail.com> - 2016-03-22 03:37 -0700
Re: GAPI -- Sharing a post to Social Networking Pages from my App Steven D'Aprano <steve@pearwood.info> - 2016-03-22 22:18 +1100
Re: GAPI -- Sharing a post to Social Networking Pages from my App Karthik Reddy <challakarthik@gmail.com> - 2016-03-22 04:25 -0700
Re: GAPI -- Sharing a post to Social Networking Pages from my App Karthik Reddy <challakarthik@gmail.com> - 2016-03-22 04:44 -0700
Re: GAPI -- Sharing a post to Social Networking Pages from my App Karthik Reddy <challakarthik@gmail.com> - 2016-03-22 21:13 -0700
Re: GAPI -- Sharing a post to Social Networking Pages from my App Karthik Reddy <challakarthik@gmail.com> - 2016-03-22 23:09 -0700
Re: GAPI -- Sharing a post to Social Networking Pages from my App Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-03-22 16:18 +1100
csiph-web