Ken Schroeder
2008-Aug-17 16:26 UTC
[Facebooker-talk] New App installs get redirected to callbackurl
We are getting ready to launch an app and notice when a new user adds the app for the first time they are getting redirected to the callback_url. Anyone else have similar problem or ideas? When the user goes to the canvas url after adding app it works fine. It must have something to do with session controller redirect but it was working fine and we haven''t changed any of that code. The post-add_url is set to canvas page url. Thanks --ken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080817/43c54b4b/attachment.html>
David Clements
2008-Aug-18 02:51 UTC
[Facebooker-talk] New App installs get redirected to callbackurl
Hey Ken, I am not seeing any issues. What is this session redirect you are talking about? Dave On Sun, Aug 17, 2008 at 10:26 AM, Ken Schroeder <schroeder.ken at gmail.com>wrote:> We are getting ready to launch an app and notice when a new user adds the > app for the first time they are getting redirected to the callback_url. > Anyone else have similar problem or ideas? When the user goes to the canvas > url after adding app it works fine. It must have something to do with > session controller redirect but it was working fine and we haven''t changed > any of that code. The post-add_url is set to canvas page url. Thanks --ken > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080817/189b03c2/attachment.html>
Ken Schroeder
2008-Aug-18 03:01 UTC
[Facebooker-talk] New App installs get redirected to callbackurl
I think I found the problem I''m still testing to verify. I think it was an issue with my before_filter order with a set_current_user filter and the ensure_app_installed, ensure_authenticated filters. On Sun, Aug 17, 2008 at 10:51 PM, David Clements <digidigo at gmail.com> wrote:> Hey Ken, > > I am not seeing any issues. What is this session redirect you are talking > about? > > Dave > > > On Sun, Aug 17, 2008 at 10:26 AM, Ken Schroeder <schroeder.ken at gmail.com>wrote: > >> We are getting ready to launch an app and notice when a new user adds the >> app for the first time they are getting redirected to the callback_url. >> Anyone else have similar problem or ideas? When the user goes to the canvas >> url after adding app it works fine. It must have something to do with >> session controller redirect but it was working fine and we haven''t changed >> any of that code. The post-add_url is set to canvas page url. Thanks --ken >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080817/848c2fd7/attachment.html>
Allen Walker
2008-Aug-18 05:41 UTC
[Facebooker-talk] New App installs get redirected to callbackurl
Yes I am having the same EXACT problem. Please let me know if and when you find a solution. Thanks! Ken Schroeder wrote:> I think I found the problem I''m still testing to verify. I think it > was an issue with my before_filter order with a set_current_user > filter and the ensure_app_installed, ensure_authenticated filters. > > On Sun, Aug 17, 2008 at 10:51 PM, David Clements <digidigo at gmail.com > <mailto:digidigo at gmail.com>> wrote: > > Hey Ken, > > I am not seeing any issues. What is this session redirect you are > talking about? > > Dave > > > On Sun, Aug 17, 2008 at 10:26 AM, Ken Schroeder > <schroeder.ken at gmail.com <mailto:schroeder.ken at gmail.com>> wrote: > > We are getting ready to launch an app and notice when a new > user adds the app for the first time they are getting > redirected to the callback_url. Anyone else have similar > problem or ideas? When the user goes to the canvas url after > adding app it works fine. It must have something to do with > session controller redirect but it was working fine and we > haven''t changed any of that code. The post-add_url is set to > canvas page url. Thanks --ken > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > <mailto:Facebooker-talk at rubyforge.org> > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >
Ken Schroeder
2008-Aug-18 05:46 UTC
[Facebooker-talk] New App installs get redirected to callbackurl
What I found to be the problem was a before_filter issue in my applications_controller that was out of order. I was trying to run some functions with current user before I made sure app was installed and user was authenticated to facebook. Changing the order of my before filters seems to have corrected the problem. On Mon, Aug 18, 2008 at 1:41 AM, Allen Walker <auswalk at gmail.com> wrote:> Yes I am having the same EXACT problem. Please let me know if and when you > find a solution. > > Thanks! > > Ken Schroeder wrote: > >> I think I found the problem I''m still testing to verify. I think it was an >> issue with my before_filter order with a set_current_user filter and the >> ensure_app_installed, ensure_authenticated filters. >> >> On Sun, Aug 17, 2008 at 10:51 PM, David Clements <digidigo at gmail.com<mailto: >> digidigo at gmail.com>> wrote: >> >> Hey Ken, >> >> I am not seeing any issues. What is this session redirect you are >> talking about? >> >> Dave >> >> >> On Sun, Aug 17, 2008 at 10:26 AM, Ken Schroeder >> <schroeder.ken at gmail.com <mailto:schroeder.ken at gmail.com>> wrote: >> >> We are getting ready to launch an app and notice when a new >> user adds the app for the first time they are getting >> redirected to the callback_url. Anyone else have similar >> problem or ideas? When the user goes to the canvas url after >> adding app it works fine. It must have something to do with >> session controller redirect but it was working fine and we >> haven''t changed any of that code. The post-add_url is set to >> canvas page url. Thanks --ken >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> <mailto:Facebooker-talk at rubyforge.org> >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080818/3d0184ae/attachment.html>
Allen Walker
2008-Aug-18 05:51 UTC
[Facebooker-talk] New App installs get redirected to callbackurl
could you be a little more specific. my application.rb: ensure_authenticated_to_facebook helper_attr :current_user attr_accessor :current_user before_filter :set_current_user thanks Ken Schroeder wrote:> What I found to be the problem was a before_filter issue in my > applications_controller that was out of order. I was trying to run > some functions with current user before I made sure app was installed > and user was authenticated to facebook. Changing the order of my > before filters seems to have corrected the problem. > > On Mon, Aug 18, 2008 at 1:41 AM, Allen Walker <auswalk at gmail.com > <mailto:auswalk at gmail.com>> wrote: > > Yes I am having the same EXACT problem. Please let me know if and > when you find a solution. > > Thanks! > > Ken Schroeder wrote: > > I think I found the problem I''m still testing to verify. I > think it was an issue with my before_filter order with a > set_current_user filter and the ensure_app_installed, > ensure_authenticated filters. > > On Sun, Aug 17, 2008 at 10:51 PM, David Clements > <digidigo at gmail.com <mailto:digidigo at gmail.com> > <mailto:digidigo at gmail.com <mailto:digidigo at gmail.com>>> wrote: > > Hey Ken, > > I am not seeing any issues. What is this session redirect > you are > talking about? > > Dave > > > On Sun, Aug 17, 2008 at 10:26 AM, Ken Schroeder > <schroeder.ken at gmail.com <mailto:schroeder.ken at gmail.com> > <mailto:schroeder.ken at gmail.com > <mailto:schroeder.ken at gmail.com>>> wrote: > > We are getting ready to launch an app and notice when a new > user adds the app for the first time they are getting > redirected to the callback_url. Anyone else have similar > problem or ideas? When the user goes to the canvas url > after > adding app it works fine. It must have something to do with > session controller redirect but it was working fine and we > haven''t changed any of that code. The post-add_url is > set to > canvas page url. Thanks --ken > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > <mailto:Facebooker-talk at rubyforge.org> > <mailto:Facebooker-talk at rubyforge.org > <mailto:Facebooker-talk at rubyforge.org>> > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > <mailto:Facebooker-talk at rubyforge.org> > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > >
Ken Schroeder
2008-Aug-18 12:13 UTC
[Facebooker-talk] New App installs get redirected to callbackurl
Yeah mine looks like this now helper_attr { |controller| controller.send(:current_user) if controller.params["format"] == "fbml" } attr_accessor { |controller| controller.send(:current_user) if controller.params["format"] == "fbml" } before_filter { |controller| controller.send(:ensure_application_is_installed_by_facebook_user) if controller.params["format"] == "fbml" } before_filter { |controller| controller.send(:ensure_authenticated_to_facebook) if controller.params["format"] == "fbml" } before_filter { |controller| controller.send(:set_current_user) if controller.params["format"] == "fbml" } The controller send stuff is there because we are supporting multiple formats. It was trying to set_current_user before app_installed which was throwing the error I believe. On Mon, Aug 18, 2008 at 1:51 AM, Allen Walker <auswalk at gmail.com> wrote:> could you be a little more specific. my application.rb: > > > ensure_authenticated_to_facebook > helper_attr :current_user > attr_accessor :current_user > before_filter :set_current_user > > > thanks > > Ken Schroeder wrote: > >> What I found to be the problem was a before_filter issue in my >> applications_controller that was out of order. I was trying to run some >> functions with current user before I made sure app was installed and user >> was authenticated to facebook. Changing the order of my before filters >> seems to have corrected the problem. >> >> On Mon, Aug 18, 2008 at 1:41 AM, Allen Walker <auswalk at gmail.com <mailto: >> auswalk at gmail.com>> wrote: >> >> Yes I am having the same EXACT problem. Please let me know if and >> when you find a solution. >> >> Thanks! >> >> Ken Schroeder wrote: >> >> I think I found the problem I''m still testing to verify. I >> think it was an issue with my before_filter order with a >> set_current_user filter and the ensure_app_installed, >> ensure_authenticated filters. >> >> On Sun, Aug 17, 2008 at 10:51 PM, David Clements >> <digidigo at gmail.com <mailto:digidigo at gmail.com> >> <mailto:digidigo at gmail.com <mailto:digidigo at gmail.com>>> wrote: >> >> Hey Ken, >> >> I am not seeing any issues. What is this session redirect >> you are >> talking about? >> >> Dave >> >> >> On Sun, Aug 17, 2008 at 10:26 AM, Ken Schroeder >> <schroeder.ken at gmail.com <mailto:schroeder.ken at gmail.com> >> <mailto:schroeder.ken at gmail.com >> <mailto:schroeder.ken at gmail.com>>> wrote: >> >> We are getting ready to launch an app and notice when a new >> user adds the app for the first time they are getting >> redirected to the callback_url. Anyone else have similar >> problem or ideas? When the user goes to the canvas url >> after >> adding app it works fine. It must have something to do with >> session controller redirect but it was working fine and we >> haven''t changed any of that code. The post-add_url is >> set to >> canvas page url. Thanks --ken >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> <mailto:Facebooker-talk at rubyforge.org> >> <mailto:Facebooker-talk at rubyforge.org >> <mailto:Facebooker-talk at rubyforge.org>> >> >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> <mailto:Facebooker-talk at rubyforge.org> >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080818/00fbd54b/attachment.html>