Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105441 > unrolled thread
| Started by | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| First post | 2016-03-21 21:14 -0700 |
| Last post | 2016-03-22 16:18 +1100 |
| Articles | 10 — 4 participants |
Back to article view | Back to comp.lang.python
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
| From | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| Date | 2016-03-21 21:14 -0700 |
| Subject | GAPI -- Sharing a post to Social Networking Pages from my App |
| Message-ID | <0a9353af-8179-4e33-ac36-fce8a3160465@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2016-03-22 04:23 +0000 |
| Message-ID | <mailman.482.1458620677.12893.python-list@python.org> |
| In reply to | #105441 |
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
[toc] | [prev] | [next] | [standalone]
| From | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| Date | 2016-03-22 03:00 -0700 |
| Message-ID | <3c02f0c7-6308-45da-8b36-1ca163ae71e9@googlegroups.com> |
| In reply to | #105442 |
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 %}
[toc] | [prev] | [next] | [standalone]
| From | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| Date | 2016-03-22 03:37 -0700 |
| Message-ID | <6588aa57-52b8-45e9-86e1-16647e4a89f7@googlegroups.com> |
| In reply to | #105442 |
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 The error I am getting is "Uncaught ReferenceError: gapi is not defined"
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve@pearwood.info> |
|---|---|
| Date | 2016-03-22 22:18 +1100 |
| Message-ID | <56f12a00$0$22142$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #105457 |
On Tue, 22 Mar 2016 09:37 pm, Karthik Reddy wrote: > The error I am getting is "Uncaught ReferenceError: gapi is not defined" Have you tried googling for it? That's a Javascript error: https://duckduckgo.com/html/?q=uncaught+reference+error+gapi+is+not+defined -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| Date | 2016-03-22 04:25 -0700 |
| Message-ID | <0302047b-19db-4aa2-84d0-fd4b1d593558@googlegroups.com> |
| In reply to | #105462 |
On Tuesday, March 22, 2016 at 4:48:37 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 22 Mar 2016 09:37 pm, Karthik Reddy wrote: > > > The error I am getting is "Uncaught ReferenceError: gapi is not defined" > > > Have you tried googling for it? That's a Javascript error: > > https://duckduckgo.com/html/?q=uncaught+reference+error+gapi+is+not+defined > > > > -- > Steven Yup I googled it I am not getting where I need to modify
[toc] | [prev] | [next] | [standalone]
| From | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| Date | 2016-03-22 04:44 -0700 |
| Message-ID | <2a63d7fb-74d4-4975-b073-25173db3c43c@googlegroups.com> |
| In reply to | #105464 |
On Tuesday, March 22, 2016 at 4:55:40 PM UTC+5:30, Karthik Reddy wrote: > On Tuesday, March 22, 2016 at 4:48:37 PM UTC+5:30, Steven D'Aprano wrote: > > On Tue, 22 Mar 2016 09:37 pm, Karthik Reddy wrote: > > > > > The error I am getting is "Uncaught ReferenceError: gapi is not defined" > > > > > > Have you tried googling for it? That's a Javascript error: > > > > https://duckduckgo.com/html/?q=uncaught+reference+error+gapi+is+not+defined > > > > > > > > -- > > Steven > Yup I googled it I am not getting where I need to modify Is my approach is correct or if not Is there any other approach Please help me with this.....
[toc] | [prev] | [next] | [standalone]
| From | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| Date | 2016-03-22 21:13 -0700 |
| Message-ID | <9e1a445f-79e4-4d44-af28-bc19be4e9555@googlegroups.com> |
| In reply to | #105462 |
On Tuesday, March 22, 2016 at 4:48:37 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 22 Mar 2016 09:37 pm, Karthik Reddy wrote: > > > The error I am getting is "Uncaught ReferenceError: gapi is not defined" > > > Have you tried googling for it? That's a Javascript error: > > https://duckduckgo.com/html/?q=uncaught+reference+error+gapi+is+not+defined > > > > -- > Steven Hi I resolved the error but I am not able to post my post . I tried https://developers.google.com/+/domains/authentication/#authorizing_requests_with_oauth_20 I am getting the below error When i copied the url. Error: invalid_client The OAuth client was not found. Even i gave Client_id correctly Thanks, Karthik
[toc] | [prev] | [next] | [standalone]
| From | Karthik Reddy <challakarthik@gmail.com> |
|---|---|
| Date | 2016-03-22 23:09 -0700 |
| Message-ID | <1ccb2d20-5862-440a-9713-298a738c80de@googlegroups.com> |
| In reply to | #105509 |
On Wednesday, March 23, 2016 at 9:43:21 AM UTC+5:30, Karthik Reddy wrote: > On Tuesday, March 22, 2016 at 4:48:37 PM UTC+5:30, Steven D'Aprano wrote: > > On Tue, 22 Mar 2016 09:37 pm, Karthik Reddy wrote: > > > > > The error I am getting is "Uncaught ReferenceError: gapi is not defined" > > > > > > Have you tried googling for it? That's a Javascript error: > > > > https://duckduckgo.com/html/?q=uncaught+reference+error+gapi+is+not+defined > > > > > > > > -- > > Steven > > Hi I resolved the error but I am not able to post my post . > I tried https://developers.google.com/+/domains/authentication/#authorizing_requests_with_oauth_20 > > I am getting the below error When i copied the url. > > Error: invalid_client > > The OAuth client was not found. > > Even i gave Client_id correctly > > Thanks, > Karthik Hi Steven I resolved this error also Now I am getting a pop up for google sharing but If click on share button its not sharing.Any help please
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2016-03-22 16:18 +1100 |
| Message-ID | <56f0d58d$0$11109$c3e8da3@news.astraweb.com> |
| In reply to | #105441 |
On Tuesday 22 March 2016 15: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. Certainly. Follow the instructions here for more help: http://www.sscce.org/ It's written for Java programmers, but it applies to everyone. -- Steve
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web