Marco Durden
2008-Dec-04 05:24 UTC
[Facebooker-talk] parameter passing before install lost after install???
I was wondering if anyone else is having problems with passing query string parameters upon install. For example, in the book Developing Facebook Platform Applications with Rails, the books example adds params[:from_id] into an invitation, so when another person signs up from the invitation, you can track who invited who. And that would make your friend in your dojo. I was using something like this before and eveything was working fine, but now it seems like it is not working anymore. Is anyone having similar problems? Is this something facebook does not allow anymore? Your feedback is very helpful. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081203/983e81a6/attachment.html>
Mike Mangino
2008-Dec-04 14:28 UTC
[Facebooker-talk] parameter passing before install lost after install???
On Dec 4, 2008, at 12:24 AM, Marco Durden wrote:> I was wondering if anyone else is having problems with passing query > string parameters upon install. For example, in the book Developing > Facebook Platform Applications with Rails, the books example adds > params[:from_id] into an invitation, so when another person signs up > from the invitation, you can track who invited who. And that would > make your friend in your dojo. I was using something like this > before and eveything was working fine, but now it seems like it is > not working anymore. Is anyone having similar problems? Is this > something facebook does not allow anymore?I think this changed in recent versions of the platform. If you set up a post authorize redirect URL, you can use the next parameter to keep parameters. You can see how I do this in the screencasts on http://www.pragprog.com . The code is in the facebooker_authentication plugin on github. Mike> > > Your feedback is very helpful. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Marco Durden
2008-Dec-04 21:38 UTC
[Facebooker-talk] parameter passing before install lost after install???
I think I found out why its not working. I was using "ensure_application_is_installed_by_facebook_user" and my logs were saying "Filter chain halted as [:ensure_application_is_installed_by_facebook_user] rendered_or_redirected." Because I am using facebooker_authentication, I am using the before_filter :facebook_login_required. I also wanted to make sure that the application is installed by the facebook user in order for them to access my app. How could I use ensure_application_is_instaled_by_facebook_user without losing the parameters on install? Is there a fix that could be incorporated into facebooker that would allow for parameter passing with this before_filter? If I understand correctly, facebook_login_required only makes sure that a user is logged into facebook, not that the user has the application installed. I would like to make sure that the user has the application installed as well. Best On Thu, Dec 4, 2008 at 6:28 AM, Mike Mangino <mmangino at elevatedrails.com>wrote:> > On Dec 4, 2008, at 12:24 AM, Marco Durden wrote: > > I was wondering if anyone else is having problems with passing query >> string parameters upon install. For example, in the book Developing >> Facebook Platform Applications with Rails, the books example adds >> params[:from_id] into an invitation, so when another person signs up from >> the invitation, you can track who invited who. And that would make your >> friend in your dojo. I was using something like this before and eveything >> was working fine, but now it seems like it is not working anymore. Is >> anyone having similar problems? Is this something facebook does not allow >> anymore? >> > > I think this changed in recent versions of the platform. If you set up a > post authorize redirect URL, you can use the next parameter to keep > parameters. You can see how I do this in the screencasts on > http://www.pragprog.com. The code is in the facebooker_authentication > plugin on github. > > Mike > > >> >> Your feedback is very helpful. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081204/780e39ce/attachment.html>
Marco Durden
2008-Dec-04 21:43 UTC
[Facebooker-talk] parameter passing before install lost after install???
Here was my fiter chain that was making my parameters disappear. ensure_application_is_installed_by_facebook_user :except => ''tab'' before_filter :facebook_login_required, :except => "tab" Now if I reverse them: before_filter :facebook_login_required, :except => "tab" ensure_application_is_installed_by_facebook_user :except => ''tab'' Things work are working again. Is there a reason for this? On Thu, Dec 4, 2008 at 6:28 AM, Mike Mangino <mmangino at elevatedrails.com>wrote:> > On Dec 4, 2008, at 12:24 AM, Marco Durden wrote: > > I was wondering if anyone else is having problems with passing query >> string parameters upon install. For example, in the book Developing >> Facebook Platform Applications with Rails, the books example adds >> params[:from_id] into an invitation, so when another person signs up from >> the invitation, you can track who invited who. And that would make your >> friend in your dojo. I was using something like this before and eveything >> was working fine, but now it seems like it is not working anymore. Is >> anyone having similar problems? Is this something facebook does not allow >> anymore? >> > > I think this changed in recent versions of the platform. If you set up a > post authorize redirect URL, you can use the next parameter to keep > parameters. You can see how I do this in the screencasts on > http://www.pragprog.com. The code is in the facebooker_authentication > plugin on github. > > Mike > > >> >> Your feedback is very helpful. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081204/97b27081/attachment-0001.html>