Hey Ken,
So I''ve got an app with iframes, but we''re using the fbml
fb:iframe tag
instead. To keep the pages distinct from app pages, I''m using the
format of iframe, so:
home_url(:format => :iframe)
make a link to:
/home.iframe
which points to the template;
app/view/home/index.iframe.erb
so now I can have normal HTML templates, and iframe ones. They use the
same controllers so you don''t need to repeat the biz logic.
Then you can rely on the fbml page that wraps your app to ensure the
application is added (and the first iframe hit will have params to build
a facebook sesssion). Not quite as powerful as a real iframe app for
facebook, but maybe you can use fbml and only fall back to iframe where
needed.
Good luck!
--
Matthew Beale :: 607 227 0871
Resume & Portfolio @ http://madhatted.com
On Fri, 2008-11-14 at 00:33 -0500, Ken Schroeder wrote:> Anyone have any good ideas on how to use
> ensure_authenticated_to_facebook before_filters in a canvas iframe
> application that also has external interface? I had been checking
> controller.format == "fbml" in an fbml canvas app but looking at
> perhaps migrating to full iframe and having some challenges figuring
> out authenitcation. Would appreciate if anyone knows of any resources
> haven''t found to much via google that I could apply via ruby on
rails.
>
> Thanks --ken s.
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk