Alan Larkin
2008-Dec-31 14:40 UTC
[Facebooker-talk] e_a_i_i_b_f_u halting and redirecting to canvas
Hi all, I''d appreciate a little help getting the ball rolling here ... I''m trying to develop an IFrame app. When I visit my canvas page it renders fine. It contains a link: <%= link_to ''Edit'', edit_team_url(1) %> If the user clicks that link they will need to have authorised the app so the TeamsController uses ensure_application_is_installed_by_facebook_user Now, if the app has not yet been authorised, the Facebook authorisation page appears, and after allowing the app, the user is redirected back to the canvas page (not forwarded on to the edit page as I would have liked). Further, if a user who has already authorised the app clicks the ''Edit'' link, Facebook loads again inside the IFrame (so I have Facebook within Facebook) and displays the canvas page. The logs show the before filter is halting and then there is a redirect back to the canvas: Processing TeamsController#edit (for XX.XX.XXX.XXX at 2008-12-31 14:22:31) [GET] Session ID: XXXXXXXXXXXXXXXXXXXXXXXXXXX Parameters: {"id"=>"1"} Redirected to http://www.facebook.com/install.php?api_key=XXXXXXXXXXXXXXX&v=1.0 Filter chain halted as [:ensure_application_is_installed_by_facebook_user] rendered_or_redirected. Completed in 0ms (DB: 0) | 302 Found [http://XXXXXXXXXXX/teams/1/edit] Processing CanvassesController#show (for XX.XX.XXX.XXX at 2008-12-31 14:22:33) [GET] Session ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Parameters: {"fb_sig_time"=>"1230733218.5856", "fb_sig_in_iframe"=>"1", "fb_sig_in_new_facebook"=>"1", "fb_sig"=>"XXXXXXXXXXXXXXXX", "fb_sig_locale"=>"en_GB", "fb_sig_session_key"=>"XXXXXXXXXXXXXXXXXX", "auth_token"=>"XXXXXXXXXXXXXXXXXXXXX", "fb_sig_expires"=>"1230822000", "fb_sig_added"=>"1", "fb_sig_api_key"=>"XXXXXXXXXXXXXXXXXXXXXXXXXXX", "fb_sig_profile_update_time"=>"1222028229", "fb_sig_user"=>"XXXXXXX", "fb_sig_ss"=>"XXXXXXXXXXXXXXXX"} Rendering template within layouts/application Rendering canvasses/show Completed in 17ms (View: 15, DB: 0) | 200 OK Perhaps I have just configured the app incorrectly? Anyone got a clue for me? Thanks, Alan. -- <a href="http://wikimediafoundation.org/wiki/Donate/en"><img border="0" alt="Wikipedia Affiliate Button" src="http://upload.wikimedia.org/wikipedia/foundation/5/58/2008_fundraiser_micro_button-en.png" /></a>
Alan Larkin
2009-Jan-02 00:51 UTC
[Facebooker-talk] e_a_i_i_b_f_u halting and redirecting to canvas
No its set to IFrame alright. Or at least it was ... this problem has forced me back into FBML. Bosco So wrote:> In the Facebook Developer app, did you configure your app as IFrame or > FBML? From your description, it seems like you have it set for FBML. > > > On Wed, Dec 31, 2008 at 6:40 AM, Alan Larkin <alan.larkin at gmail.com > <mailto:alan.larkin at gmail.com>> wrote: > > Hi all, > > I''d appreciate a little help getting the ball rolling here ... > > I''m trying to develop an IFrame app. When I visit my canvas page it > renders fine. It contains a link: > > <%= link_to ''Edit'', edit_team_url(1) %> > > If the user clicks that link they will need to have authorised the > app so the TeamsController uses > > ensure_application_is_installed_by_facebook_user > > Now, if the app has not yet been authorised, the Facebook > authorisation page appears, and after allowing the app, the user is > redirected back to the canvas page (not forwarded on to the edit > page as I would have liked). > > Further, if a user who has already authorised the app clicks the > ''Edit'' link, Facebook loads again inside the IFrame (so I have > Facebook within Facebook) and displays the canvas page. > > The logs show the before filter is halting and then there is a > redirect back to the canvas: > > Processing TeamsController#edit (for XX.XX.XXX.XXX at 2008-12-31 > 14:22:31) [GET] > Session ID: XXXXXXXXXXXXXXXXXXXXXXXXXXX > Parameters: {"id"=>"1"} > Redirected to > http://www.facebook.com/install.php?api_key=XXXXXXXXXXXXXXX&v=1.0 > <http://www.facebook.com/install.php?api_key=XXXXXXXXXXXXXXX&v=1.0> > Filter chain halted as > [:ensure_application_is_installed_by_facebook_user] > rendered_or_redirected. > Completed in 0ms (DB: 0) | 302 Found [http://XXXXXXXXXXX/teams/1/edit] > > > Processing CanvassesController#show (for XX.XX.XXX.XXX at 2008-12-31 > 14:22:33) [GET] > Session ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > Parameters: {"fb_sig_time"=>"1230733218.5856", > "fb_sig_in_iframe"=>"1", "fb_sig_in_new_facebook"=>"1", > "fb_sig"=>"XXXXXXXXXXXXXXXX", "fb_sig_locale"=>"en_GB", > "fb_sig_session_key"=>"XXXXXXXXXXXXXXXXXX", > "auth_token"=>"XXXXXXXXXXXXXXXXXXXXX", > "fb_sig_expires"=>"1230822000", "fb_sig_added"=>"1", > "fb_sig_api_key"=>"XXXXXXXXXXXXXXXXXXXXXXXXXXX", > "fb_sig_profile_update_time"=>"1222028229", > "fb_sig_user"=>"XXXXXXX", "fb_sig_ss"=>"XXXXXXXXXXXXXXXX"} > Rendering template within layouts/application > Rendering canvasses/show > Completed in 17ms (View: 15, DB: 0) | 200 OK > > Perhaps I have just configured the app incorrectly? Anyone got a > clue for me? > > Thanks, > Alan. > >-- <a href="http://wikimediafoundation.org/wiki/Donate/en"><img border="0" alt="Wikipedia Affiliate Button" src="http://upload.wikimedia.org/wikipedia/foundation/5/58/2008_fundraiser_micro_button-en.png" /></a>