[Developers] Acre 'Writing to Freebase' tutorial

Jason Douglas jason at metaweb.com
Sat Jan 24 07:15:47 UTC 2009


On Jan 23, 2009, at 6:38 PM, Jim Pick wrote:

> Hi,
>
> I'm trying out the OAuth support.
>
> So far, I tried the following:
>
>   http://freebaseapps.com/wiki/writing_to_freebase
>
> There seem to be some minor inconsistencies in the example.  I didn't
> want to edit the wiki directly, as I'm not 100% certain what is  
> correct.
>
> Here's what I have:
>
> http://acre.freebase.com/#app=/user/jpick/scratch- 
> oauth&file=change_quote
>
> I had to import the "account" script, as it doesn't seem to be  
> included
> at "/acre/account", as the wiki page suggests.

Are you sure?  The result of running the script is a redirect, so it's  
kind of hard to see, but it should be automatically there for any app  
(as are some other utilities like /acre/preview or /acre/oauth)


> Also, the example on the
> wiki page creates two different login urls,
> /acre/account/signin?onsucceed=$return_url and
> /account/signin?onsucceed=$env.request_url !

We made the account script available everywhere after I'd written the  
first pass of the document, so I'll update the wiki.  Any feedback on  
what's confusing or missing from that page would be welcome.


> I also noticed that returning from the signout url doesn't invalidate
> the cached document, so it doesn't appear that the user has logged  
> out.
>  A page refresh fixes that.

Yes,   We have found that our http caching headers are not set  
optimally.  The manual refresh should only be necessary the first sign  
in... after which it should update more automatically, but we should  
have the headers fixed in the next release (or we may even do a quick  
patch).

>
>
> Cheers,
>
>  - Jim
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers



More information about the Developers mailing list