Hi Roman -
> 2. If it's not possible, then how can I use RestFB for canvas
> applications ? Does RestFB provide login functionality using the old
> authentication protocol?
For the record, as of now there are no plans to add authentication/
authorization support to RestFB - it's up to your application to use
Facebook Connect to get access tokens etc.
There are a bunch of threads out there discussing problems people have
had using the OAuth scheme with Canvas apps - maybe this one will be
helpful for you (I am not an expert on Canvas apps so unfortunately I
don't think I'd be of much help):
http://stackoverflow.com/questions/2739153/facebook-canvas-iframe-app-authorizing-users-with-new-oauth-protocol
Good luck!
Thanks
Mark
On Aug 11, 10:58 am, Roman Gershman <
roma...@gmail.com> wrote:
> It does not work. The redirect url that my application is sending is:
https://graph.facebook.com/oauth/authorize?client_id=....&display=pag...
>
> Why redirection itself is sent using the following code:
>
> String out = "<html><script type=\"text/javascript\">\ntop.location.href =
> \"" + url
> + "\";\n</script></html>";
> resp.setHeader("Content-Type", "text/html");
> resp.getWriter().print(out);
> resp.flushBuffer();
>
> 2010/8/11 Christopher Östlund <
christopher.oestl...@gmail.com>
>
>
>
> > You need to set display to page, to get the whole facebook page included. I
> > think it's default set to popup, which is without the facebook header and
> > such.
>