Re: [darktable-devel] darktable facebook app

2015-01-28 Thread Marcello Perathoner
On 01/28/2015 07:30 PM, Pierre Lamot wrote: > Sorry, my bad, they are actually modifying the navigator URL with a bit of JS > >document.domain = 'facebook.com'; >if (window == top) { >setTimeout(function() { > document.getElementById("warning").style.display = "block";

Re: [darktable-devel] darktable facebook app

2015-01-28 Thread Pierre Lamot
Sorry, my bad, they are actually modifying the navigator URL with a bit of JS   document.domain = 'facebook.com';   if (window == top) {    setTimeout(function() {        document.getElementById("warning").style.display = "block";     }, 2000);    }    setTimeout(function() { 

Re: [darktable-devel] darktable facebook app

2015-01-28 Thread Pierre Lamot
they do the redirect with a HTTP redirect (302), there is no javascript, but I'm not sure I really get what you mean  -- Pierre Lamot port: 06.84.87.10.97 pierre.la...@yahoo.fr Le Mercredi 28 janvier 2015 18h54, Jose Carlos Garcia Sogo a écrit : Don't they push any JavaScript in

Re: [darktable-devel] darktable facebook app

2015-01-28 Thread Jose Carlos Garcia Sogo
Don't they push any JavaScript in that case as they do when you redirect to a facebook page? If this is like you say, then it will be quite easy to do, as the process we are using should be working again. Thanks! On Wed, Jan 28, 2015 at 5:20 PM, Marcello Perathoner wrote: > > Redirecting to loc

Re: [darktable-devel] darktable facebook app

2015-01-28 Thread Marcello Perathoner
Redirecting to localhost works. I have just checked with one of my FB apps. In your FB app page go to: settings | advanced and add "http://localhost/darktable_fb_oauth/"; to the field "Valid OAuth redirect URIs". Then use "http://localhost/darktable_fb_oauth/"; as redirect_uri in your oauth

Re: [darktable-devel] darktable facebook app

2015-01-28 Thread Pedro Côrte-Real
On Wed, Jan 28, 2015 at 12:14 AM, Pierre Lamot wrote: > - you *don't* enter your password within dartable, you ask for a token > with a certain valididy over time, wich is given to by facebook Yes you *do*. By launching a webkit session embedded inside darktable and asking for permissions the u

Re: [darktable-devel] darktable facebook app

2015-01-27 Thread Pierre Lamot
> you can get a FB access token just by emulating what a > browser would do. A few https calls and a bit of xml parsing, no more. erf, I don't know if you have already one of theses oauth services (fb or anotherthing), but here is a few things:  - you *don't* enter your password within dartable

Re: [darktable-devel] darktable facebook app

2015-01-27 Thread Pedro Côrte-Real
On Tue, Jan 27, 2015 at 5:53 PM, Marcello Perathoner wrote: > If you find it acceptable that the user enters her FB password in > darktable, you can get a FB access token just by emulating what a > browser would do. A few https calls and a bit of xml parsing, no more. Right, that's exactly why em

Re: [darktable-devel] darktable facebook app

2015-01-27 Thread Marcello Perathoner
On 01/27/2015 02:01 PM, Pierre Lamot wrote: > Hi, i seems that I can't add "darktable" as administrator of the > account as it isn't a real fb user. Could you give me your facebook > account or id or better the output of > this:https://developers.facebook.com/tools/explorer?method=GET&path=me%3Ffi

Re: [darktable-devel] darktable facebook app

2015-01-27 Thread Jose Carlos Garcia Sogo
On Tue, Jan 27, 2015 at 2:01 PM, Pierre Lamot wrote: > Hi, i seems that I can't add "darktable" as administrator of the account > as it isn't a real fb user. Could you give me your facebook account or id > or better the output of this: > > https://developers.facebook.com/tools/explorer?method=GE

Re: [darktable-devel] darktable facebook app

2015-01-27 Thread Pierre Lamot
Hi, i seems that I can't add "darktable"  as administrator of the account as it isn't a real fb user. Could you give me your facebook account or id or better the output of this:https://developers.facebook.com/tools/explorer?method=GET&path=me%3Ffields%3Did%2Cname&version=v2.2&; for the integrat

[darktable-devel] darktable facebook app

2015-01-27 Thread Jose Carlos Garcia Sogo
Good morning Pierre, I would like to ask you to transfer the darktable app to darktable page (if possible) or to me. We are wroking on trying to make facebook exporter work again, after the changes Facebook has introduced in the page that returns the auth token. Or we need to add webkit support to