From auswalk at gmail.com Fri Aug 1 00:29:34 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 31 Jul 2008 23:29:34 -0500 Subject: [Facebooker-talk] question about defining actions in controllers In-Reply-To: <4892850A.5070705@gmail.com> References: <4892832C.7030408@gmail.com> <4892850A.5070705@gmail.com> Message-ID: <4892912E.1080306@gmail.com> Ok apparently i need to read up on rails routing, i found out the problem. not an issue with facebooker. From mmangino at elevatedrails.com Fri Aug 1 09:56:46 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 1 Aug 2008 09:56:46 -0400 Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: <525807.14605.qm@web58711.mail.re1.yahoo.com> References: <525807.14605.qm@web58711.mail.re1.yahoo.com> Message-ID: This method makes sure requests are actually coming from Facebook. Without it, anybody could send requests to your application pretending to be from any user. Mike On Jul 31, 2008, at 11:27 PM, William Thomas wrote: > I am still having troubles with this exception. I ended up > commenting out the piece of code that throws the exception and > things work just fine after that... > > I have > before_filter :ensure_authenticated_to_facebook, :only => > [ :edit_facebook, :sync_facebook_friends] > > ...before rails even gets to my edit_facebook action the exception > is thrown. > > What is the intention of the verify_signature method? It does not > make sense to me outright > > ----- Original Message ---- > From: Xue Wei li > To: facebooker-talk at rubyforge.org > Sent: Thursday, July 24, 2008 1:11:16 PM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > Thanks Richard - this is a great help =) > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan > wrote: > it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so > far > > I put my first app on RubyForge. It's pretty bloated, a stupid > idea, and very poorly done, but it works (or at least did at one > point). If you're desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the install/ > uninstall code in my base controller. > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I'm using :ensure_authenticated_to_facebook since I don't have an > application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > > > I was thinking that and I could be wrong but you know I looked at > example > after example and I haven't seen anyone do an :exclude for the > ensure_facebook_application_is_installed with exception for a > 'remove_app' > method. Am I wrong? What if I wanted to access show facebook data on > the > first page? > > from Dav Yaginuma > to Xue Wei li > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in > the FB > app page needs to go to a controller action that skips the > ensure_facebook_application_is_installed filter. > > > > _______________________________________________ > Facebooker-talk mailing list > 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 -- Mike Mangino http://www.elevatedrails.com From wthomas989 at yahoo.com Fri Aug 1 12:15:25 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Fri, 1 Aug 2008 09:15:25 -0700 (PDT) Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application Message-ID: <140509.81315.qm@web58701.mail.re1.yahoo.com> I have been digging a bit more and I think that I know why this is happening. Since I am only asking Facebooker to authenticate my current session with Facebook, I am not getting the expected fb_sig_* parameters from my callback URL. Instead I only get auth_token and therefore the verify_signature method fails. Apparently Facebooker expects ensure_application_is_installed_by_facebook_user before anything happens, and the callback from that provides fb_sig_* stuff. I believe I have 3 options: 1) Continue without the signature verification 2) Create a canvas page in my rails app to handle this and leave it blank or make it link back to my site. 3) Use fb connect - where is this code available? Thoughts? ----- Original Message ---- From: Mike Mangino To: William Thomas Cc: facebooker-talk at rubyforge.org Sent: Friday, August 1, 2008 8:56:46 AM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application This method makes sure requests are actually coming from Facebook. Without it, anybody could send requests to your application pretending to be from any user. Mike On Jul 31, 2008, at 11:27 PM, William Thomas wrote: > I am still having troubles with this exception. I ended up > commenting out the piece of code that throws the exception and > things work just fine after that... > > I have > before_filter :ensure_authenticated_to_facebook, :only => > [ :edit_facebook, :sync_facebook_friends] > > ...before rails even gets to my edit_facebook action the exception > is thrown. > > What is the intention of the verify_signature method? It does not > make sense to me outright > > ----- Original Message ---- > From: Xue Wei li > To: facebooker-talk at rubyforge.org > Sent: Thursday, July 24, 2008 1:11:16 PM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > Thanks Richard - this is a great help =) > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan > wrote: > it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so > far > > I put my first app on RubyForge. It's pretty bloated, a stupid > idea, and very poorly done, but it works (or at least did at one > point). If you're desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the install/ > uninstall code in my base controller. > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I'm using :ensure_authenticated_to_facebook since I don't have an > application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > > > I was thinking that and I could be wrong but you know I looked at > example > after example and I haven't seen anyone do an :exclude for the > ensure_facebook_application_is_installed with exception for a > 'remove_app' > method. Am I wrong? What if I wanted to access show facebook data on > the > first page? > > from Dav Yaginuma > to Xue Wei li > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in > the FB > app page needs to go to a controller action that skips the > ensure_facebook_application_is_installed filter. > > > > _______________________________________________ > Facebooker-talk mailing list > 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 -- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Fri Aug 1 12:20:39 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 1 Aug 2008 12:20:39 -0400 Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: <140509.81315.qm@web58701.mail.re1.yahoo.com> References: <140509.81315.qm@web58701.mail.re1.yahoo.com> Message-ID: What kind of application is this? Facebook should always send the fb_sig parameters, right? Is this an iframe application? Mike On Aug 1, 2008, at 12:15 PM, William Thomas wrote: > I have been digging a bit more and I think that I know why this is > happening. Since I am only asking Facebooker to authenticate my > current session with Facebook, I am not getting the expected > fb_sig_* parameters from my callback URL. Instead I only get > auth_token and therefore the verify_signature method fails. > > Apparently Facebooker expects > ensure_application_is_installed_by_facebook_user before anything > happens, and the callback from that provides fb_sig_* stuff. > > I believe I have 3 options: > 1) Continue without the signature verification > 2) Create a canvas page in my rails app to handle this and leave it > blank or make it link back to my site. > 3) Use fb connect - where is this code available? > > Thoughts? > > > ----- Original Message ---- > From: Mike Mangino > To: William Thomas > Cc: facebooker-talk at rubyforge.org > Sent: Friday, August 1, 2008 8:56:46 AM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > This method makes sure requests are actually coming from Facebook. > > Without it, anybody could send requests to your application pretending > to be from any user. > > Mike > > On Jul 31, 2008, at 11:27 PM, William Thomas wrote: > > > I am still having troubles with this exception. I ended up > > commenting out the piece of code that throws the exception and > > things work just fine after that... > > > > I have > > before_filter :ensure_authenticated_to_facebook, :only => > > [ :edit_facebook, :sync_facebook_friends] > > > > ...before rails even gets to my edit_facebook action the exception > > is thrown. > > > > What is the intention of the verify_signature method? It does not > > make sense to me outright > > > > ----- Original Message ---- > > From: Xue Wei li > > To: facebooker-talk at rubyforge.org > > Sent: Thursday, July 24, 2008 1:11:16 PM > > Subject: Re: [Facebooker-talk] > > Facebooker::Session::IncorrectSignature exception when adding > > application > > > > Thanks Richard - this is a great help =) > > > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan > > wrote: > > it was the 1st thing I read... but in my case I need to see the > whole > > picture (a zipped sample app that would help) - snippets only go so > > far > > > > I put my first app on RubyForge. It's pretty bloated, a stupid > > idea, and very poorly done, but it works (or at least did at one > > point). If you're desperate do a, > > svn checkout svn://rubyforge.org/var/svn/couple-rater > > Look at trunk/app/controller/application.rb. I put all the install/ > > uninstall code in my base controller. > > > > > > > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > > > I'm using :ensure_authenticated_to_facebook since I don't have an > > application but only want access to the data. > > > > > > > > ----- Original Message ---- > > From: Xue Wei li > > To: facebooker-talk at rubyforge.org > > Sent: Monday, July 21, 2008 10:05:17 PM > > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature > > exception when adding application > > > > > > I was thinking that and I could be wrong but you know I looked at > > example > > after example and I haven't seen anyone do an :exclude for the > > ensure_facebook_application_is_installed with exception for a > > 'remove_app' > > method. Am I wrong? What if I wanted to access show facebook data on > > the > > first page? > > > > from Dav Yaginuma > > to Xue Wei li > > date Mon, Jul 21, 2008 at 11:21 AM > > subject Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature > > exception when adding application > > mailed-by gmail.com > > > > hide details 11:21 AM (8 hours ago) Reply > > > > > > > > I think I saw this, and the problem was the post-add URL defined in > > the FB > > app page needs to go to a controller action that skips the > > ensure_facebook_application_is_installed filter. > > > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > 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 > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Fri Aug 1 14:21:11 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 1 Aug 2008 12:21:11 -0600 Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: References: <140509.81315.qm@web58701.mail.re1.yahoo.com> Message-ID: As a heads up.. this could be caused by the change I made that swapped auth_token auth and fb_sig auth. Dave On Fri, Aug 1, 2008 at 10:20 AM, Mike Mangino wrote: > What kind of application is this? Facebook should always send the fb_sig > parameters, right? Is this an iframe application? > > Mike > > > On Aug 1, 2008, at 12:15 PM, William Thomas wrote: > > I have been digging a bit more and I think that I know why this is >> happening. Since I am only asking Facebooker to authenticate my current >> session with Facebook, I am not getting the expected fb_sig_* parameters >> from my callback URL. Instead I only get auth_token and therefore the >> verify_signature method fails. >> >> Apparently Facebooker expects >> ensure_application_is_installed_by_facebook_user before anything happens, >> and the callback from that provides fb_sig_* stuff. >> >> I believe I have 3 options: >> 1) Continue without the signature verification >> 2) Create a canvas page in my rails app to handle this and leave it blank >> or make it link back to my site. >> 3) Use fb connect - where is this code available? >> >> Thoughts? >> >> >> ----- Original Message ---- >> From: Mike Mangino >> To: William Thomas >> Cc: facebooker-talk at rubyforge.org >> Sent: Friday, August 1, 2008 8:56:46 AM >> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> exception when adding application >> >> This method makes sure requests are actually coming from Facebook. >> >> Without it, anybody could send requests to your application pretending >> to be from any user. >> >> Mike >> >> On Jul 31, 2008, at 11:27 PM, William Thomas wrote: >> >> > I am still having troubles with this exception. I ended up >> > commenting out the piece of code that throws the exception and >> > things work just fine after that... >> > >> > I have >> > before_filter :ensure_authenticated_to_facebook, :only => >> > [ :edit_facebook, :sync_facebook_friends] >> > >> > ...before rails even gets to my edit_facebook action the exception >> > is thrown. >> > >> > What is the intention of the verify_signature method? It does not >> > make sense to me outright >> > >> > ----- Original Message ---- >> > From: Xue Wei li >> > To: facebooker-talk at rubyforge.org >> > Sent: Thursday, July 24, 2008 1:11:16 PM >> > Subject: Re: [Facebooker-talk] >> > Facebooker::Session::IncorrectSignature exception when adding >> > application >> > >> > Thanks Richard - this is a great help =) >> > >> > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan < >> jordanr at cs.washington.edu >> > > wrote: >> > it was the 1st thing I read... but in my case I need to see the whole >> > picture (a zipped sample app that would help) - snippets only go so >> > far >> > >> > I put my first app on RubyForge. It's pretty bloated, a stupid >> > idea, and very poorly done, but it works (or at least did at one >> > point). If you're desperate do a, >> > svn checkout svn://rubyforge.org/var/svn/couple-rater >> > Look at trunk/app/controller/application.rb. I put all the install/ >> > uninstall code in my base controller. >> > >> > >> > >> > >> > >> > On Tue, 22 Jul 2008, William Thomas wrote: >> > >> > I'm using :ensure_authenticated_to_facebook since I don't have an >> > application but only want access to the data. >> > >> > >> > >> > ----- Original Message ---- >> > From: Xue Wei li >> > To: facebooker-talk at rubyforge.org >> > Sent: Monday, July 21, 2008 10:05:17 PM >> > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> > exception when adding application >> > >> > >> > I was thinking that and I could be wrong but you know I looked at >> > example >> > after example and I haven't seen anyone do an :exclude for the >> > ensure_facebook_application_is_installed with exception for a >> > 'remove_app' >> > method. Am I wrong? What if I wanted to access show facebook data on >> > the >> > first page? >> > >> > from Dav Yaginuma >> > to Xue Wei li >> > date Mon, Jul 21, 2008 at 11:21 AM >> > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> > exception when adding application >> > mailed-by gmail.com >> > >> > hide details 11:21 AM (8 hours ago) Reply >> > >> > >> > >> > I think I saw this, and the problem was the post-add URL defined in >> > the FB >> > app page needs to go to a controller action that skips the >> > ensure_facebook_application_is_installed filter. >> > >> > >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > 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 >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wthomas989 at yahoo.com Fri Aug 1 14:53:05 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Fri, 1 Aug 2008 11:53:05 -0700 (PDT) Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application Message-ID: <956028.40592.qm@web58704.mail.re1.yahoo.com> What version did you make the change on ? I can't seem to find it in the git history ----- Original Message ---- From: David Clements To: Mike Mangino Cc: William Thomas ; facebooker-talk at rubyforge.org Sent: Friday, August 1, 2008 1:21:11 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application As a heads up.. this could be caused by the change I made that swapped auth_token auth and fb_sig auth. Dave On Fri, Aug 1, 2008 at 10:20 AM, Mike Mangino wrote: What kind of application is this? Facebook should always send the fb_sig parameters, right? Is this an iframe application? Mike On Aug 1, 2008, at 12:15 PM, William Thomas wrote: I have been digging a bit more and I think that I know why this is happening. Since I am only asking Facebooker to authenticate my current session with Facebook, I am not getting the expected fb_sig_* parameters from my callback URL. Instead I only get auth_token and therefore the verify_signature method fails. Apparently Facebooker expects ensure_application_is_installed_by_facebook_user before anything happens, and the callback from that provides fb_sig_* stuff. I believe I have 3 options: 1) Continue without the signature verification 2) Create a canvas page in my rails app to handle this and leave it blank or make it link back to my site. 3) Use fb connect - where is this code available? Thoughts? ----- Original Message ---- From: Mike Mangino To: William Thomas Cc: facebooker-talk at rubyforge.org Sent: Friday, August 1, 2008 8:56:46 AM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application This method makes sure requests are actually coming from Facebook. Without it, anybody could send requests to your application pretending to be from any user. Mike On Jul 31, 2008, at 11:27 PM, William Thomas wrote: > I am still having troubles with this exception. I ended up > commenting out the piece of code that throws the exception and > things work just fine after that... > > I have > before_filter :ensure_authenticated_to_facebook, :only => > [ :edit_facebook, :sync_facebook_friends] > > ...before rails even gets to my edit_facebook action the exception > is thrown. > > What is the intention of the verify_signature method? It does not > make sense to me outright > > ----- Original Message ---- > From: Xue Wei li > To: facebooker-talk at rubyforge.org > Sent: Thursday, July 24, 2008 1:11:16 PM > Subject: Re: [Facebooker-talk] > Facebooker::Session::IncorrectSignature exception when adding > application > > Thanks Richard - this is a great help =) > > On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan > wrote: > it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so > far > > I put my first app on RubyForge. It's pretty bloated, a stupid > idea, and very poorly done, but it works (or at least did at one > point). If you're desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the install/ > uninstall code in my base controller. > > > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I'm using :ensure_authenticated_to_facebook since I don't have an > application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > > > I was thinking that and I could be wrong but you know I looked at > example > after example and I haven't seen anyone do an :exclude for the > ensure_facebook_application_is_installed with exception for a > 'remove_app' > method. Am I wrong? What if I wanted to access show facebook data on > the > first page? > > from Dav Yaginuma > to Xue Wei li > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature > exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in > the FB > app page needs to go to a controller action that skips the > ensure_facebook_application_is_installed filter. > > > > _______________________________________________ > Facebooker-talk mailing list > 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 -- Mike Mangino http://www.elevatedrails.com _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From aurelien.malisart at gmail.com Sat Aug 2 10:26:18 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Sat, 2 Aug 2008 16:26:18 +0200 Subject: [Facebooker-talk] Keeping RESTful in facebooker apps In-Reply-To: References: <83adaa130807301109u276f6339r1f8674c4079f3947@mail.gmail.com> <844CE1D8-3D3B-4C2A-9458-DAB548506BF0@gmail.com> Message-ID: <83adaa130808020726m377ba885l47b368fe21215b71@mail.gmail.com> Okay it works! I have had included your patch in 'environment.rb', I thought it would be taken in account too... Thanks for help. aurels -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmatei at gmail.com Mon Aug 4 11:53:37 2008 From: rmatei at gmail.com (Robert Matei) Date: Mon, 4 Aug 2008 08:53:37 -0700 Subject: [Facebooker-talk] Batching fails on calls that return [] Message-ID: <31e3a0430808040853v2780df1axe985c32ebb1c1a5a@mail.gmail.com> Hey Facebookers, I'm trying to batch some FQL queries. If one of them doesn't match anything, and I then try to access the result after the batch is done, it throws an error: ThreadError (return can't jump across threads) The query works fine by itself and just returns an empty array. Likewise, queries that do have results work fine. I'd love some help on this as it's holding me up and all this process stuff is Greek to me. Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Mon Aug 4 15:34:55 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 4 Aug 2008 15:34:55 -0400 Subject: [Facebooker-talk] Change of defaults Message-ID: <470F7C81-A59B-43B0-AC52-6017B88B315E@elevatedrails.com> Now that the new Facebook has been out for a couple of weeks, should we change the default api hostname to api.new.facebook.com? What does everyone think? Mike -- Mike Mangino http://www.elevatedrails.com From zhao.lu.us at gmail.com Mon Aug 4 15:47:59 2008 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Mon, 4 Aug 2008 12:47:59 -0700 Subject: [Facebooker-talk] Change of defaults In-Reply-To: <470F7C81-A59B-43B0-AC52-6017B88B315E@elevatedrails.com> References: <470F7C81-A59B-43B0-AC52-6017B88B315E@elevatedrails.com> Message-ID: <15D446F1-184F-4C36-97A1-E47E25B75D04@gmail.com> Yes please. On Aug 4, 2008, at 12:34 PM, Mike Mangino wrote: > Now that the new Facebook has been out for a couple of weeks, should > we change the default api hostname to api.new.facebook.com? > > What does everyone think? > > Mike > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From vidalg at a2z.com Tue Aug 5 17:25:55 2008 From: vidalg at a2z.com (Vidal Graupera) Date: Tue, 5 Aug 2008 14:25:55 -0700 Subject: [Facebooker-talk] profile_publisher_extensions.rb line #17 Message-ID: <2343AEB0-1DE5-43E7-A0E3-7EAA5AAD7341@a2z.com> Hi, def render_publisher_interface (fbml,publish_enabled=true,comment_enabled=false) render :json = > {:content = > {:fbml = > fbml,:publishEnabled=>publish_enabled,:commentEnabled=>comment_enabled}, :method=>"publisher_getInterface"} end The end of that line doesnt have ".to_json" Is this intentional or a bug? Seems like an oversight to me. Thanks, Vidal. ================= Vidal Graupera vidalg at a2z.com 650-331-2714 130 Lytton Ave., Suite 300 Palo Alto, CA 94301 UnSpun by Amazon: Community Opinions ... Ranked! http://unspun.amazon.com From vidalg at a2z.com Tue Aug 5 17:27:45 2008 From: vidalg at a2z.com (Vidal Graupera) Date: Tue, 5 Aug 2008 14:27:45 -0700 Subject: [Facebooker-talk] facebooker / lib / facebooker / rails / facebook_asset_path.rb Message-ID: Why are the entire contents of this file commented out? Thanks. ================= Vidal Graupera vidalg at a2z.com 650-331-2714 130 Lytton Ave., Suite 300 Palo Alto, CA 94301 UnSpun by Amazon: Community Opinions ... Ranked! http://unspun.amazon.com From mmangino at elevatedrails.com Tue Aug 5 17:44:15 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 5 Aug 2008 17:44:15 -0400 Subject: [Facebooker-talk] profile_publisher_extensions.rb line #17 In-Reply-To: <2343AEB0-1DE5-43E7-A0E3-7EAA5AAD7341@a2z.com> References: <2343AEB0-1DE5-43E7-A0E3-7EAA5AAD7341@a2z.com> Message-ID: <80C5AD54-8EE3-4B03-84BF-74AE154BB893@elevatedrails.com> Doesn't Rails automatically call to_json on anything passed to render :json? The existing code is working for me. Mike On Aug 5, 2008, at 5:25 PM, Vidal Graupera wrote: > Hi, > > def > render_publisher_interface > (fbml,publish_enabled=true,comment_enabled=false) > > render > :json > = > > > {:content > = > > > {:fbml > = > > > fbml > ,:publishEnabled=>publish_enabled,:commentEnabled=>comment_enabled}, > :method=>"publisher_getInterface"} > end > > The end of that line doesnt have ".to_json" > > Is this intentional or a bug? Seems like an oversight to me. > > Thanks, > > Vidal. > > > > > ================= > > Vidal Graupera > vidalg at a2z.com > 650-331-2714 > 130 Lytton Ave., Suite 300 > Palo Alto, CA 94301 > > UnSpun by Amazon: Community Opinions ... Ranked! > http://unspun.amazon.com > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From george at xapblog.com Tue Aug 5 18:18:26 2008 From: george at xapblog.com (George Deglin) Date: Tue, 5 Aug 2008 15:18:26 -0700 Subject: [Facebooker-talk] Bug when loading FBML through FB-Ajax Message-ID: I ran across a bug a little while ago where link_to's in generated content were not in the scope of the application callback url. This is because facebook does not pass the "fb_sig_in_canvas" parameter for ajax requests (but it does pass fb_sig_is_ajax) The following is the fix that I used: diff --git a/lib/facebooker/rails/ facebook_url_rewriting.rb b/lib/facebooker/rails/facebook_url_rewriting.rb index 72807db..7dad529 100644 --- a/lib/facebooker/rails/facebook_url_rewriting.rb +++ b/lib/facebooker/rails/facebook_url_rewriting.rb @@ -13,7 +13,7 @@ module ::ActionController def link_to_canvas?(params, options) option_override = options[:canvas] return false if option_override == false # important to check for false. nil should use default behavior - option_override || @request.parameters["fb_sig_in_canvas"] == "1" || @request.parameters[:fb_sig_in_canvas] == "1" + option_override || (@request.parameters["fb_sig_in_canvas"] == "1") || (@request.parameters[:fb_sig_in_canvas] == "1") || (@request.parameters[:fb_sig_is_ajax]=="1") end def rewrite_url_with_facebooker(*args) Can anyone confirm that this looks like the right way to do it? It'd be nice to get this fixed in the official branch but I'm not sure if there might be something I overlooked. Best, George -------------- next part -------------- An HTML attachment was scrubbed... URL: From vidalg at a2z.com Tue Aug 5 19:33:28 2008 From: vidalg at a2z.com (Vidal Graupera) Date: Tue, 5 Aug 2008 16:33:28 -0700 Subject: [Facebooker-talk] profile_publisher_extensions.rb line #17 In-Reply-To: <80C5AD54-8EE3-4B03-84BF-74AE154BB893@elevatedrails.com> References: <2343AEB0-1DE5-43E7-A0E3-7EAA5AAD7341@a2z.com> <80C5AD54-8EE3-4B03-84BF-74AE154BB893@elevatedrails.com> Message-ID: Hi Mike, It didn't seem to do it for me, but the project I am working on is on Rails 1.2.6. (Maybe it does on 2.x.) Note: on line #24 of the same file, there is a "to_json" so as a minor point it should be removed for consistency. It was confusing to me. I know this is probably not an issue for most people since they are on Rails 2.x, but, for anyone who hits this problem. I found that Rails 1.x does not generate valid JSON (at least not valid enough for FB) so Facebook will reject the output render_publisher_interface call. As a work around, I used the ruby json gem instead--adding "require 'json'" and used JSON.unparse to make this call work. Cheers, Vidal. On Aug 5, 2008, at 2:44 PM, Mike Mangino wrote: > Doesn't Rails automatically call to_json on anything passed to > render :json? > > The existing code is working for me. > > Mike > > On Aug 5, 2008, at 5:25 PM, Vidal Graupera wrote: > >> Hi, >> >> def >> render_publisher_interface >> (fbml,publish_enabled=true,comment_enabled=false) >> >> render >> :json >> = >>> >> {:content >> = >>> >> {:fbml >> = >>> >> fbml >> ,:publishEnabled=>publish_enabled,:commentEnabled=>comment_enabled}, >> :method=>"publisher_getInterface"} >> end >> >> The end of that line doesnt have ".to_json" >> >> Is this intentional or a bug? Seems like an oversight to me. >> >> Thanks, >> >> Vidal. >> >> >> >> >> ================= >> >> Vidal Graupera >> vidalg at a2z.com >> 650-331-2714 >> 130 Lytton Ave., Suite 300 >> Palo Alto, CA 94301 >> >> UnSpun by Amazon: Community Opinions ... Ranked! >> http://unspun.amazon.com >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > ================= Vidal Graupera vidalg at a2z.com 650-331-2714 130 Lytton Ave., Suite 300 Palo Alto, CA 94301 UnSpun by Amazon: Community Opinions ... Ranked! http://unspun.amazon.com From mmangino at elevatedrails.com Wed Aug 6 07:59:10 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 6 Aug 2008 07:59:10 -0400 Subject: [Facebooker-talk] profile_publisher_extensions.rb line #17 In-Reply-To: References: <2343AEB0-1DE5-43E7-A0E3-7EAA5AAD7341@a2z.com> <80C5AD54-8EE3-4B03-84BF-74AE154BB893@elevatedrails.com> Message-ID: <4CF91661-C355-4189-8E6F-1B9943607D20@elevatedrails.com> Okay. I'll add the to_json call there. At this point, Rails 1.2 is two versions out of date, so I don't plan on working too hard to support it. Mike On Aug 5, 2008, at 7:33 PM, Vidal Graupera wrote: > Hi Mike, > > It didn't seem to do it for me, but the project I am working on is > on Rails 1.2.6. (Maybe it does on 2.x.) > > Note: on line #24 of the same file, there is a "to_json" so as a > minor point it should be removed for consistency. It was confusing > to me. > > I know this is probably not an issue for most people since they are > on Rails 2.x, but, for anyone who hits this problem. I found that > Rails 1.x does not generate valid JSON (at least not valid enough > for FB) so Facebook will reject the output > render_publisher_interface call. As a work around, I used the ruby > json gem instead--adding "require 'json'" and used JSON.unparse to > make this call work. > > Cheers, > > Vidal. > > On Aug 5, 2008, at 2:44 PM, Mike Mangino wrote: > >> Doesn't Rails automatically call to_json on anything passed to >> render :json? >> >> The existing code is working for me. >> >> Mike >> >> On Aug 5, 2008, at 5:25 PM, Vidal Graupera wrote: >> >>> Hi, >>> >>> def >>> render_publisher_interface >>> (fbml,publish_enabled=true,comment_enabled=false) >>> >>> render >>> :json >>> = >>>> >>> {:content >>> = >>>> >>> {:fbml >>> = >>>> >>> fbml >>> ,:publishEnabled=>publish_enabled,:commentEnabled=>comment_enabled}, >>> :method=>"publisher_getInterface"} >>> end >>> >>> The end of that line doesnt have ".to_json" >>> >>> Is this intentional or a bug? Seems like an oversight to me. >>> >>> Thanks, >>> >>> Vidal. >>> >>> >>> >>> >>> ================= >>> >>> Vidal Graupera >>> vidalg at a2z.com >>> 650-331-2714 >>> 130 Lytton Ave., Suite 300 >>> Palo Alto, CA 94301 >>> >>> UnSpun by Amazon: Community Opinions ... Ranked! >>> http://unspun.amazon.com >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> > > ================= > > Vidal Graupera > vidalg at a2z.com > 650-331-2714 > 130 Lytton Ave., Suite 300 > Palo Alto, CA 94301 > > UnSpun by Amazon: Community Opinions ... Ranked! > http://unspun.amazon.com > -- Mike Mangino http://www.elevatedrails.com From dara at catch.fm Thu Aug 7 06:45:51 2008 From: dara at catch.fm (dara) Date: Thu, 07 Aug 2008 11:45:51 +0100 Subject: [Facebooker-talk] Setting Ref handles from publishers... ? Message-ID: <489AD25F.4020607@catch.fm> Is anybody doing this ? I was hoping to be able to use the publisher, and helpers like render_to_string to update ref handles from templates. From mmangino at elevatedrails.com Thu Aug 7 08:33:54 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 7 Aug 2008 08:33:54 -0400 Subject: [Facebooker-talk] Setting Ref handles from publishers... ? In-Reply-To: <489AD25F.4020607@catch.fm> References: <489AD25F.4020607@catch.fm> Message-ID: I am doing this. The publisher includes a render helper, so you don't even need to use render_to_string. Mike On Aug 7, 2008, at 6:45 AM, dara wrote: > Is anybody doing this ? > > I was hoping to be able to use the publisher, and helpers like > render_to_string to update ref handles from templates. > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From jonathan.otto at gmail.com Sat Aug 9 03:12:02 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Sat, 9 Aug 2008 02:12:02 -0500 Subject: [Facebooker-talk] Order of authentication methods is causing unnecessary call to API? In-Reply-To: References: Message-ID: The order you have listed here makes sense to me since secure_with_token checks for the auth_token parameter before doing anything. The current implementation is now to do secure_with_token! last. On Tue, Jun 3, 2008 at 4:18 PM, David Clements wrote: > Hey Guys, > > I am wondering if I am missing something here. I am noticing that after a > user installs my app I get a request that not only contains an auth_key but > also contains a valid session key. > > Occasionally I am seeing that Facebook server is occasionally sending a > connection reset during the auth key authentication method, this caused me > to notice that secure_with_token is given precedence in the code: > > def set_facebook_session > > returning session_set = session_already_secured? || > secure_with_token! || secure_with_facebook_params! do > if session_set > capture_facebook_friends_if_available! > Session.current = facebook_session > end > end > end > > > This seems wrong to me since secure with token makes a round trip to > Facebook and secure_with_facebook_params! does not. > > Any thoughts or insights? > > Dave > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From digidigo at gmail.com Sat Aug 9 10:09:49 2008 From: digidigo at gmail.com (David Clements) Date: Sat, 9 Aug 2008 08:09:49 -0600 Subject: [Facebooker-talk] Order of authentication methods is causing unnecessary call to API? In-Reply-To: References: Message-ID: This issue I was having was that I had a request with both the request token and all the fb_sig params including a valid session key. I think this happens after an install of an app with the post ad url being a canvas page. So perhaps my fix wasn't deep enough. We could make it so that secure_with_params doesn't throw an exception if there is an auth token present? Dave On Sat, Aug 9, 2008 at 1:12 AM, Jonathan Otto wrote: > The order you have listed here makes sense to me since > secure_with_token checks for the auth_token parameter before doing > anything. > > The current implementation is now to do secure_with_token! last. > > On Tue, Jun 3, 2008 at 4:18 PM, David Clements wrote: > > Hey Guys, > > > > I am wondering if I am missing something here. I am noticing that after > a > > user installs my app I get a request that not only contains an auth_key > but > > also contains a valid session key. > > > > Occasionally I am seeing that Facebook server is occasionally sending a > > connection reset during the auth key authentication method, this caused > me > > to notice that secure_with_token is given precedence in the code: > > > > def set_facebook_session > > > > returning session_set = session_already_secured? || > > secure_with_token! || secure_with_facebook_params! do > > if session_set > > capture_facebook_friends_if_available! > > Session.current = facebook_session > > end > > end > > end > > > > > > This seems wrong to me since secure with token makes a round trip to > > Facebook and secure_with_facebook_params! does not. > > > > Any thoughts or insights? > > > > Dave > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Sun Aug 10 21:02:10 2008 From: auswalk at gmail.com (Allen Walker) Date: Sun, 10 Aug 2008 20:02:10 -0500 Subject: [Facebooker-talk] publishing problems with facebooker Message-ID: <489F8F92.30103@gmail.com> Getting the following error when I try to register my Publisher: Facebooker::Session::MissingOrInvalidParameter: The small story template is a required parameter, and it must be of type string from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/parser.rb:450:in `process' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/session.rb:456:in `post' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/session.rb:313:in `register_template_bundle' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:360:in `method_missing' the code called: ActivityPublisher.register_action ActivityPublisher: def action_template one_line_story_template "{*actor*}at {*location*} on {*date*} ." short_story_template "{*actor*} at {*location*} on {*date*} ", render(:partial => "short_body") end def action(user, activity) send_as :user_action from user.facebook_session.user data :location => activity.location, :date => activity.scheduled_at.strftime("%A, %b %d") end I read on some PHP forum they were having a similar error recently and talked about something concerning the Lib is not pointing to "api.new.facebook.com" and instead is pointing to "api.facebook.com". Thanks for any help From auswalk at gmail.com Sun Aug 10 22:24:56 2008 From: auswalk at gmail.com (Allen Walker) Date: Sun, 10 Aug 2008 21:24:56 -0500 Subject: [Facebooker-talk] publishing problems with facebooker In-Reply-To: <489F8F92.30103@gmail.com> References: <489F8F92.30103@gmail.com> Message-ID: <489FA2F8.40709@gmail.com> This is also relevant: http://bugs.developers.facebook.com/show_bug.cgi?id=2793 you guys recommend a workaround? Allen Walker wrote: > Getting the following error when I try to register my Publisher: > > Facebooker::Session::MissingOrInvalidParameter: The small story > template is a required parameter, and it must be of type string > from > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/parser.rb:450:in > `process' > from > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > `parse' > from > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in > `post' > from > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/session.rb:456:in > `post' > from > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/session.rb:313:in > `register_template_bundle' > from > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:360:in > `method_missing' > > > the code called: > > ActivityPublisher.register_action > > > ActivityPublisher: > > def action_template > one_line_story_template "{*actor*}at {*location*} on {*date*} ." > short_story_template "{*actor*} at {*location*} on {*date*} ", > render(:partial => "short_body") > end > > > > def action(user, activity) > send_as :user_action > from user.facebook_session.user > data :location => activity.location, > :date => activity.scheduled_at.strftime("%A, %b %d") > > end > > > > I read on some PHP forum they were having a similar error recently and > talked about something concerning the Lib is not pointing to > "api.new.facebook.com" and instead is pointing to "api.facebook.com". > > Thanks for any help > From bjclark at scidept.com Sun Aug 10 22:29:00 2008 From: bjclark at scidept.com (BJ Clark) Date: Sun, 10 Aug 2008 20:29:00 -0600 Subject: [Facebooker-talk] publishing problems with facebooker In-Reply-To: <489FA2F8.40709@gmail.com> References: <489F8F92.30103@gmail.com> <489FA2F8.40709@gmail.com> Message-ID: <629980D1-1972-4C73-A5D8-7018B2CC7BDF@scidept.com> If the problem is simply the URL, then that can easily be changed to the new url. They suggest getting the new PHP lib, so it's hard to say if other changes were necessary (with regard to the bug you linked to). BJ Clark On Aug 10, 2008, at 8:24 PM, Allen Walker wrote: > This is also relevant: > > http://bugs.developers.facebook.com/show_bug.cgi?id=2793 > > you guys recommend a workaround? > > Allen Walker wrote: >> Getting the following error when I try to register my Publisher: >> >> Facebooker::Session::MissingOrInvalidParameter: The small story >> template is a required parameter, and it must be of type string >> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >> facebooker/parser.rb:450:in `process' >> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >> facebooker/parser.rb:15:in `parse' >> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >> facebooker/service.rb:13:in `post' >> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >> facebooker/session.rb:456:in `post' >> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >> facebooker/session.rb:313:in `register_template_bundle' >> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >> facebooker/rails/publisher.rb:360:in `method_missing' >> >> >> the code called: >> >> ActivityPublisher.register_action >> >> >> ActivityPublisher: >> >> def action_template >> one_line_story_template "{*actor*}at {*location*} on {*date*} ." >> short_story_template "{*actor*} at {*location*} on {*date*} ", >> render(:partial => "short_body") >> end >> >> >> >> def action(user, activity) >> send_as :user_action >> from user.facebook_session.user >> data :location => activity.location, >> :date => activity.scheduled_at.strftime("%A, %b %d") >> >> end >> >> >> >> I read on some PHP forum they were having a similar error recently >> and talked about something concerning the Lib is not pointing to >> "api.new.facebook.com" and instead is pointing to "api.facebook.com". >> >> Thanks for any help >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From bjclark at scidept.com Sun Aug 10 22:59:22 2008 From: bjclark at scidept.com (BJ Clark) Date: Sun, 10 Aug 2008 20:59:22 -0600 Subject: [Facebooker-talk] publishing problems with facebooker In-Reply-To: <489FAA48.4030507@gmail.com> References: <489F8F92.30103@gmail.com> <489FA2F8.40709@gmail.com> <629980D1-1972-4C73-A5D8-7018B2CC7BDF@scidept.com> <489FAA48.4030507@gmail.com> Message-ID: <3FCEEE10-6D86-4C6E-BA17-578D720909C7@scidept.com> Line 55 of session.rb Or upgrade to the newest version on github, it's already in there. BJ On Aug 10, 2008, at 8:56 PM, Allen Walker wrote: > So to change the URL, where do I go about doing that? > > thanks > > BJ Clark wrote: >> If the problem is simply the URL, then that can easily be changed >> to the new url. >> They suggest getting the new PHP lib, so it's hard to say if other >> changes were necessary (with regard to the bug you linked to). >> >> >> BJ Clark >> >> On Aug 10, 2008, at 8:24 PM, Allen Walker wrote: >> >>> This is also relevant: >>> >>> http://bugs.developers.facebook.com/show_bug.cgi?id=2793 >>> >>> you guys recommend a workaround? >>> >>> Allen Walker wrote: >>>> Getting the following error when I try to register my Publisher: >>>> >>>> Facebooker::Session::MissingOrInvalidParameter: The small story >>>> template is a required parameter, and it must be of type string >>>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>>> facebooker/parser.rb:450:in `process' >>>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>>> facebooker/parser.rb:15:in `parse' >>>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>>> facebooker/service.rb:13:in `post' >>>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>>> facebooker/session.rb:456:in `post' >>>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>>> facebooker/session.rb:313:in `register_template_bundle' >>>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>>> facebooker/rails/publisher.rb:360:in `method_missing' >>>> >>>> >>>> the code called: >>>> >>>> ActivityPublisher.register_action >>>> >>>> >>>> ActivityPublisher: >>>> >>>> def action_template >>>> one_line_story_template "{*actor*}at {*location*} on {*date*} ." >>>> short_story_template "{*actor*} at {*location*} on {*date*} ", >>>> render(:partial => "short_body") >>>> end >>>> >>>> >>>> >>>> def action(user, activity) >>>> send_as :user_action >>>> from user.facebook_session.user >>>> data :location => activity.location, >>>> :date => activity.scheduled_at.strftime("%A, %b %d") >>>> >>>> end >>>> >>>> >>>> >>>> I read on some PHP forum they were having a similar error >>>> recently and talked about something concerning the Lib is not >>>> pointing to "api.new.facebook.com" and instead is pointing to >>>> "api.facebook.com". >>>> >>>> Thanks for any help >>>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> 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 >> > From bdondo at gmail.com Mon Aug 11 11:56:23 2008 From: bdondo at gmail.com (Bryan) Date: Mon, 11 Aug 2008 08:56:23 -0700 Subject: [Facebooker-talk] Trouble with link_to_remote in Facebooker Message-ID: Hi, I'm trying to update a div with ajax using link_to_remote, but can't seem to get it working. I can get form_remote_tag to work just fine though. My InfoController (it's not a RESTful controller) simply has: def update_ajax render :text => 'new text' end And my view has:

Ajax test - link_to_remote

<%=link_to_remote('update it', :update => 'foo', :url => info_ajax_update_url(:canvas => false) ) %>

Ajax test 2 - form_remote_tag

<% form_remote_tag :url => info_ajax_update_url(:canvas=>false), :update=>"foo" do |f|%> <%= submit_tag 'Update' %> <% end %>
Original text
'info', :action => 'update_ajax' (if the above looks garbled, I've put it up on pastie as well: http://pastie.textmate.org/250092 ) Firebug gives me this error: a5279184xxx_options[idx("parameters")] is undefined Any ideas? Anyone have an example of working link_to_remote usage? I searched this mailing list but didn't find anything that works for me. Thanks, Bryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From bdondo at gmail.com Mon Aug 11 13:03:31 2008 From: bdondo at gmail.com (Bryan) Date: Mon, 11 Aug 2008 10:03:31 -0700 Subject: [Facebooker-talk] Trouble with link_to_remote in Facebooker In-Reply-To: References: Message-ID: David Clements helped a ton by pointing out that I didn't have the protect_from_forgery call in my application controller. Everything works great now... Thanks Dave! Bryan On Mon, Aug 11, 2008 at 8:56 AM, Bryan wrote: > Hi, I'm trying to update a div with ajax using link_to_remote, but can't > seem to get it working. I can get form_remote_tag to work just fine though. > > > My InfoController (it's not a RESTful controller) simply has: > > def update_ajax > render :text => 'new text' > end > > And my view has: > >

Ajax test - link_to_remote

> <%=link_to_remote('update it', > :update => 'foo', > :url => info_ajax_update_url(:canvas => false) > ) %> >
> >

Ajax test 2 - form_remote_tag

> <% form_remote_tag :url => info_ajax_update_url(:canvas=> false), > :update=>"foo" do |f|%> > <%= submit_tag 'Update' %> > <% end %> > >
> Original text >
> In my routes I have: > > map.info_ajax_update 'info/update_ajax', :controller => 'info', :action => > 'update_ajax' > > (if the above looks garbled, I've put it up on pastie as well: > http://pastie.textmate.org/250092 ) > > Firebug gives me this error: a5279184xxx_options[idx("parameters")] is > undefined > > Any ideas? Anyone have an example of working link_to_remote usage? I > searched this mailing list but didn't find anything that works for me. > > Thanks, > Bryan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Mon Aug 11 13:59:34 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 11 Aug 2008 13:59:34 -0400 Subject: [Facebooker-talk] Rails Environment Config Message-ID: Per the last thread about link_to_remote I started comparing some of my app config settings with that in the Facebook Platform Development guide and have a few questions. 1. application.rb config.action_controller.session_store = :active_record_store config.action_controller.session = { :session_key => "_xxx_session", :secret => "65bfb267dc928c66f3d0714d89faf43e" } If I'm using active_record_store above is the config.action_controller.session params required or conflicting? 2. environment.rb Rails::Initializer.run do |config| config.action_controller.allow_forgery_protection = false application.rb protect_from_forgery :secret => 'a7cabcdf1499df9ded55d8a3797d9387' How are these two settings related, what's the affect? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bdondo at gmail.com Mon Aug 11 14:23:18 2008 From: bdondo at gmail.com (Bryan) Date: Mon, 11 Aug 2008 11:23:18 -0700 Subject: [Facebooker-talk] Trouble with link_to_remote in Facebooker In-Reply-To: References: Message-ID: This has led me to another question.. how do I get the :loading param to work with link_to_remote? That is, when the user clicks on the link, I want it to replace the div with "Updating..." while it's updating. Right now I have this in my view:

Ajax test - link_to_remote

<%=link_to_remote('update it', :update => 'foo', :loading => "fb_replace_with_busy('foo')", :url => info_ajax_update_url(:canvas => false) ) %>
Original Text
and in my application.js file, which I include after including facebooker.js, I have: function fb_replace_with_busy(div_id) { $(div_id).setTextValue("Updating..."); } (I also tried setInnerXHTML but that didn't work either). I don't see any errors in Firebug.. Thanks, Bryan On Mon, Aug 11, 2008 at 10:03 AM, Bryan wrote: > David Clements helped a ton by pointing out that I didn't have the > protect_from_forgery call in my application controller. Everything works > great now... > > Thanks Dave! > > Bryan > > > On Mon, Aug 11, 2008 at 8:56 AM, Bryan wrote: > >> Hi, I'm trying to update a div with ajax using link_to_remote, but can't >> seem to get it working. I can get form_remote_tag to work just fine though. >> >> >> My InfoController (it's not a RESTful controller) simply has: >> >> def update_ajax >> render :text => 'new text' >> end >> >> And my view has: >> >>

Ajax test - link_to_remote

>> <%=link_to_remote('update it', >> :update => 'foo', >> :url => info_ajax_update_url(:canvas => false) >> ) %> >>
>> >>

Ajax test 2 - form_remote_tag

>> <% form_remote_tag :url => info_ajax_update_url(:canvas=> false), >> :update=>"foo" do |f|%> >> <%= submit_tag 'Update' %> >> <% end %> >> >>
>> Original text >>
> >> In my routes I have: >> >> map.info_ajax_update 'info/update_ajax', :controller => 'info', :action => >> 'update_ajax' >> >> (if the above looks garbled, I've put it up on pastie as well: >> http://pastie.textmate.org/250092 ) >> >> Firebug gives me this error: a5279184xxx_options[idx("parameters")] is >> undefined >> >> Any ideas? Anyone have an example of working link_to_remote usage? I >> searched this mailing list but didn't find anything that works for me. >> >> Thanks, >> Bryan >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Mon Aug 11 14:26:46 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 11 Aug 2008 14:26:46 -0400 Subject: [Facebooker-talk] Trouble with link_to_remote in Facebooker In-Reply-To: References: Message-ID: This syntax works to show page elements. :before => "$('post_spinner').show();", :success => "$('post_spinner').hide();" On Mon, Aug 11, 2008 at 2:23 PM, Bryan wrote: > This has led me to another question.. how do I get the :loading param to > work with link_to_remote? That is, when the user clicks on the link, I want > it to replace the div with "Updating..." while it's updating. Right now I > have this in my view: > >

Ajax test - link_to_remote

> <%=link_to_remote('update it', > :update => 'foo', > :loading => "fb_replace_with_busy('foo')", > :url => info_ajax_update_url(:canvas => false) > ) %> > >
Original Text
> > and in my application.js file, which I include after including > facebooker.js, I have: > > function fb_replace_with_busy(div_id) { > $(div_id).setTextValue("Updating..."); > } > > (I also tried setInnerXHTML but that didn't work either). > > I don't see any errors in Firebug.. > > Thanks, > Bryan > > > On Mon, Aug 11, 2008 at 10:03 AM, Bryan wrote: > >> David Clements helped a ton by pointing out that I didn't have the >> protect_from_forgery call in my application controller. Everything works >> great now... >> >> Thanks Dave! >> >> Bryan >> >> >> On Mon, Aug 11, 2008 at 8:56 AM, Bryan wrote: >> >>> Hi, I'm trying to update a div with ajax using link_to_remote, but can't >>> seem to get it working. I can get form_remote_tag to work just fine though. >>> >>> >>> My InfoController (it's not a RESTful controller) simply has: >>> >>> def update_ajax >>> render :text => 'new text' >>> end >>> >>> And my view has: >>> >>>

Ajax test - link_to_remote

>>> <%=link_to_remote('update it', >>> :update => 'foo', >>> :url => info_ajax_update_url(:canvas => false) >>> ) %> >>>
>>> >>>

Ajax test 2 - form_remote_tag

>>> <% form_remote_tag :url => info_ajax_update_url(:canvas=> false), >>> :update=>"foo" do |f|%> >>> <%= submit_tag 'Update' %> >>> <% end %> >>> >>>
>>> Original text >>>
>> >>> In my routes I have: >>> >>> map.info_ajax_update 'info/update_ajax', :controller => 'info', :action >>> => 'update_ajax' >>> >>> (if the above looks garbled, I've put it up on pastie as well: >>> http://pastie.textmate.org/250092 ) >>> >>> Firebug gives me this error: a5279184xxx_options[idx("parameters")] is >>> undefined >>> >>> Any ideas? Anyone have an example of working link_to_remote usage? I >>> searched this mailing list but didn't find anything that works for me. >>> >>> Thanks, >>> Bryan >>> >> >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bdondo at gmail.com Mon Aug 11 17:01:14 2008 From: bdondo at gmail.com (Bryan) Date: Mon, 11 Aug 2008 14:01:14 -0700 Subject: [Facebooker-talk] Trouble with link_to_remote in Facebooker In-Reply-To: References: Message-ID: Thanks Ken. That works.. except I changed :success to :complete to get it to update my div with the new html. On Mon, Aug 11, 2008 at 11:26 AM, Ken Schroeder wrote: > This syntax works to show page elements. > :before => "$('post_spinner').show();", :success => > "$('post_spinner').hide();" > > On Mon, Aug 11, 2008 at 2:23 PM, Bryan wrote: > >> This has led me to another question.. how do I get the :loading param to >> work with link_to_remote? That is, when the user clicks on the link, I want >> it to replace the div with "Updating..." while it's updating. Right now I >> have this in my view: >> >>

Ajax test - link_to_remote

>> <%=link_to_remote('update it', >> :update => 'foo', >> :loading => "fb_replace_with_busy('foo')", >> :url => info_ajax_update_url(:canvas => false) >> ) %> >> >>
Original Text
>> >> and in my application.js file, which I include after including >> facebooker.js, I have: >> >> function fb_replace_with_busy(div_id) { >> $(div_id).setTextValue("Updating..."); >> } >> >> (I also tried setInnerXHTML but that didn't work either). >> >> I don't see any errors in Firebug.. >> >> Thanks, >> Bryan >> >> >> On Mon, Aug 11, 2008 at 10:03 AM, Bryan wrote: >> >>> David Clements helped a ton by pointing out that I didn't have the >>> protect_from_forgery call in my application controller. Everything works >>> great now... >>> >>> Thanks Dave! >>> >>> Bryan >>> >>> >>> On Mon, Aug 11, 2008 at 8:56 AM, Bryan wrote: >>> >>>> Hi, I'm trying to update a div with ajax using link_to_remote, but can't >>>> seem to get it working. I can get form_remote_tag to work just fine though. >>>> >>>> >>>> My InfoController (it's not a RESTful controller) simply has: >>>> >>>> def update_ajax >>>> render :text => 'new text' >>>> end >>>> >>>> And my view has: >>>> >>>>

Ajax test - link_to_remote

>>>> <%=link_to_remote('update it', >>>> :update => 'foo', >>>> :url => info_ajax_update_url(:canvas => false) >>>> ) %> >>>>
>>>> >>>>

Ajax test 2 - form_remote_tag

>>>> <% form_remote_tag :url => info_ajax_update_url(:canvas=> false), >>>> :update=>"foo" do |f|%> >>>> <%= submit_tag 'Update' %> >>>> <% end %> >>>> >>>>
>>>> Original text >>>>
>>> >>>> In my routes I have: >>>> >>>> map.info_ajax_update 'info/update_ajax', :controller => 'info', :action >>>> => 'update_ajax' >>>> >>>> (if the above looks garbled, I've put it up on pastie as well: >>>> http://pastie.textmate.org/250092 ) >>>> >>>> Firebug gives me this error: a5279184xxx_options[idx("parameters")] is >>>> undefined >>>> >>>> Any ideas? Anyone have an example of working link_to_remote usage? I >>>> searched this mailing list but didn't find anything that works for me. >>>> >>>> Thanks, >>>> Bryan >>>> >>> >>> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Tue Aug 12 15:14:50 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Tue, 12 Aug 2008 15:14:50 -0400 Subject: [Facebooker-talk] iframes Message-ID: Is there any issues with using facebooker in an IFrame not FBML page? I've never used IFrame before but seems like there would be some advantages to writing a more portable app to make your whole app in Iframe but dont' want to lose the facebooker hooks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Tue Aug 12 17:36:59 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 12 Aug 2008 16:36:59 -0500 Subject: [Facebooker-talk] built in fb:comments - can't get it to work Message-ID: <48A2027B.3000006@gmail.com> For a week I've been screwing with this. It seems really simple yet I can't get it to work. So I have to think it has something to do with rails and rendering pages. I have: <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform => true, :callbackurl => activity_url(:id=>@activity.id)) %> it outputs: The wall shows up but when I post it goes back to the page and shows no comments. This CANNOT be that complicated. I realize I can write my own comment wall but I don't understand why the built in facebook fbml comments won't work. Does anyone have fb:comments working? Thanks for any help. From digidigo at gmail.com Tue Aug 12 17:42:46 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 12 Aug 2008 15:42:46 -0600 Subject: [Facebooker-talk] built in fb:comments - can't get it to work In-Reply-To: <48A2027B.3000006@gmail.com> References: <48A2027B.3000006@gmail.com> Message-ID: The tutorial application has this working. http://apps.new.facebook.com/facebooker_tutorial/fbml/comments#comments_comments_for_comment_lesson There is one comment from a user indicating that they had to turn on forgery protection to get it to work. I am not using the callback url though. Dave On Tue, Aug 12, 2008 at 3:36 PM, Allen Walker wrote: > For a week I've been screwing with this. It seems really simple yet I can't > get it to work. So I have to think it has something to do with rails and > rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform => > true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > candelete="false" canpost="true" numposts="20" showform="true" > xid="Activity_31"> > > > > The wall shows up but when I post it goes back to the page and shows no > comments. > > This CANNOT be that complicated. I realize I can write my own comment wall > but I don't understand why the built in facebook fbml comments won't work. > Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Tue Aug 12 17:45:12 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Tue, 12 Aug 2008 17:45:12 -0400 Subject: [Facebooker-talk] socialmedia ads Message-ID: I followed the facebooker turorial on social media ads which seems pretty straight forward however the iframe takes up the whole page. I looked on the facebook wiki and followed some of the suggestions there about resizeable iframe but cannot get the symptom to disaappear. Anyone have any more complete examples on rendering iframe in fbml. I'm obviously missing something but can't seem locate the problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Tue Aug 12 17:53:26 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 12 Aug 2008 16:53:26 -0500 Subject: [Facebooker-talk] socialmedia ads In-Reply-To: References: Message-ID: <48A20656.9070804@gmail.com> Remove the resizeable="true" Ken Schroeder wrote: > I followed the facebooker turorial on social media ads which seems > pretty straight forward however the iframe takes up the whole page. I > looked on the facebook wiki and followed some of the suggestions there > about resizeable iframe but cannot get the symptom to disaappear. > Anyone have any more complete examples on rendering iframe in fbml. > I'm obviously missing something but can't seem locate the problem. > ------------------------------------------------------------------------ > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From schroeder.ken at gmail.com Tue Aug 12 17:55:49 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Tue, 12 Aug 2008 17:55:49 -0400 Subject: [Facebooker-talk] socialmedia ads In-Reply-To: <48A20656.9070804@gmail.com> References: <48A20656.9070804@gmail.com> Message-ID: Well that was a simple solution.. Thanks a bunch been wracking my brains on it most of the afternoon. On Tue, Aug 12, 2008 at 5:53 PM, Allen Walker wrote: > Remove the resizeable="true" > > Ken Schroeder wrote: > >> I followed the facebooker turorial on social media ads which seems pretty >> straight forward however the iframe takes up the whole page. I looked on the >> facebook wiki and followed some of the suggestions there about resizeable >> iframe but cannot get the symptom to disaappear. Anyone have any more >> complete examples on rendering iframe in fbml. I'm obviously missing >> something but can't seem locate the problem. >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Facebooker-talk mailing list >> 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: From mmangino at elevatedrails.com Tue Aug 12 18:26:39 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 12 Aug 2008 18:26:39 -0400 Subject: [Facebooker-talk] built in fb:comments - can't get it to work In-Reply-To: <48A2027B.3000006@gmail.com> References: <48A2027B.3000006@gmail.com> Message-ID: What does your route look like? does a post to your callback url render a page with the comments tag on it? Mike On Aug 12, 2008, at 5:36 PM, Allen Walker wrote: > For a week I've been screwing with this. It seems really simple yet > I can't get it to work. So I have to think it has something to do > with rails and rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, > 20, :showform => true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > xid="Activity_31"> > > > > The wall shows up but when I post it goes back to the page and shows > no comments. > > This CANNOT be that complicated. I realize I can write my own > comment wall but I don't understand why the built in facebook fbml > comments won't work. Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From vidalg at a2z.com Tue Aug 12 18:42:45 2008 From: vidalg at a2z.com (Vidal Graupera) Date: Tue, 12 Aug 2008 15:42:45 -0700 Subject: [Facebooker-talk] built in fb:comments - can't get it to work In-Reply-To: <48A2027B.3000006@gmail.com> References: <48A2027B.3000006@gmail.com> Message-ID: <72A3DD3F-A947-4D99-8669-09509499DBCF@a2z.com> I could not get it to work with the callback url. I had to remove that. Either that feature doesn't work, or I didn't know how to return the right thing. Vidal. On Aug 12, 2008, at 2:36 PM, Allen Walker wrote: > For a week I've been screwing with this. It seems really simple yet I > can't get it to work. So I have to think it has something to do with > rails and rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform > => true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > candelete="false" canpost="true" numposts="20" showform="true" > xid="Activity_31"> > > > > The wall shows up but when I post it goes back to the page and shows > no > comments. > > This CANNOT be that complicated. I realize I can write my own comment > wall but I don't understand why the built in facebook fbml comments > won't work. Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk ================= Vidal Graupera vidalg at a2z.com 650-331-2714 130 Lytton Ave., Suite 300 Palo Alto, CA 94301 UnSpun by Amazon: Community Opinions ... Ranked! http://unspun.amazon.com From digidigo at gmail.com Tue Aug 12 18:48:44 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 12 Aug 2008 16:48:44 -0600 Subject: [Facebooker-talk] built in fb:comments - can't get it to work In-Reply-To: <72A3DD3F-A947-4D99-8669-09509499DBCF@a2z.com> References: <48A2027B.3000006@gmail.com> <72A3DD3F-A947-4D99-8669-09509499DBCF@a2z.com> Message-ID: What is the whole point of the callback url anyway? I don't understand its use: optional callbackurl string The URL to refetch this configuration. *(Default value is the current page.)* Dave On Tue, Aug 12, 2008 at 4:42 PM, Vidal Graupera wrote: > I could not get it to work with the callback url. I had to remove that. > Either that feature doesn't work, or I didn't know how to return the right > thing. > > Vidal. > > On Aug 12, 2008, at 2:36 PM, Allen Walker wrote: > > For a week I've been screwing with this. It seems really simple yet I >> can't get it to work. So I have to think it has something to do with >> rails and rendering pages. I have: >> >> <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform >> => true, >> :callbackurl => activity_url(:id=>@activity.id)) %> >> >> it outputs: >> >> > candelete="false" canpost="true" numposts="20" showform="true" >> xid="Activity_31"> >> >> >> >> The wall shows up but when I post it goes back to the page and shows no >> comments. >> >> This CANNOT be that complicated. I realize I can write my own comment >> wall but I don't understand why the built in facebook fbml comments >> won't work. Does anyone have fb:comments working? >> >> Thanks for any help. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > ================= > > Vidal Graupera > vidalg at a2z.com > 650-331-2714 > 130 Lytton Ave., Suite 300 > Palo Alto, CA 94301 > > UnSpun by Amazon: Community Opinions ... Ranked! > http://unspun.amazon.com > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Aug 12 18:57:52 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 12 Aug 2008 18:57:52 -0400 Subject: [Facebooker-talk] built in fb:comments - can't get it to work In-Reply-To: References: <48A2027B.3000006@gmail.com> <72A3DD3F-A947-4D99-8669-09509499DBCF@a2z.com> Message-ID: When Facebook renders certain pages, like the new comment form, it fetches the callbackurl and uses the configuration data from the fb:comments tag on that page. If you had a comment wall on an expensive page you could use the callback url to render just the fb:comments tag. For Rails, we used to need this because Facebook always fetched the callback as a POST. If you tried to use an fb:comments tag on your index, Facebook would try to grab the configuration info from your create method when a user was posting a comment. Mike On Aug 12, 2008, at 6:48 PM, David Clements wrote: > What is the whole point of the callback url anyway? I don't > understand its use: > > optional > callbackurl > string > The URL to refetch this configuration. (Default value is the current > page.) > > > Dave > > > > On Tue, Aug 12, 2008 at 4:42 PM, Vidal Graupera > wrote: > I could not get it to work with the callback url. I had to remove > that. Either that feature doesn't work, or I didn't know how to > return the right thing. > > Vidal. > > > On Aug 12, 2008, at 2:36 PM, Allen Walker wrote: > > For a week I've been screwing with this. It seems really simple yet I > can't get it to work. So I have to think it has something to do with > rails and rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform > => true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > candelete="false" canpost="true" numposts="20" showform="true" > xid="Activity_31"> > > > > The wall shows up but when I post it goes back to the page and shows > no > comments. > > This CANNOT be that complicated. I realize I can write my own comment > wall but I don't understand why the built in facebook fbml comments > won't work. Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > ================= > > Vidal Graupera > vidalg at a2z.com > 650-331-2714 > 130 Lytton Ave., Suite 300 > Palo Alto, CA 94301 > > UnSpun by Amazon: Community Opinions ... Ranked! > http://unspun.amazon.com > > > _______________________________________________ > Facebooker-talk mailing list > 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 -- Mike Mangino http://www.elevatedrails.com From auswalk at gmail.com Tue Aug 12 19:14:53 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 12 Aug 2008 18:14:53 -0500 Subject: [Facebooker-talk] built in fb:comments - can't get it to work In-Reply-To: References: <48A2027B.3000006@gmail.com> Message-ID: <48A2196D.5040106@gmail.com> Standard route in the routing table. I even took out the callbackurl , still doesnt work. I have given up and wrote my own comments storage using fb_wall and fb_wallpost. I got that to work. Mike Mangino wrote: > What does your route look like? does a post to your callback url > render a page with the comments tag on it? > > Mike > > On Aug 12, 2008, at 5:36 PM, Allen Walker wrote: > >> For a week I've been screwing with this. It seems really simple yet I >> can't get it to work. So I have to think it has something to do with >> rails and rendering pages. I have: >> >> <%= fb_comments("Activity_#{@activity.id}", true, false, 20, >> :showform => true, >> :callbackurl => activity_url(:id=>@activity.id)) %> >> >> it outputs: >> >> > callbackurl="http://apps.new.facebook.com/myapp/activities/31" >> candelete="false" canpost="true" numposts="20" showform="true" >> xid="Activity_31"> >> >> >> >> The wall shows up but when I post it goes back to the page and shows >> no comments. >> >> This CANNOT be that complicated. I realize I can write my own comment >> wall but I don't understand why the built in facebook fbml comments >> won't work. Does anyone have fb:comments working? >> >> Thanks for any help. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > From vidalg at a2z.com Tue Aug 12 19:59:43 2008 From: vidalg at a2z.com (Vidal Graupera) Date: Tue, 12 Aug 2008 16:59:43 -0700 Subject: [Facebooker-talk] _fb_fromhash Message-ID: <18C19ACE-73BD-4A8A-897E-4E16EA2FECFE@a2z.com> Hi, Anyone happen to know what the parameter "_fb_fromhash" is for? I did some googling and reading on the facebook forums but didn't find a clear answer. Thanks, Vidal. ================= Vidal Graupera vidalg at a2z.com 650-331-2714 130 Lytton Ave., Suite 300 Palo Alto, CA 94301 UnSpun by Amazon: Community Opinions ... Ranked! http://unspun.amazon.com From jonathan.otto at gmail.com Wed Aug 13 02:15:17 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Wed, 13 Aug 2008 01:15:17 -0500 Subject: [Facebooker-talk] AdapterBase.load_adapter, why does it scan the YAML file when it has the config_key_base value Message-ID: The load_adapter method is sent the value(config_key_base) of the adapter you want to load, so instead of using a regexp to match, why not just use the config_key_base value like so? The problem with the current method is that in situations where multiple apps share the same API key, this code will be unable to select the correct adapter. Though this situation seems uncommon, the earlier versions of Ringside behave this way (the same app on many social networks must share the same API key). http://pastebin.com/f2c2e58b6 Let me know if the above fix breaks anything else that code was intended to do. From dara at catch.fm Wed Aug 13 07:28:12 2008 From: dara at catch.fm (dara) Date: Wed, 13 Aug 2008 12:28:12 +0100 Subject: [Facebooker-talk] fb:dialog-content Message-ID: <48A2C54C.6060504@catch.fm> Hi, I'm seeing the following error when trying to use an fb:dialog-content within an fb:dialog tag. Have any of you hit and solved this already ? ActionView::TemplateError (private method `gsub' called for {}:Hash) on line #7 of /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: 4: in <%=h request.parameters['controller'].humanize %>Controller<% if request.parameters['action'] %>#<%=h request.parameters['action'] %><% end %> 5: <% end %> 6: 7:
<%=h @exception.clean_message %>
8: 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> 10: /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in `clean_within' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in `clean_message' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in `send' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in `execute' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in `send' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in `render' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in `render' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in `render_template' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in `render_file' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in `rescue_action_locally' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in `rescue_action' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in `perform_action_without_caching' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' ... This is within the profile, sent through a publisher, and in the context of the bebo social networking service. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Aug 13 07:59:43 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 13 Aug 2008 07:59:43 -0400 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <48A2C54C.6060504@catch.fm> References: <48A2C54C.6060504@catch.fm> Message-ID: <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> Interesting. Somehow the code is trying to render the error page inside a publisher. That will likely cause some problems. Can you rescue the exception in your publisher and get some additional detail about what is going wrong? Mike On Aug 13, 2008, at 7:28 AM, dara wrote: > Hi, > > I'm seeing the following error when trying to use an fb:dialog- > content within an fb:dialog tag. > Have any of you hit and solved this already ? > > ActionView::TemplateError (private method `gsub' called for {}:Hash) > on line #7 of /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ > actionpack-2.1.0/lib/action_controller/templates/rescues/ > diagnostics.erb: > 4: in <%=h request.parameters['controller'].humanize > %>Controller<% if request.parameters['action'] %>#<%=h > request.parameters['action'] %><% end %> > 5: <% end %> > 6: > 7:
<%=h @exception.clean_message %>
> 8: > 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> > 10: > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/core_ext/pathname/clean_within.rb:7:in `clean_within' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/core_ext/exception.rb:11:in `clean_message' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/templates/rescues/diagnostics.erb:7:in > ` > _run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb > ' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_view/base.rb:338:in `send' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_view/base.rb:338:in `execute' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_view/template_handlers/compilable.rb:29:in `send' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_view/template_handlers/compilable.rb:29:in `render' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_view/template.rb:35:in `render' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_view/template.rb:22:in `render_template' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_view/base.rb:245:in `render_file' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/rescue.rb:181:in `rescue_action_locally' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/rescue.rb:125:in `rescue_action' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/rescue.rb:203:in `perform_action_without_caching' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/caching/sql_cache.rb:13:in `perform_action' > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > ... > > > > This is within the profile, sent through a publisher, and in the > context of the bebo social networking service. > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From dara at catch.fm Wed Aug 13 08:21:29 2008 From: dara at catch.fm (dara) Date: Wed, 13 Aug 2008 13:21:29 +0100 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> Message-ID: <48A2D1C9.2030405@catch.fm> This is what I get from the log (was actually coming out anyway but i was missing it off screen): Facebooker::Session::UnknownError (): /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in `process' /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in `set_profile_fbml' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in `send_message' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in `method_missing' /app/controllers/welcome_controller.rb:7:in `index' cheers Mike Mangino wrote: > Interesting. Somehow the code is trying to render the error page > inside a publisher. That will likely cause some problems. Can you > rescue the exception in your publisher and get some additional detail > about what is going wrong? > > Mike > > On Aug 13, 2008, at 7:28 AM, dara wrote: > >> Hi, >> >> I'm seeing the following error when trying to use an >> fb:dialog-content within an fb:dialog tag. >> Have any of you hit and solved this already ? >> >> ActionView::TemplateError (private method `gsub' called for {}:Hash) >> on line #7 of >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: >> >> 4: in <%=h request.parameters['controller'].humanize >> %>Controller<% if request.parameters['action'] %>#<%=h >> request.parameters['action'] %><% end %> >> 5: <% end %> >> 6: >> 7:
<%=h @exception.clean_message %>
>> 8: >> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >> 10: >> >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in >> `clean_within' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in >> `clean_message' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in >> `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' >> >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >> `send' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >> `execute' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >> `send' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >> `render' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in >> `render' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in >> `render_template' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in >> `render_file' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in >> `rescue_action_locally' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in >> `rescue_action' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in >> `perform_action_without_caching' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in >> `perform_action' >> >> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >> `cache' >> ... >> >> >> >> This is within the profile, sent through a publisher, and in the >> context of the bebo social networking service. >> >> >> _______________________________________________ >> 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: From mmangino at elevatedrails.com Wed Aug 13 09:06:11 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 13 Aug 2008 09:06:11 -0400 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <48A2D1C9.2030405@catch.fm> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> Message-ID: <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> Are you using a very recent Facebooker? We should get better error messages now. Could you also put a debug statement in parser.rb like: def self.parse(method, data) puts data.body Errors.process(data) parser = Parser::PARSERS[method] parser.process( data ) end That will show us the actual error that is being sent. Mike On Aug 13, 2008, at 8:21 AM, dara wrote: > This is what I get from the log (was actually coming out anyway but > i was missing it off screen): > > Facebooker::Session::UnknownError (): > /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in > `process' > /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' > /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' > /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' > /vendor/plugins/facebooker/lib/facebooker/adapters/ > bebo_adapter.rb:41:in `set_profile_fbml' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: > 277:in `send_message' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: > 374:in `method_missing' > /app/controllers/welcome_controller.rb:7:in `index' > cheers > > Mike Mangino wrote: >> >> Interesting. Somehow the code is trying to render the error page >> inside a publisher. That will likely cause some problems. Can you >> rescue the exception in your publisher and get some additional >> detail about what is going wrong? >> >> Mike >> >> On Aug 13, 2008, at 7:28 AM, dara wrote: >> >>> Hi, >>> >>> I'm seeing the following error when trying to use an fb:dialog- >>> content within an fb:dialog tag. >>> Have any of you hit and solved this already ? >>> >>> ActionView::TemplateError (private method `gsub' called for >>> {}:Hash) on line #7 of /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >>> actionpack-2.1.0/lib/action_controller/templates/rescues/ >>> diagnostics.erb: >>> 4: in <%=h request.parameters['controller'].humanize >>> %>Controller<% if request.parameters['action'] %>#<%=h >>> request.parameters['action'] %><% end %> >>> 5: <% end %> >>> 6: >>> 7:
<%=h @exception.clean_message %>
>>> 8: >>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>> 10: >>> >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >>> lib/active_support/core_ext/pathname/clean_within.rb:7:in >>> `clean_within' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >>> lib/active_support/core_ext/exception.rb:11:in `clean_message' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_controller/templates/rescues/diagnostics.erb:7:in >>> ` >>> _run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb >>> ' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_view/base.rb:338:in `send' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_view/base.rb:338:in `execute' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_view/template_handlers/compilable.rb:29:in `send' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_view/template_handlers/compilable.rb:29:in `render' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_view/template.rb:35:in `render' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_view/template.rb:22:in `render_template' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_view/base.rb:245:in `render_file' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_controller/rescue.rb:181:in `rescue_action_locally' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_controller/rescue.rb:125:in `rescue_action' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_controller/rescue.rb:203:in `perform_action_without_caching' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>> action_controller/caching/sql_cache.rb:13:in `perform_action' >>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ >>> active_record/connection_adapters/abstract/query_cache.rb:33:in >>> `cache' >>> ... >>> >>> >>> >>> This is within the profile, sent through a publisher, and in the >>> context of the bebo social networking service. >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> > -- Mike Mangino http://www.elevatedrails.com From dara at catch.fm Wed Aug 13 09:51:34 2008 From: dara at catch.fm (Dara) Date: Wed, 13 Aug 2008 14:51:34 +0100 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> Message-ID: <48A2E6E6.30303@catch.fm> Not very, a couple of weeks old I believe. I updated earlier this week, but cracks started to show on the application (in set_profile_fbml_with_bebo_adapter as I recall, due to a nil session) so I chose to revert for the current time. Below is the response from the debug statement you suggest. I have cut down the markup. The error goes away if I remove the tag. I've also just found that the error also goes away again if I /add/ the tag, which i was missing, and so this is perhaps what bebo is complaining about below. 1 uid xxxxxxxxx v 1.0 markup ---snip <fb:dialog id="diame"> <fb:dialog-content id="diamecontent"> This is the dialog content </fb:dialog-content> </fb:dialog> ---snip api_key yyyyyyyyyyyy method facebook.profile.setFBML call_id 1234567890.12345 session_key zzzzzzzzzzzzz sig xxxxxyyyyyzzzzzzz Mike Mangino wrote: > Are you using a very recent Facebooker? We should get better error > messages now. Could you also put a debug statement in parser.rb like: > > def self.parse(method, data) > puts data.body > Errors.process(data) > parser = Parser::PARSERS[method] > parser.process( > data > ) > end > > > That will show us the actual error that is being sent. > > Mike > > On Aug 13, 2008, at 8:21 AM, dara wrote: > >> This is what I get from the log (was actually coming out anyway but i >> was missing it off screen): >> >> Facebooker::Session::UnknownError (): >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in `process' >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' >> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' >> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' >> >> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in >> `set_profile_fbml' >> >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in >> `send_message' >> >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in >> `method_missing' >> /app/controllers/welcome_controller.rb:7:in `index' >> cheers >> >> Mike Mangino wrote: >>> >>> Interesting. Somehow the code is trying to render the error page >>> inside a publisher. That will likely cause some problems. Can you >>> rescue the exception in your publisher and get some additional >>> detail about what is going wrong? >>> >>> Mike >>> >>> On Aug 13, 2008, at 7:28 AM, dara wrote: >>> >>>> Hi, >>>> >>>> I'm seeing the following error when trying to use an >>>> fb:dialog-content within an fb:dialog tag. >>>> Have any of you hit and solved this already ? >>>> >>>> ActionView::TemplateError (private method `gsub' called for >>>> {}:Hash) on line #7 of >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: >>>> >>>> 4: in <%=h request.parameters['controller'].humanize >>>> %>Controller<% if request.parameters['action'] %>#<%=h >>>> request.parameters['action'] %><% end %> >>>> 5: <% end %> >>>> 6: >>>> 7:
<%=h @exception.clean_message %>
>>>> 8: >>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>>> 10: >>>> >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in >>>> `clean_within' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in >>>> `clean_message' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in >>>> `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' >>>> >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>> `send' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>> `execute' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>> `send' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>> `render' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in >>>> `render' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in >>>> `render_template' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in >>>> `render_file' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in >>>> `rescue_action_locally' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in >>>> `rescue_action' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in >>>> `perform_action_without_caching' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in >>>> `perform_action' >>>> >>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >>>> `cache' >>>> ... >>>> >>>> >>>> >>>> This is within the profile, sent through a publisher, and in the >>>> context of the bebo social networking service. >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >> > > -- > Mike Mangino > http://www.elevatedrails.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Aug 13 10:12:54 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 13 Aug 2008 10:12:54 -0400 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <48A2E6E6.30303@catch.fm> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> <48A2E6E6.30303@catch.fm> Message-ID: <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> Hmm, not a lot to go off of. What does error code mean for bebo? Do they support a discussion board in the profile? I would guess not. Mike On Aug 13, 2008, at 9:51 AM, Dara wrote: > Not very, a couple of weeks old I believe. > I updated earlier this week, but cracks started to show on the > application (in set_profile_fbml_with_bebo_adapter as I recall, due > to a nil session) so I chose to revert for the current time. > > Below is the response from the debug statement you suggest. I have > cut down the markup. > The error goes away if I remove the tag. > > I've also just found that the error also goes away again if I add > the tag, which i was missing, and so this is > perhaps what bebo is complaining about below. > > > 1 > > > > uid > xxxxxxxxx > > > v > 1.0 > > > markup > > ---snip > > <fb:dialog id="diame"> > <fb:dialog-content id="diamecontent"> > This is the dialog content > </fb:dialog-content> > </fb:dialog> > > > ---snip > > > > > api_key > yyyyyyyyyyyy > > > method > facebook.profile.setFBML > > > call_id > 1234567890.12345 > > > session_key > zzzzzzzzzzzzz > > > sig > xxxxxyyyyyzzzzzzz > > > > > > Mike Mangino wrote: >> >> Are you using a very recent Facebooker? We should get better error >> messages now. Could you also put a debug statement in parser.rb like: >> >> def self.parse(method, data) >> puts data.body >> Errors.process(data) >> parser = Parser::PARSERS[method] >> parser.process( >> data >> ) >> end >> >> >> That will show us the actual error that is being sent. >> >> Mike >> >> On Aug 13, 2008, at 8:21 AM, dara wrote: >> >>> This is what I get from the log (was actually coming out anyway >>> but i was missing it off screen): >>> >>> Facebooker::Session::UnknownError (): >>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >>> `process' >>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >>> `parse' >>> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in >>> `post' >>> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in >>> `post' >>> /vendor/plugins/facebooker/lib/facebooker/adapters/ >>> bebo_adapter.rb:41:in `set_profile_fbml' >>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >>> 277:in `send_message' >>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >>> 374:in `method_missing' >>> /app/controllers/welcome_controller.rb:7:in `index' >>> cheers >>> >>> Mike Mangino wrote: >>>> >>>> Interesting. Somehow the code is trying to render the error page >>>> inside a publisher. That will likely cause some problems. Can you >>>> rescue the exception in your publisher and get some additional >>>> detail about what is going wrong? >>>> >>>> Mike >>>> >>>> On Aug 13, 2008, at 7:28 AM, dara wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm seeing the following error when trying to use an fb:dialog- >>>>> content within an fb:dialog tag. >>>>> Have any of you hit and solved this already ? >>>>> >>>>> ActionView::TemplateError (private method `gsub' called for >>>>> {}:Hash) on line #7 of /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >>>>> actionpack-2.1.0/lib/action_controller/templates/rescues/ >>>>> diagnostics.erb: >>>>> 4: in <%=h request.parameters['controller'].humanize >>>>> %>Controller<% if request.parameters['action'] %>#<%=h >>>>> request.parameters['action'] %><% end %> >>>>> 5: <% end %> >>>>> 6: >>>>> 7:
<%=h @exception.clean_message %>
>>>>> 8: >>>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>>>> 10: >>>>> >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >>>>> lib/active_support/core_ext/pathname/clean_within.rb:7:in >>>>> `clean_within' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >>>>> lib/active_support/core_ext/exception.rb:11:in `clean_message' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_controller/templates/rescues/diagnostics.erb:7:in >>>>> ` >>>>> _run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb >>>>> ' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_view/base.rb:338:in `send' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_view/base.rb:338:in `execute' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_view/template_handlers/compilable.rb:29:in `send' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_view/template_handlers/compilable.rb:29:in `render' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_view/template.rb:35:in `render' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_view/template.rb:22:in `render_template' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_view/base.rb:245:in `render_file' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_controller/rescue.rb:181:in `rescue_action_locally' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_controller/rescue.rb:125:in `rescue_action' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_controller/rescue.rb:203:in >>>>> `perform_action_without_caching' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ >>>>> action_controller/caching/sql_cache.rb:13:in `perform_action' >>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/ >>>>> lib/active_record/connection_adapters/abstract/query_cache.rb: >>>>> 33:in `cache' >>>>> ... >>>>> >>>>> >>>>> >>>>> This is within the profile, sent through a publisher, and in the >>>>> context of the bebo social networking service. >>>>> >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> > -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Wed Aug 13 11:12:29 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 13 Aug 2008 09:12:29 -0600 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> <48A2E6E6.30303@catch.fm> <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> Message-ID: I would love to know more about your setup so that we can sort out the error you were seeing in the set_profile_fbml_with_bebo_adapter For reference this is an alias_method_chain method. If there are general bugs with it we could remove the require 'bebo_adpater' and only load it if we detect it in the YML file. Dave On Wed, Aug 13, 2008 at 8:12 AM, Mike Mangino wrote: > Hmm, not a lot to go off of. What does error code mean for bebo? Do they > support a discussion board in the profile? I would guess not. > > Mike > > > On Aug 13, 2008, at 9:51 AM, Dara wrote: > > Not very, a couple of weeks old I believe. >> I updated earlier this week, but cracks started to show on the application >> (in set_profile_fbml_with_bebo_adapter as I recall, due to a nil session) so >> I chose to revert for the current time. >> >> Below is the response from the debug statement you suggest. I have cut >> down the markup. >> The error goes away if I remove the tag. >> >> I've also just found that the error also goes away again if I add the >> tag, which i was missing, and so this is perhaps what bebo >> is complaining about below. >> >> >> 1 >> >> >> >> uid >> xxxxxxxxx >> >> >> v >> 1.0 >> >> >> markup >> >> ---snip >> >> <fb:dialog id="diame"> >> <fb:dialog-content id="diamecontent"> >> This is the dialog content >> </fb:dialog-content> >> </fb:dialog> >> >> >> ---snip >> >> >> >> >> api_key >> yyyyyyyyyyyy >> >> >> method >> facebook.profile.setFBML >> >> >> call_id >> 1234567890.12345 >> >> >> session_key >> zzzzzzzzzzzzz >> >> >> sig >> xxxxxyyyyyzzzzzzz >> >> >> >> >> >> Mike Mangino wrote: >> >>> >>> Are you using a very recent Facebooker? We should get better error >>> messages now. Could you also put a debug statement in parser.rb like: >>> >>> def self.parse(method, data) >>> puts data.body >>> Errors.process(data) >>> parser = Parser::PARSERS[method] >>> parser.process( >>> data >>> ) >>> end >>> >>> >>> That will show us the actual error that is being sent. >>> >>> Mike >>> >>> On Aug 13, 2008, at 8:21 AM, dara wrote: >>> >>> This is what I get from the log (was actually coming out anyway but i >>>> was missing it off screen): >>>> >>>> Facebooker::Session::UnknownError (): >>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in `process' >>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' >>>> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' >>>> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' >>>> >>>> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in >>>> `set_profile_fbml' >>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in >>>> `send_message' >>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in >>>> `method_missing' >>>> /app/controllers/welcome_controller.rb:7:in `index' >>>> cheers >>>> >>>> Mike Mangino wrote: >>>> >>>>> >>>>> Interesting. Somehow the code is trying to render the error page inside >>>>> a publisher. That will likely cause some problems. Can you rescue the >>>>> exception in your publisher and get some additional detail about what is >>>>> going wrong? >>>>> >>>>> Mike >>>>> >>>>> On Aug 13, 2008, at 7:28 AM, dara wrote: >>>>> >>>>> Hi, >>>>>> >>>>>> I'm seeing the following error when trying to use an fb:dialog-content >>>>>> within an fb:dialog tag. >>>>>> Have any of you hit and solved this already ? >>>>>> >>>>>> ActionView::TemplateError (private method `gsub' called for {}:Hash) >>>>>> on line #7 of >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: >>>>>> 4: in <%=h request.parameters['controller'].humanize >>>>>> %>Controller<% if request.parameters['action'] %>#<%=h >>>>>> request.parameters['action'] %><% end %> >>>>>> 5: <% end %> >>>>>> 6: >>>>>> 7:
<%=h @exception.clean_message %>
>>>>>> 8: >>>>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>>>>> 10: >>>>>> >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in >>>>>> `clean_within' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in >>>>>> `clean_message' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in >>>>>> `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>> `send' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>> `execute' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>> `send' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>> `render' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in >>>>>> `render' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in >>>>>> `render_template' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in >>>>>> `render_file' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in >>>>>> `rescue_action_locally' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in >>>>>> `rescue_action' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in >>>>>> `perform_action_without_caching' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in >>>>>> `perform_action' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >>>>>> `cache' >>>>>> ... >>>>>> >>>>>> >>>>>> >>>>>> This is within the profile, sent through a publisher, and in the >>>>>> context of the bebo social networking service. >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>> >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >> > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Wed Aug 13 11:19:38 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 13 Aug 2008 09:19:38 -0600 Subject: [Facebooker-talk] AdapterBase.load_adapter, why does it scan the YAML file when it has the config_key_base value In-Reply-To: References: Message-ID: Hey John, I am not sure I totally understand your needs but I think that the change you offer breaks the ability to have multiple apps running in the same instance. So for example I could have a YML file with this api_key: e2604538a315f1d472dc20213ffa548e secret_key: SECRET canvas_page_name: meemclou callback_url: http://localhost:3000 foo_api_key: SOMEOTHERAPIKEY foo_secret_key: SECRET foo_canvas_page_name: supermeemcloud foo_callback_url: http://localhost:3000 foo_adapter: FacebookAdapter And then the rails app can suport both meemcloud and supermeemcloud. Or said more simply the config_key_base does not need to equal the class name prefix of the adapter. Let me know specifically what you are trying to accomplish and maybe I can help. Dave On Wed, Aug 13, 2008 at 12:15 AM, Jonathan Otto wrote: > The load_adapter method is sent the value(config_key_base) of the > adapter you want to load, so instead of using a regexp to match, why > not just use the config_key_base value like so? The problem with the > current method is that in situations where multiple apps share the > same API key, this code will be unable to select the correct adapter. > Though this situation seems uncommon, the earlier versions of Ringside > behave this way (the same app on many social networks must share the > same API key). > > http://pastebin.com/f2c2e58b6 > > Let me know if the above fix breaks anything else that code was intended to > do. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dara at catch.fm Wed Aug 13 11:26:46 2008 From: dara at catch.fm (Dara Mulvihill) Date: Wed, 13 Aug 2008 16:26:46 +0100 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> <48A2E6E6.30303@catch.fm> <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> Message-ID: <48A2FD36.8020300@catch.fm> Ok, I'll set up a mirror environment with the newer plugin code just as soon as I can. For the record, this is Bebo application development I'm looking at. David Clements wrote: > I would love to know more about your setup so that we can sort out the > error you were seeing in the > > set_profile_fbml_with_bebo_adapter > > For reference this is an alias_method_chain method. > > If there are general bugs with it we could remove the require > 'bebo_adpater' and only load it if we detect it in the YML file. > > Dave > > > > On Wed, Aug 13, 2008 at 8:12 AM, Mike Mangino > > wrote: > > Hmm, not a lot to go off of. What does error code mean for bebo? > Do they support a discussion board in the profile? I would guess not. > > Mike > > > On Aug 13, 2008, at 9:51 AM, Dara wrote: > > Not very, a couple of weeks old I believe. > I updated earlier this week, but cracks started to show on the > application (in set_profile_fbml_with_bebo_adapter as I > recall, due to a nil session) so I chose to revert for the > current time. > > Below is the response from the debug statement you suggest. I > have cut down the markup. > The error goes away if I remove the tag. > > I've also just found that the error also goes away again if I > add the tag, which i was missing, and so > this is perhaps what bebo is complaining about below. > > > 1 > > > > uid > xxxxxxxxx > > > v > 1.0 > > > markup > > ---snip > > <fb:dialog id="diame"> > <fb:dialog-content id="diamecontent"> > This is the dialog content > </fb:dialog-content> > </fb:dialog> > > > ---snip > > > > > api_key > yyyyyyyyyyyy > > > method > facebook.profile.setFBML > > > call_id > 1234567890.12345 > > > session_key > zzzzzzzzzzzzz > > > sig > xxxxxyyyyyzzzzzzz > > > > > > Mike Mangino wrote: > > > Are you using a very recent Facebooker? We should get > better error messages now. Could you also put a debug > statement in parser.rb like: > > def self.parse(method, data) > puts data.body > Errors.process(data) > parser = Parser::PARSERS[method] > parser.process( > data > ) > end > > > That will show us the actual error that is being sent. > > Mike > > On Aug 13, 2008, at 8:21 AM, dara wrote: > > This is what I get from the log (was actually coming > out anyway but i was missing it off screen): > > Facebooker::Session::UnknownError (): > > /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in > `process' > > /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > `parse' > > /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in > `post' > > /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in > `post' > > /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in > `set_profile_fbml' > > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in > `send_message' > > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in > `method_missing' > /app/controllers/welcome_controller.rb:7:in `index' > cheers > > Mike Mangino wrote: > > > Interesting. Somehow the code is trying to render > the error page inside a publisher. That will > likely cause some problems. Can you rescue the > exception in your publisher and get some > additional detail about what is going wrong? > > Mike > > On Aug 13, 2008, at 7:28 AM, dara wrote: > > Hi, > > I'm seeing the following error when trying to > use an fb:dialog-content within an fb:dialog tag. > Have any of you hit and solved this already ? > > ActionView::TemplateError (private method > `gsub' called for {}:Hash) on line #7 of > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: > 4: in <%=h > request.parameters['controller'].humanize > %>Controller<% if request.parameters['action'] > %>#<%=h request.parameters['action'] %><% end %> > 5: <% end %> > 6: > 7:
<%=h @exception.clean_message %>
> 8: > 9: <%= render_file(@rescues_path + > "/_trace.erb", false) %> > 10: > > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in > `clean_within' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in > `clean_message' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in > `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in > `send' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in > `execute' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in > `send' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in > `render' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in > `render' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in > `render_template' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in > `render_file' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in > `rescue_action_locally' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in > `rescue_action' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in > `perform_action_without_caching' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in > `perform_action' > > /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > ... > > > > This is within the profile, sent through a > publisher, and in the context of the bebo > social networking service. > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > -- > > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- Dara Mulvihill Catch phone: +353.51.30.62.76 phone: +353.85.100.19.21 email: dara at catch.fm skype: dara.om aim/msn/yahoo: dar4l77 Catch is the registered trade name of Hash 6 Limited, a limited liability company incorporated in Ireland with a registered office at Arclabs, Carriganore, Co. Waterford, Ireland. Registration number: 400180. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dara at catch.fm Wed Aug 13 11:41:05 2008 From: dara at catch.fm (Dara) Date: Wed, 13 Aug 2008 16:41:05 +0100 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> <48A2E6E6.30303@catch.fm> <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> Message-ID: <48A30091.5070801@catch.fm> No idea. Discussion board ? I was aiming to get a light-box/modal from a link on the profile page. Mike Mangino wrote: > Hmm, not a lot to go off of. What does error code mean for bebo? Do > they support a discussion board in the profile? I would guess not. > > Mike > > On Aug 13, 2008, at 9:51 AM, Dara wrote: > >> Not very, a couple of weeks old I believe. >> I updated earlier this week, but cracks started to show on the >> application (in set_profile_fbml_with_bebo_adapter as I recall, due >> to a nil session) so I chose to revert for the current time. >> >> Below is the response from the debug statement you suggest. I have >> cut down the markup. >> The error goes away if I remove the tag. >> >> I've also just found that the error also goes away again if I add the >> tag, which i was missing, and so this is perhaps >> what bebo is complaining about below. >> >> >> 1 >> >> >> >> uid >> xxxxxxxxx >> >> >> v >> 1.0 >> >> >> markup >> >> ---snip >> >> <fb:dialog id="diame"> >> <fb:dialog-content id="diamecontent"> >> This is the dialog content >> </fb:dialog-content> >> </fb:dialog> >> >> >> ---snip >> >> >> >> >> api_key >> yyyyyyyyyyyy >> >> >> method >> facebook.profile.setFBML >> >> >> call_id >> 1234567890.12345 >> >> >> session_key >> zzzzzzzzzzzzz >> >> >> sig >> xxxxxyyyyyzzzzzzz >> >> >> >> >> >> Mike Mangino wrote: >>> >>> Are you using a very recent Facebooker? We should get better error >>> messages now. Could you also put a debug statement in parser.rb like: >>> >>> def self.parse(method, data) >>> puts data.body >>> Errors.process(data) >>> parser = Parser::PARSERS[method] >>> parser.process( >>> data >>> ) >>> end >>> >>> >>> That will show us the actual error that is being sent. >>> >>> Mike >>> >>> On Aug 13, 2008, at 8:21 AM, dara wrote: >>> >>>> This is what I get from the log (was actually coming out anyway but >>>> i was missing it off screen): >>>> >>>> Facebooker::Session::UnknownError (): >>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >>>> `process' >>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' >>>> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' >>>> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' >>>> >>>> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in >>>> `set_profile_fbml' >>>> >>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in >>>> `send_message' >>>> >>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in >>>> `method_missing' >>>> /app/controllers/welcome_controller.rb:7:in `index' >>>> cheers >>>> >>>> Mike Mangino wrote: >>>>> >>>>> Interesting. Somehow the code is trying to render the error page >>>>> inside a publisher. That will likely cause some problems. Can you >>>>> rescue the exception in your publisher and get some additional >>>>> detail about what is going wrong? >>>>> >>>>> Mike >>>>> >>>>> On Aug 13, 2008, at 7:28 AM, dara wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm seeing the following error when trying to use an >>>>>> fb:dialog-content within an fb:dialog tag. >>>>>> Have any of you hit and solved this already ? >>>>>> >>>>>> ActionView::TemplateError (private method `gsub' called for >>>>>> {}:Hash) on line #7 of >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: >>>>>> >>>>>> 4: in <%=h request.parameters['controller'].humanize >>>>>> %>Controller<% if request.parameters['action'] %>#<%=h >>>>>> request.parameters['action'] %><% end %> >>>>>> 5: <% end %> >>>>>> 6: >>>>>> 7:
<%=h @exception.clean_message %>
>>>>>> 8: >>>>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>>>>> 10: >>>>>> >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in >>>>>> `clean_within' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in >>>>>> `clean_message' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in >>>>>> `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' >>>>>> >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>> `send' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>> `execute' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>> `send' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>> `render' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in >>>>>> `render' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in >>>>>> `render_template' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in >>>>>> `render_file' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in >>>>>> `rescue_action_locally' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in >>>>>> `rescue_action' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in >>>>>> `perform_action_without_caching' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in >>>>>> `perform_action' >>>>>> >>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >>>>>> `cache' >>>>>> ... >>>>>> >>>>>> >>>>>> >>>>>> This is within the profile, sent through a publisher, and in the >>>>>> context of the bebo social networking service. >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >> > > -- > Mike Mangino > http://www.elevatedrails.com > > From dara at catch.fm Wed Aug 13 12:27:08 2008 From: dara at catch.fm (Dara) Date: Wed, 13 Aug 2008 17:27:08 +0100 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <48A30091.5070801@catch.fm> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> <48A2E6E6.30303@catch.fm> <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> <48A30091.5070801@catch.fm> Message-ID: <48A30B5C.70904@catch.fm> And it does all work nicely with all the right attributes and elements in place Pity when you leave bits out it broke like it did. Dara wrote: > No idea. > Discussion board ? I was aiming to get a light-box/modal from a link > on the profile page. > > Mike Mangino wrote: >> Hmm, not a lot to go off of. What does error code mean for bebo? Do >> they support a discussion board in the profile? I would guess not. >> >> Mike >> >> On Aug 13, 2008, at 9:51 AM, Dara wrote: >> >>> Not very, a couple of weeks old I believe. >>> I updated earlier this week, but cracks started to show on the >>> application (in set_profile_fbml_with_bebo_adapter as I recall, due >>> to a nil session) so I chose to revert for the current time. >>> >>> Below is the response from the debug statement you suggest. I have >>> cut down the markup. >>> The error goes away if I remove the tag. >>> >>> I've also just found that the error also goes away again if I add >>> the tag, which i was missing, and so this is >>> perhaps what bebo is complaining about below. >>> >>> >>> 1 >>> >>> >>> >>> uid >>> xxxxxxxxx >>> >>> >>> v >>> 1.0 >>> >>> >>> markup >>> >>> ---snip >>> >>> <fb:dialog id="diame"> >>> <fb:dialog-content id="diamecontent"> >>> This is the dialog content >>> </fb:dialog-content> >>> </fb:dialog> >>> >>> >>> ---snip >>> >>> >>> >>> >>> api_key >>> yyyyyyyyyyyy >>> >>> >>> method >>> facebook.profile.setFBML >>> >>> >>> call_id >>> 1234567890.12345 >>> >>> >>> session_key >>> zzzzzzzzzzzzz >>> >>> >>> sig >>> xxxxxyyyyyzzzzzzz >>> >>> >>> >>> >>> >>> Mike Mangino wrote: >>>> >>>> Are you using a very recent Facebooker? We should get better error >>>> messages now. Could you also put a debug statement in parser.rb like: >>>> >>>> def self.parse(method, data) >>>> puts data.body >>>> Errors.process(data) >>>> parser = Parser::PARSERS[method] >>>> parser.process( >>>> data >>>> ) >>>> end >>>> >>>> >>>> That will show us the actual error that is being sent. >>>> >>>> Mike >>>> >>>> On Aug 13, 2008, at 8:21 AM, dara wrote: >>>> >>>>> This is what I get from the log (was actually coming out anyway >>>>> but i was missing it off screen): >>>>> >>>>> Facebooker::Session::UnknownError (): >>>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >>>>> `process' >>>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' >>>>> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' >>>>> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in >>>>> `post' >>>>> >>>>> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in >>>>> `set_profile_fbml' >>>>> >>>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in >>>>> `send_message' >>>>> >>>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in >>>>> `method_missing' >>>>> /app/controllers/welcome_controller.rb:7:in `index' >>>>> cheers >>>>> >>>>> Mike Mangino wrote: >>>>>> >>>>>> Interesting. Somehow the code is trying to render the error page >>>>>> inside a publisher. That will likely cause some problems. Can you >>>>>> rescue the exception in your publisher and get some additional >>>>>> detail about what is going wrong? >>>>>> >>>>>> Mike >>>>>> >>>>>> On Aug 13, 2008, at 7:28 AM, dara wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I'm seeing the following error when trying to use an >>>>>>> fb:dialog-content within an fb:dialog tag. >>>>>>> Have any of you hit and solved this already ? >>>>>>> >>>>>>> ActionView::TemplateError (private method `gsub' called for >>>>>>> {}:Hash) on line #7 of >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: >>>>>>> >>>>>>> 4: in <%=h request.parameters['controller'].humanize >>>>>>> %>Controller<% if request.parameters['action'] %>#<%=h >>>>>>> request.parameters['action'] %><% end %> >>>>>>> 5: <% end %> >>>>>>> 6: >>>>>>> 7:
<%=h @exception.clean_message %>
>>>>>>> 8: >>>>>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>>>>>> 10: >>>>>>> >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in >>>>>>> `clean_within' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in >>>>>>> `clean_message' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in >>>>>>> `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' >>>>>>> >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>>> `send' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>>> `execute' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>>> `send' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>>> `render' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in >>>>>>> `render' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in >>>>>>> `render_template' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in >>>>>>> `render_file' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in >>>>>>> `rescue_action_locally' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in >>>>>>> `rescue_action' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in >>>>>>> `perform_action_without_caching' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in >>>>>>> `perform_action' >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >>>>>>> `cache' >>>>>>> ... >>>>>>> >>>>>>> >>>>>>> >>>>>>> This is within the profile, sent through a publisher, and in the >>>>>>> context of the bebo social networking service. >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Facebooker-talk mailing list >>>>>>> Facebooker-talk at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>> >>>>>> -- >>>>>> Mike Mangino >>>>>> http://www.elevatedrails.com >>>>>> >>>>>> >>>>> >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From mmangino at elevatedrails.com Wed Aug 13 12:28:30 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 13 Aug 2008 12:28:30 -0400 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: <48A30091.5070801@catch.fm> References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> <48A2E6E6.30303@catch.fm> <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> <48A30091.5070801@catch.fm> Message-ID: Sorry, I saw dialog-content and read discussion board. The callback is completely different on a dialog. I believe it is a js method. I would be surprised if you can include a dialog in the profile. Also, let us know what breaks with Bebo. I've been working hard to support the new Facebook profile and I may have introduced some bebo bugs. Mike On Aug 13, 2008, at 11:41 AM, Dara wrote: > No idea. > Discussion board ? I was aiming to get a light-box/modal from a link > on the profile page. > > Mike Mangino wrote: >> Hmm, not a lot to go off of. What does error code mean for bebo? Do >> they support a discussion board in the profile? I would guess not. >> >> Mike >> >> On Aug 13, 2008, at 9:51 AM, Dara wrote: >> >>> Not very, a couple of weeks old I believe. >>> I updated earlier this week, but cracks started to show on the >>> application (in set_profile_fbml_with_bebo_adapter as I recall, >>> due to a nil session) so I chose to revert for the current time. >>> >>> Below is the response from the debug statement you suggest. I have >>> cut down the markup. >>> The error goes away if I remove the tag. >>> >>> I've also just found that the error also goes away again if I add >>> the tag, which i was missing, and so this is >>> perhaps what bebo is complaining about below. >>> >>> >>> 1 >>> >>> >>> >>> uid >>> xxxxxxxxx >>> >>> >>> v >>> 1.0 >>> >>> >>> markup >>> >>> ---snip >>> >>> <fb:dialog id="diame"> >>> <fb:dialog-content id="diamecontent"> >>> This is the dialog content >>> </fb:dialog-content> >>> </fb:dialog> >>> >>> >>> ---snip >>> >>> >>> >>> >>> api_key >>> yyyyyyyyyyyy >>> >>> >>> method >>> facebook.profile.setFBML >>> >>> >>> call_id >>> 1234567890.12345 >>> >>> >>> session_key >>> zzzzzzzzzzzzz >>> >>> >>> sig >>> xxxxxyyyyyzzzzzzz >>> >>> >>> >>> >>> >>> Mike Mangino wrote: >>>> >>>> Are you using a very recent Facebooker? We should get better >>>> error messages now. Could you also put a debug statement in >>>> parser.rb like: >>>> >>>> def self.parse(method, data) >>>> puts data.body >>>> Errors.process(data) >>>> parser = Parser::PARSERS[method] >>>> parser.process( >>>> data >>>> ) >>>> end >>>> >>>> >>>> That will show us the actual error that is being sent. >>>> >>>> Mike >>>> >>>> On Aug 13, 2008, at 8:21 AM, dara wrote: >>>> >>>>> This is what I get from the log (was actually coming out anyway >>>>> but i was missing it off screen): >>>>> >>>>> Facebooker::Session::UnknownError (): >>>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >>>>> `process' >>>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >>>>> `parse' >>>>> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in >>>>> `post' >>>>> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in >>>>> `post' >>>>> /vendor/plugins/facebooker/lib/facebooker/adapters/ >>>>> bebo_adapter.rb:41:in `set_profile_fbml' >>>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >>>>> 277:in `send_message' >>>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >>>>> 374:in `method_missing' >>>>> /app/controllers/welcome_controller.rb:7:in `index' >>>>> cheers >>>>> >>>>> Mike Mangino wrote: >>>>>> >>>>>> Interesting. Somehow the code is trying to render the error >>>>>> page inside a publisher. That will likely cause some problems. >>>>>> Can you rescue the exception in your publisher and get some >>>>>> additional detail about what is going wrong? >>>>>> >>>>>> Mike >>>>>> >>>>>> On Aug 13, 2008, at 7:28 AM, dara wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I'm seeing the following error when trying to use an fb:dialog- >>>>>>> content within an fb:dialog tag. >>>>>>> Have any of you hit and solved this already ? >>>>>>> >>>>>>> ActionView::TemplateError (private method `gsub' called for >>>>>>> {}:Hash) on line #7 of /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >>>>>>> actionpack-2.1.0/lib/action_controller/templates/rescues/ >>>>>>> diagnostics.erb: >>>>>>> 4: in <%=h request.parameters['controller'].humanize >>>>>>> %>Controller<% if request.parameters['action'] %>#<%=h >>>>>>> request.parameters['action'] %><% end %> >>>>>>> 5: <% end %> >>>>>>> 6: >>>>>>> 7:
<%=h @exception.clean_message %>
>>>>>>> 8: >>>>>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>>>>>> 10: >>>>>>> >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >>>>>>> lib/active_support/core_ext/pathname/clean_within.rb:7:in >>>>>>> `clean_within' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >>>>>>> lib/active_support/core_ext/exception.rb:11:in `clean_message' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_controller/templates/rescues/diagnostics.erb:7:in >>>>>>> ` >>>>>>> _run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb >>>>>>> ' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_view/base.rb:338:in `send' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_view/base.rb:338:in `execute' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_view/template_handlers/compilable.rb:29:in `send' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_view/template_handlers/compilable.rb:29:in `render' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_view/template.rb:35:in `render' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_view/template.rb:22:in `render_template' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_view/base.rb:245:in `render_file' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_controller/rescue.rb:181:in `rescue_action_locally' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_controller/rescue.rb:125:in `rescue_action' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_controller/rescue.rb:203:in >>>>>>> `perform_action_without_caching' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ >>>>>>> lib/action_controller/caching/sql_cache.rb:13:in >>>>>>> `perform_action' >>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/ >>>>>>> lib/active_record/connection_adapters/abstract/query_cache.rb: >>>>>>> 33:in `cache' >>>>>>> ... >>>>>>> >>>>>>> >>>>>>> >>>>>>> This is within the profile, sent through a publisher, and in >>>>>>> the context of the bebo social networking service. >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Facebooker-talk mailing list >>>>>>> Facebooker-talk at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>> >>>>>> -- >>>>>> Mike Mangino >>>>>> http://www.elevatedrails.com >>>>>> >>>>>> >>>>> >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> > -- Mike Mangino http://www.elevatedrails.com From dara at catch.fm Wed Aug 13 13:14:35 2008 From: dara at catch.fm (Dara) Date: Wed, 13 Aug 2008 18:14:35 +0100 Subject: [Facebooker-talk] fb:dialog-content In-Reply-To: References: <48A2C54C.6060504@catch.fm> <96F0DAA1-1F15-458F-9718-1800215BAEFE@elevatedrails.com> <48A2D1C9.2030405@catch.fm> <87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com> <48A2E6E6.30303@catch.fm> <7319315A-7EBA-456E-9477-64318FE4E6EA@elevatedrails.com> <48A30091.5070801@catch.fm> Message-ID: <48A3167B.3030700@catch.fm> As per the other mail, the dialog does work on the profile :) When I update the plugin from GIT, my bebo app breaks with the following: NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.post): /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in `set_profile_fbml' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in `send_message' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing' /app/controllers/welcome_controller.rb:5:in `index' I'm in beta, and updating the profile, through a publisher, upon hitting the landing page in the canvas. Regards Dara Mike Mangino wrote: > Sorry, I saw dialog-content and read discussion board. The callback is > completely different on a dialog. I believe it is a js method. I would > be surprised if you can include a dialog in the profile. > > Also, let us know what breaks with Bebo. I've been working hard to > support the new Facebook profile and I may have introduced some bebo > bugs. > > Mike > > On Aug 13, 2008, at 11:41 AM, Dara wrote: > >> No idea. >> Discussion board ? I was aiming to get a light-box/modal from a link >> on the profile page. >> >> Mike Mangino wrote: >>> Hmm, not a lot to go off of. What does error code mean for bebo? Do >>> they support a discussion board in the profile? I would guess not. >>> >>> Mike >>> >>> On Aug 13, 2008, at 9:51 AM, Dara wrote: >>> >>>> Not very, a couple of weeks old I believe. >>>> I updated earlier this week, but cracks started to show on the >>>> application (in set_profile_fbml_with_bebo_adapter as I recall, due >>>> to a nil session) so I chose to revert for the current time. >>>> >>>> Below is the response from the debug statement you suggest. I have >>>> cut down the markup. >>>> The error goes away if I remove the tag. >>>> >>>> I've also just found that the error also goes away again if I add >>>> the tag, which i was missing, and so this is >>>> perhaps what bebo is complaining about below. >>>> >>>> >>>> 1 >>>> >>>> >>>> >>>> uid >>>> xxxxxxxxx >>>> >>>> >>>> v >>>> 1.0 >>>> >>>> >>>> markup >>>> >>>> ---snip >>>> >>>> <fb:dialog id="diame"> >>>> <fb:dialog-content id="diamecontent"> >>>> This is the dialog content >>>> </fb:dialog-content> >>>> </fb:dialog> >>>> >>>> >>>> ---snip >>>> >>>> >>>> >>>> >>>> api_key >>>> yyyyyyyyyyyy >>>> >>>> >>>> method >>>> facebook.profile.setFBML >>>> >>>> >>>> call_id >>>> 1234567890.12345 >>>> >>>> >>>> session_key >>>> zzzzzzzzzzzzz >>>> >>>> >>>> sig >>>> xxxxxyyyyyzzzzzzz >>>> >>>> >>>> >>>> >>>> >>>> Mike Mangino wrote: >>>>> >>>>> Are you using a very recent Facebooker? We should get better error >>>>> messages now. Could you also put a debug statement in parser.rb like: >>>>> >>>>> def self.parse(method, data) >>>>> puts data.body >>>>> Errors.process(data) >>>>> parser = Parser::PARSERS[method] >>>>> parser.process( >>>>> data >>>>> ) >>>>> end >>>>> >>>>> >>>>> That will show us the actual error that is being sent. >>>>> >>>>> Mike >>>>> >>>>> On Aug 13, 2008, at 8:21 AM, dara wrote: >>>>> >>>>>> This is what I get from the log (was actually coming out anyway >>>>>> but i was missing it off screen): >>>>>> >>>>>> Facebooker::Session::UnknownError (): >>>>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >>>>>> `process' >>>>>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' >>>>>> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' >>>>>> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in >>>>>> `post' >>>>>> >>>>>> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in >>>>>> `set_profile_fbml' >>>>>> >>>>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in >>>>>> `send_message' >>>>>> >>>>>> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in >>>>>> `method_missing' >>>>>> /app/controllers/welcome_controller.rb:7:in `index' >>>>>> cheers >>>>>> >>>>>> Mike Mangino wrote: >>>>>>> >>>>>>> Interesting. Somehow the code is trying to render the error page >>>>>>> inside a publisher. That will likely cause some problems. Can >>>>>>> you rescue the exception in your publisher and get some >>>>>>> additional detail about what is going wrong? >>>>>>> >>>>>>> Mike >>>>>>> >>>>>>> On Aug 13, 2008, at 7:28 AM, dara wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I'm seeing the following error when trying to use an >>>>>>>> fb:dialog-content within an fb:dialog tag. >>>>>>>> Have any of you hit and solved this already ? >>>>>>>> >>>>>>>> ActionView::TemplateError (private method `gsub' called for >>>>>>>> {}:Hash) on line #7 of >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb: >>>>>>>> >>>>>>>> 4: in <%=h request.parameters['controller'].humanize >>>>>>>> %>Controller<% if request.parameters['action'] %>#<%=h >>>>>>>> request.parameters['action'] %><% end %> >>>>>>>> 5: <% end %> >>>>>>>> 6: >>>>>>>> 7:
<%=h @exception.clean_message %>
>>>>>>>> 8: >>>>>>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %> >>>>>>>> 10: >>>>>>>> >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/pathname/clean_within.rb:7:in >>>>>>>> `clean_within' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/exception.rb:11:in >>>>>>>> `clean_message' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/templates/rescues/diagnostics.erb:7:in >>>>>>>> `_run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb' >>>>>>>> >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>>>> `send' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in >>>>>>>> `execute' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>>>> `send' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in >>>>>>>> `render' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in >>>>>>>> `render' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in >>>>>>>> `render_template' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in >>>>>>>> `render_file' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:181:in >>>>>>>> `rescue_action_locally' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in >>>>>>>> `rescue_action' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:203:in >>>>>>>> `perform_action_without_caching' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in >>>>>>>> `perform_action' >>>>>>>> >>>>>>>> /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >>>>>>>> `cache' >>>>>>>> ... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> This is within the profile, sent through a publisher, and in >>>>>>>> the context of the bebo social networking service. >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Facebooker-talk mailing list >>>>>>>> Facebooker-talk at rubyforge.org >>>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>>> >>>>>>> -- >>>>>>> Mike Mangino >>>>>>> http://www.elevatedrails.com >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >> > > -- > Mike Mangino > http://www.elevatedrails.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.otto at gmail.com Wed Aug 13 22:02:29 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Wed, 13 Aug 2008 21:02:29 -0500 Subject: [Facebooker-talk] User model's cast_to_facebook_id Message-ID: I can't set a user's profile because the session isn't getting initialized for the user object when instantiated from publisher.rb on like 286. It seems the cast_to_facebook_id is failing as it tries to grab the facebook_id attribute. I fixed this by accessing the uid attribute instead. But I am surprised no one else has had a problem with this, maybe this was unique to me? In the user model def self.cast_to_facebook_id(object) - if object.respond_to?(:facebook_id) - object.facebook_id + if object.respond_to?(:uid) + object.uid else object end From rajiv.ranganath at atihita.com Thu Aug 14 06:27:41 2008 From: rajiv.ranganath at atihita.com (Rajiv M Ranganath) Date: Thu, 14 Aug 2008 18:27:41 +0800 Subject: [Facebooker-talk] facebook_form_builder.rb - add_default_name_and_id Message-ID: <0271BADE-E27B-49FF-9697-A2F90EDA8EF7@atihita.com> Hi there, I have a model called SignUp with a couple of text_fields and a datetime_select. When I was trying to build a form using the facebook_form_for helper, I realized that the controller was getting values from datetime_select correctly but was missing data from the text fields. I narrowed down the issue to add_default_name_and_id method and when changed it from def add_default_name_and_id(options,method) options[:name] = "#{object.class.name.downcase}[#{method}]" options[:id] ||= "#{object.class.name.downcase}_#{method}" end to def add_default_name_and_id(options,method) options[:name] = "#{object.class.name.underscore}[#{method}]" options[:id] ||= "#{object.class.name.underscore}_#{method}" end things started working as expected. Is this a bug or am I doing not doing something the rails way? Please comment. Best, Rajiv From digidigo at gmail.com Thu Aug 14 13:06:23 2008 From: digidigo at gmail.com (David Clements) Date: Thu, 14 Aug 2008 11:06:23 -0600 Subject: [Facebooker-talk] Anyone have issues with refreshRefUrl Message-ID: Wonder if anyone is having issue with refreshRefURL. I am seeing a session key no longer valid error but the doc's indicate that we no longer need a session key for this call. Here is my stack Session key invalid or no longer valid RAILS_ROOT: /Users/dclements/workspace/ttb/travtab/site/trunk Application Trace | Framework Trace | Full Trace vendor/plugins/facebooker/lib/facebooker/parser.rb:426:in `process' vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse_without_logging' lib/extensions.rb:156:in `parse' lib/extensions.rb:144:in `post' app/controllers/facebook_controller.rb:247:in `refresh_default_fbml' If I log into the app and rerun the request the issue goes away. Anyone else having issues? Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Thu Aug 14 13:12:12 2008 From: digidigo at gmail.com (David Clements) Date: Thu, 14 Aug 2008 11:12:12 -0600 Subject: [Facebooker-talk] Any requests that don't need a session Message-ID: I am looking into my issue with refreshRefUrl and am trying to find a case where we make calls that don't require or use a session key. Anyone know if we have any cases of this? Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhao.lu.us at gmail.com Thu Aug 14 14:51:03 2008 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Thu, 14 Aug 2008 11:51:03 -0700 Subject: [Facebooker-talk] publishing problems with facebooker In-Reply-To: <3FCEEE10-6D86-4C6E-BA17-578D720909C7@scidept.com> References: <489F8F92.30103@gmail.com> <489FA2F8.40709@gmail.com> <629980D1-1972-4C73-A5D8-7018B2CC7BDF@scidept.com> <489FAA48.4030507@gmail.com> <3FCEEE10-6D86-4C6E-BA17-578D720909C7@scidept.com> Message-ID: The ENV is set through facebooker.yml in your project's config directory. On the top of the default file you see this: # To develop for the new profile design, add the following key.. # api: new uncomment the api to set it to new. Zhao On Sun, Aug 10, 2008 at 7:59 PM, BJ Clark wrote: > Line 55 of session.rb > > Or upgrade to the newest version on github, it's already in there. > > BJ > > > On Aug 10, 2008, at 8:56 PM, Allen Walker wrote: > >> So to change the URL, where do I go about doing that? >> >> thanks >> >> BJ Clark wrote: >>> >>> If the problem is simply the URL, then that can easily be changed to the >>> new url. >>> They suggest getting the new PHP lib, so it's hard to say if other >>> changes were necessary (with regard to the bug you linked to). >>> >>> >>> BJ Clark >>> >>> On Aug 10, 2008, at 8:24 PM, Allen Walker wrote: >>> >>>> This is also relevant: >>>> >>>> http://bugs.developers.facebook.com/show_bug.cgi?id=2793 >>>> >>>> you guys recommend a workaround? >>>> >>>> Allen Walker wrote: >>>>> >>>>> Getting the following error when I try to register my Publisher: >>>>> >>>>> Facebooker::Session::MissingOrInvalidParameter: The small story >>>>> template is a required parameter, and it must be of type string >>>>> from >>>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/parser.rb:450:in >>>>> `process' >>>>> from >>>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >>>>> `parse' >>>>> from >>>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in >>>>> `post' >>>>> from >>>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/session.rb:456:in >>>>> `post' >>>>> from >>>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/session.rb:313:in >>>>> `register_template_bundle' >>>>> from >>>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:360:in >>>>> `method_missing' >>>>> >>>>> >>>>> the code called: >>>>> >>>>> ActivityPublisher.register_action >>>>> >>>>> >>>>> ActivityPublisher: >>>>> >>>>> def action_template >>>>> one_line_story_template "{*actor*}at {*location*} on {*date*} ." >>>>> short_story_template "{*actor*} at {*location*} on {*date*} ", >>>>> render(:partial => "short_body") >>>>> end >>>>> >>>>> >>>>> >>>>> def action(user, activity) >>>>> send_as :user_action >>>>> from user.facebook_session.user >>>>> data :location => activity.location, >>>>> :date => activity.scheduled_at.strftime("%A, %b %d") >>>>> >>>>> end >>>>> >>>>> >>>>> >>>>> I read on some PHP forum they were having a similar error recently and >>>>> talked about something concerning the Lib is not pointing to >>>>> "api.new.facebook.com" and instead is pointing to "api.facebook.com". >>>>> >>>>> Thanks for any help >>>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> 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 >>> >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -- Zhao From pshoemaker at gmail.com Thu Aug 14 18:20:13 2008 From: pshoemaker at gmail.com (Phillip Shoemaker) Date: Thu, 14 Aug 2008 15:20:13 -0700 Subject: [Facebooker-talk] When is bebo used? Message-ID: <6F563579-88F2-45A3-A38C-62E41182F61E@gmail.com> When is bebo used on an app that runs on facebook only? I was plagued with issues about the session key being invalid, so just upgraded to the latest version of facebooker. That seemed to take care of the problem, surprisingly enough. However, I now have a problem with updating my profile, updating the feed, etc., as I always get back the following: ==== You have a nil object when you didn't expect it! The error occurred while evaluating nil.post vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in `set_profile_fbml_without_bebo_adapter' vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb: 43:in `set_profile_fbml' vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in `send_message' vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing' app/controllers/imsick_controller.rb:524:in `update_profile' === My method, update_profile, was working fine until the upgrade. In 'debugging' this app (if you can really call it debugging), I've tracked it down to the session.post command in method set_profile_fbml in user.rb on line 203. Session is nil? So backing from that, I find that it is called by set_profile_fbml_without_bebo_adapter, which confused me as I figured only the facebooker adapter would be used. Any help would be appreciated. Thanks. From jonathan.otto at gmail.com Thu Aug 14 19:18:24 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Thu, 14 Aug 2008 18:18:24 -0500 Subject: [Facebooker-talk] When is bebo used? In-Reply-To: <6F563579-88F2-45A3-A38C-62E41182F61E@gmail.com> References: <6F563579-88F2-45A3-A38C-62E41182F61E@gmail.com> Message-ID: See my previous thread from last night. I had the same problem. The bug fix is in the user model. Here is the diff. In the user model def self.cast_to_facebook_id(object) - if object.respond_to?(:facebook_id) - object.facebook_id + if object.respond_to?(:uid) + object.uid else object end On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker wrote: > When is bebo used on an app that runs on facebook only? > > I was plagued with issues about the session key being invalid, so just > upgraded to the latest version of facebooker. That seemed to take care of > the problem, surprisingly enough. > > However, I now have a problem with updating my profile, updating the feed, > etc., as I always get back the following: > > ==== > > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.post > > vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in > `set_profile_fbml_without_bebo_adapter' > vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in > `set_profile_fbml' > vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in > `send_message' > vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in > `method_missing' > app/controllers/imsick_controller.rb:524:in `update_profile' > > === > > My method, update_profile, was working fine until the upgrade. In > 'debugging' this app (if you can really call it debugging), I've tracked it > down to the session.post command in method set_profile_fbml in user.rb on > line 203. Session is nil? So backing from that, I find that it is called by > set_profile_fbml_without_bebo_adapter, which confused me as I figured only > the facebooker adapter would be used. > > Any help would be appreciated. > > Thanks. > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From auswalk at gmail.com Thu Aug 14 19:36:22 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 14 Aug 2008 18:36:22 -0500 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? Message-ID: <48A4C176.3060808@gmail.com> If someone isn't logged in this filter works - it takes them to the facebook login page. However after logging in it's going to my root application URL outside of facebook. How do I set the proper redirect URL after a user logs into facebook? thanks From pshoemaker at gmail.com Thu Aug 14 22:08:07 2008 From: pshoemaker at gmail.com (Phillip Shoemaker) Date: Thu, 14 Aug 2008 19:08:07 -0700 Subject: [Facebooker-talk] When is bebo used? In-Reply-To: References: <6F563579-88F2-45A3-A38C-62E41182F61E@gmail.com> Message-ID: Yeah, I ran across that after I sent the message, thanks. Although the code isn't correct. Did you mean to do an elsif? On Aug 14, 2008, at 4:18 PM, Jonathan Otto wrote: > See my previous thread from last night. > > I had the same problem. The bug fix is in the user model. Here is > the diff. > > In the user model > > def self.cast_to_facebook_id(object) > - if object.respond_to?(:facebook_id) > - object.facebook_id > + if object.respond_to?(:uid) > + object.uid > else > object > end > > On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker > wrote: >> When is bebo used on an app that runs on facebook only? >> >> I was plagued with issues about the session key being invalid, so >> just >> upgraded to the latest version of facebooker. That seemed to take >> care of >> the problem, surprisingly enough. >> >> However, I now have a problem with updating my profile, updating >> the feed, >> etc., as I always get back the following: >> >> ==== >> >> You have a nil object when you didn't expect it! >> The error occurred while evaluating nil.post >> >> vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >> `set_profile_fbml_without_bebo_adapter' >> vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb: >> 43:in >> `set_profile_fbml' >> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >> `send_message' >> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >> `method_missing' >> app/controllers/imsick_controller.rb:524:in `update_profile' >> >> === >> >> My method, update_profile, was working fine until the upgrade. In >> 'debugging' this app (if you can really call it debugging), I've >> tracked it >> down to the session.post command in method set_profile_fbml in >> user.rb on >> line 203. Session is nil? So backing from that, I find that it is >> called by >> set_profile_fbml_without_bebo_adapter, which confused me as I >> figured only >> the facebooker adapter would be used. >> >> Any help would be appreciated. >> >> Thanks. >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> From jonathan.otto at gmail.com Thu Aug 14 22:29:45 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Thu, 14 Aug 2008 21:29:45 -0500 Subject: [Facebooker-talk] When is bebo used? In-Reply-To: References: <6F563579-88F2-45A3-A38C-62E41182F61E@gmail.com> Message-ID: It's a diff, or a patch, so the minus signs indicate code that gets removed, and the plus signs indicated code that gets added. On Thu, Aug 14, 2008 at 9:08 PM, Phillip Shoemaker wrote: > Yeah, I ran across that after I sent the message, thanks. Although the code > isn't correct. Did you mean to do an elsif? > > > On Aug 14, 2008, at 4:18 PM, Jonathan Otto wrote: > >> See my previous thread from last night. >> >> I had the same problem. The bug fix is in the user model. Here is the >> diff. >> >> In the user model >> >> def self.cast_to_facebook_id(object) >> - if object.respond_to?(:facebook_id) >> - object.facebook_id >> + if object.respond_to?(:uid) >> + object.uid >> else >> object >> end >> >> On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker >> wrote: >>> >>> When is bebo used on an app that runs on facebook only? >>> >>> I was plagued with issues about the session key being invalid, so just >>> upgraded to the latest version of facebooker. That seemed to take care of >>> the problem, surprisingly enough. >>> >>> However, I now have a problem with updating my profile, updating the >>> feed, >>> etc., as I always get back the following: >>> >>> ==== >>> >>> You have a nil object when you didn't expect it! >>> The error occurred while evaluating nil.post >>> >>> vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >>> `set_profile_fbml_without_bebo_adapter' >>> vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in >>> `set_profile_fbml' >>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >>> `send_message' >>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >>> `method_missing' >>> app/controllers/imsick_controller.rb:524:in `update_profile' >>> >>> === >>> >>> My method, update_profile, was working fine until the upgrade. In >>> 'debugging' this app (if you can really call it debugging), I've tracked >>> it >>> down to the session.post command in method set_profile_fbml in user.rb on >>> line 203. Session is nil? So backing from that, I find that it is called >>> by >>> set_profile_fbml_without_bebo_adapter, which confused me as I figured >>> only >>> the facebooker adapter would be used. >>> >>> Any help would be appreciated. >>> >>> Thanks. >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> > > From pshoemaker at gmail.com Thu Aug 14 22:45:56 2008 From: pshoemaker at gmail.com (Phillip Shoemaker) Date: Thu, 14 Aug 2008 19:45:56 -0700 Subject: [Facebooker-talk] When is bebo used? In-Reply-To: References: <6F563579-88F2-45A3-A38C-62E41182F61E@gmail.com> Message-ID: Oh! Nevermind. :) Thanks though. But now I get another odd message: Facebooker::Session::MissingOrInvalidParameter Of course, there's no more detail to that... On Aug 14, 2008, at 7:29 PM, Jonathan Otto wrote: > It's a diff, or a patch, so the minus signs indicate code that gets > removed, and the plus signs indicated code that gets added. > > On Thu, Aug 14, 2008 at 9:08 PM, Phillip Shoemaker > wrote: >> Yeah, I ran across that after I sent the message, thanks. Although >> the code >> isn't correct. Did you mean to do an elsif? >> >> >> On Aug 14, 2008, at 4:18 PM, Jonathan Otto wrote: >> >>> See my previous thread from last night. >>> >>> I had the same problem. The bug fix is in the user model. Here is >>> the >>> diff. >>> >>> In the user model >>> >>> def self.cast_to_facebook_id(object) >>> - if object.respond_to?(:facebook_id) >>> - object.facebook_id >>> + if object.respond_to?(:uid) >>> + object.uid >>> else >>> object >>> end >>> >>> On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker >> > >>> wrote: >>>> >>>> When is bebo used on an app that runs on facebook only? >>>> >>>> I was plagued with issues about the session key being invalid, so >>>> just >>>> upgraded to the latest version of facebooker. That seemed to take >>>> care of >>>> the problem, surprisingly enough. >>>> >>>> However, I now have a problem with updating my profile, updating >>>> the >>>> feed, >>>> etc., as I always get back the following: >>>> >>>> ==== >>>> >>>> You have a nil object when you didn't expect it! >>>> The error occurred while evaluating nil.post >>>> >>>> vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >>>> `set_profile_fbml_without_bebo_adapter' >>>> vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb: >>>> 43:in >>>> `set_profile_fbml' >>>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >>>> `send_message' >>>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >>>> `method_missing' >>>> app/controllers/imsick_controller.rb:524:in `update_profile' >>>> >>>> === >>>> >>>> My method, update_profile, was working fine until the upgrade. In >>>> 'debugging' this app (if you can really call it debugging), I've >>>> tracked >>>> it >>>> down to the session.post command in method set_profile_fbml in >>>> user.rb on >>>> line 203. Session is nil? So backing from that, I find that it is >>>> called >>>> by >>>> set_profile_fbml_without_bebo_adapter, which confused me as I >>>> figured >>>> only >>>> the facebooker adapter would be used. >>>> >>>> Any help would be appreciated. >>>> >>>> Thanks. >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >> >> From zhao.lu.us at gmail.com Thu Aug 14 23:09:57 2008 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Thu, 14 Aug 2008 20:09:57 -0700 Subject: [Facebooker-talk] Any requests that don't need a session In-Reply-To: References: Message-ID: I don't know for sure but this blog mentions that sessions are optional in some api calls: http://junal.wordpress.com/ "API Calls: For many calls, session keys are now optional. If you continue to pass valid session keys, FB'll ignore them. FB recommends you remove session keys from the appropriate calls now." Zhao On Thu, Aug 14, 2008 at 10:12 AM, David Clements wrote: > I am looking into my issue with refreshRefUrl and am trying to find a case > where we make calls that don't require or use a session key. Anyone know > if we have any cases of this? > > Dave > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- Zhao From pshoemaker at gmail.com Fri Aug 15 01:48:01 2008 From: pshoemaker at gmail.com (Phillip Shoemaker) Date: Thu, 14 Aug 2008 22:48:01 -0700 Subject: [Facebooker-talk] New publishing API In-Reply-To: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> Message-ID: Perhaps the problem I'm running into has to do with using the old action profile. Do I have to use this new way of publishing, or can I use the older way? On Jul 15, 2008, at 6:54 AM, Mike Mangino wrote: > I've added support for the new message templates. Check out the > documentation (http://facebooker.rubyforge.org/ and http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html > in particular) > > If you've already created a publisher, you will need to re-run the > script/generate command to create a new migration. By default, > Facebooker will now keep track of your template ids. To send a > message using the new API, you'll need to create two methods. The > first returns the templates. For example: > > class MyPublisher < Facebooker::Rails::Publisher > def publish_action_template > one_line_story_template "{*actor*} did stuff with {*friend*}" > one_line_story_template "{*actor*} did stuff" > short_story_template "{*actor*} has a title {*friend*}", > render(:partial=>"short_body") > short_story_template "{*actor*} has a title", > render(:partial=>"short_body") > full_story_template "{*actor*} has a title {*friend*}", > render(:partial=>"full_body") > end > > The name of the method needs to end in _template. > > To register this template, you can call > > MyPublisher.register_publish_action > > or, to register all templates in a publisher, you can call > > MyPublisher.register_all_templates > > > Facebooker will store the template id and the template name in the > facebook_templates table. > > To send a message from a stored template, you'll need to create > another method that registers the data: > > def publish_action(f) > from f > data :friend=>"Mike" > end > > Then, you can call > MyPublisher.deliver_publish_action > > Facebooker will look up the template id automatically. > > Let me know if you have any issues with this. > > Mike > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From mmangino at elevatedrails.com Fri Aug 15 09:01:47 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 15 Aug 2008 09:01:47 -0400 Subject: [Facebooker-talk] Any requests that don't need a session In-Reply-To: References: Message-ID: <1D2B8C57-7791-4101-B636-9759F976015D@elevatedrails.com> Yeah, just send false as the last parameter to Session#post Mike On Aug 14, 2008, at 1:12 PM, David Clements wrote: > I am looking into my issue with refreshRefUrl and am trying to find > a case where we make calls that don't require or use a session > key. Anyone know if we have any cases of this? > > Dave > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From jordanr at cs.washington.edu Fri Aug 15 11:28:49 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Fri, 15 Aug 2008 08:28:49 -0700 (PDT) Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: <48A4C176.3060808@gmail.com> References: <48A4C176.3060808@gmail.com> Message-ID: I use a before_filter thrown on a facebook auth_token. Here is the code. ====================================================== # when a user authenticates to facebook this before filter redirects # the user back to a fbml canvas page instead of to html on our server. before_filter :redirect_if_auth_key # keeps the user inside facebook def redirect_if_auth_key if( params[:auth_token]) redirect_to( url_for(:action => "whateveryouwant", :canvas => true, :only_path => false)) end end ====================================================== Try the filter in your app/controller/application.rb. Richard On Thu, 14 Aug 2008, Allen Walker wrote: > If someone isn't logged in this filter works - it takes them to the facebook > login page. However after logging in it's going to my root application URL > outside of facebook. How do I set the proper redirect URL after a user logs > into facebook? > > thanks > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From digidigo at gmail.com Fri Aug 15 11:42:04 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 15 Aug 2008 09:42:04 -0600 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: References: <48A4C176.3060808@gmail.com> Message-ID: I think this is because you have your callback url as the post add url. If you make the post add url a canvas page you won't see this behavior. Dave On Fri, Aug 15, 2008 at 9:28 AM, Richard Jordan wrote: > I use a before_filter thrown on a facebook auth_token. Here is the code. > ====================================================== > # when a user authenticates to facebook this before filter redirects > # the user back to a fbml canvas page instead of to html on our server. > before_filter :redirect_if_auth_key > > # keeps the user inside facebook > def redirect_if_auth_key > if( params[:auth_token]) > redirect_to( url_for(:action => "whateveryouwant", > :canvas => true, :only_path => false)) > end > end > ====================================================== > > Try the filter in your app/controller/application.rb. > > Richard > > > On Thu, 14 Aug 2008, Allen Walker wrote: > > If someone isn't logged in this filter works - it takes them to the >> facebook login page. However after logging in it's going to my root >> application URL outside of facebook. How do I set the proper redirect URL >> after a user logs into facebook? >> >> thanks >> _______________________________________________ >> Facebooker-talk mailing list >> 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: From dara at catch.fm Fri Aug 15 11:54:46 2008 From: dara at catch.fm (dara) Date: Fri, 15 Aug 2008 16:54:46 +0100 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: References: <48A4C176.3060808@gmail.com> Message-ID: <48A5A6C6.4070405@catch.fm> True, you can set post add/authorise URL's, but these are static. Is this what you want, or is there good a way to let a user continue an action post add/authorise ? i.e. 1. click a link to do 'something' 2. add/authorise the application 3. continue on with the action requested in 1 David Clements wrote: > I think this is because you have your callback url as the post add > url. If you make the post add url a canvas page you won't see this > behavior. > > Dave > > > On Fri, Aug 15, 2008 at 9:28 AM, Richard Jordan > > wrote: > > I use a before_filter thrown on a facebook auth_token. Here is > the code. ====================================================== > # when a user authenticates to facebook this before filter redirects > # the user back to a fbml canvas page instead of to html on our > server. > before_filter :redirect_if_auth_key > > # keeps the user inside facebook > def redirect_if_auth_key > if( params[:auth_token]) > redirect_to( url_for(:action => "whateveryouwant", > :canvas => true, :only_path => false)) > end > end > ====================================================== > > Try the filter in your app/controller/application.rb. > > Richard > > > On Thu, 14 Aug 2008, Allen Walker wrote: > > If someone isn't logged in this filter works - it takes them > to the facebook login page. However after logging in it's > going to my root application URL outside of facebook. How do I > set the proper redirect URL after a user logs into facebook? > > thanks > _______________________________________________ > Facebooker-talk mailing list > 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 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From digidigo at gmail.com Fri Aug 15 11:58:13 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 15 Aug 2008 09:58:13 -0600 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: <48A5A6C6.4070405@catch.fm> References: <48A4C176.3060808@gmail.com> <48A5A6C6.4070405@catch.fm> Message-ID: Yes, You can overide the install url in your application.rb by doing something like this: def application_is_not_installed_by_facebook_user redirect_to acebook_session.install_url(:next => next_path() ) end Then define next path as a relative part of a canvas url. Dave On Fri, Aug 15, 2008 at 9:54 AM, dara wrote: > True, you can set post add/authorise URL's, but these are static. > > Is this what you want, or is there good a way to let a user continue an > action post add/authorise ? > > i.e. > > 1. click a link to do 'something' > 2. add/authorise the application > 3. continue on with the action requested in 1 > > > David Clements wrote: > >> I think this is because you have your callback url as the post add url. >> If you make the post add url a canvas page you won't see this behavior. >> >> Dave >> >> >> On Fri, Aug 15, 2008 at 9:28 AM, Richard Jordan < >> jordanr at cs.washington.edu > wrote: >> >> I use a before_filter thrown on a facebook auth_token. Here is >> the code. ====================================================== >> # when a user authenticates to facebook this before filter redirects >> # the user back to a fbml canvas page instead of to html on our >> server. >> before_filter :redirect_if_auth_key >> >> # keeps the user inside facebook >> def redirect_if_auth_key >> if( params[:auth_token]) >> redirect_to( url_for(:action => "whateveryouwant", >> :canvas => true, :only_path => false)) >> end >> end >> ====================================================== >> >> Try the filter in your app/controller/application.rb. >> >> Richard >> >> >> On Thu, 14 Aug 2008, Allen Walker wrote: >> >> If someone isn't logged in this filter works - it takes them >> to the facebook login page. However after logging in it's >> going to my root application URL outside of facebook. How do I >> set the proper redirect URL after a user logs into facebook? >> >> thanks >> _______________________________________________ >> Facebooker-talk mailing list >> 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 >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Fri Aug 15 11:58:58 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 15 Aug 2008 09:58:58 -0600 Subject: [Facebooker-talk] Any requests that don't need a session In-Reply-To: <1D2B8C57-7791-4101-B636-9759F976015D@elevatedrails.com> References: <1D2B8C57-7791-4101-B636-9759F976015D@elevatedrails.com> Message-ID: Okay, So it looks like to me that the refreshRefUrl will need this added. Can anyone else confirm what I am seeing? Dave On Fri, Aug 15, 2008 at 7:01 AM, Mike Mangino wrote: > Yeah, just send false as the last parameter to Session#post > > Mike > > On Aug 14, 2008, at 1:12 PM, David Clements wrote: > > I am looking into my issue with refreshRefUrl and am trying to find a case >> where we make calls that don't require or use a session key. Anyone know >> if we have any cases of this? >> >> Dave >> >> _______________________________________________ >> 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: From mmangino at elevatedrails.com Fri Aug 15 12:45:52 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 15 Aug 2008 12:45:52 -0400 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: References: <48A4C176.3060808@gmail.com> <48A5A6C6.4070405@catch.fm> Message-ID: That should work for the authorize url as well, somebody just needs to submit a patch (hint hint) Mike On Aug 15, 2008, at 11:58 AM, David Clements wrote: > Yes, You can overide the install url in your application.rb by > doing something like this: > > > def application_is_not_installed_by_facebook_user > redirect_to acebook_session.install_url(:next => next_path() ) > end > > Then define next path as a relative part of a canvas url. > > Dave > > > > > On Fri, Aug 15, 2008 at 9:54 AM, dara wrote: > True, you can set post add/authorise URL's, but these are static. > > Is this what you want, or is there good a way to let a user continue > an action post add/authorise ? > > i.e. > > 1. click a link to do 'something' > 2. add/authorise the application > 3. continue on with the action requested in 1 > > > David Clements wrote: > I think this is because you have your callback url as the post add > url. If you make the post add url a canvas page you won't see this > behavior. > > Dave > > > On Fri, Aug 15, 2008 at 9:28 AM, Richard Jordan > wrote: > > I use a before_filter thrown on a facebook auth_token. Here is > the code. ====================================================== > # when a user authenticates to facebook this before filter > redirects > # the user back to a fbml canvas page instead of to html on our > server. > before_filter :redirect_if_auth_key > > # keeps the user inside facebook > def redirect_if_auth_key > if( params[:auth_token]) > redirect_to( url_for(:action => "whateveryouwant", > :canvas => true, :only_path => false)) > end > end > ====================================================== > > Try the filter in your app/controller/application.rb. > > Richard > > > On Thu, 14 Aug 2008, Allen Walker wrote: > > If someone isn't logged in this filter works - it takes them > to the facebook login page. However after logging in it's > going to my root application URL outside of facebook. How do I > set the proper redirect URL after a user logs into facebook? > > thanks > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org 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 > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Fri Aug 15 12:47:29 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 15 Aug 2008 12:47:29 -0400 Subject: [Facebooker-talk] Any requests that don't need a session In-Reply-To: References: <1D2B8C57-7791-4101-B636-9759F976015D@elevatedrails.com> Message-ID: I would recommend avoiding refresh_ref_url where possible. We've found it to be really temperamental. We've had much better luck with handle refs. That said, it looks like a good fix. Will it break Bebo? Mike On Aug 15, 2008, at 11:58 AM, David Clements wrote: > Okay, > > So it looks like to me that the refreshRefUrl will need this > added. Can anyone else confirm what I am seeing? > > Dave > > > On Fri, Aug 15, 2008 at 7:01 AM, Mike Mangino > wrote: > Yeah, just send false as the last parameter to Session#post > > Mike > > > On Aug 14, 2008, at 1:12 PM, David Clements wrote: > > I am looking into my issue with refreshRefUrl and am trying to find > a case where we make calls that don't require or use a session > key. Anyone know if we have any cases of this? > > Dave > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Fri Aug 15 12:48:48 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 15 Aug 2008 10:48:48 -0600 Subject: [Facebooker-talk] Any requests that don't need a session In-Reply-To: References: <1D2B8C57-7791-4101-B636-9759F976015D@elevatedrails.com> Message-ID: I'll test the setRefHandle call as well. And yes, I think bebo will need to have a monkey patch in the adapter. dave On Fri, Aug 15, 2008 at 10:47 AM, Mike Mangino wrote: > I would recommend avoiding refresh_ref_url where possible. We've found it > to be really temperamental. We've had much better luck with handle refs. > That said, it looks like a good fix. Will it break Bebo? > > Mike > > > On Aug 15, 2008, at 11:58 AM, David Clements wrote: > > Okay, >> >> So it looks like to me that the refreshRefUrl will need this added. Can >> anyone else confirm what I am seeing? >> >> Dave >> >> >> On Fri, Aug 15, 2008 at 7:01 AM, Mike Mangino >> wrote: >> Yeah, just send false as the last parameter to Session#post >> >> Mike >> >> >> On Aug 14, 2008, at 1:12 PM, David Clements wrote: >> >> I am looking into my issue with refreshRefUrl and am trying to find a case >> where we make calls that don't require or use a session key. Anyone know >> if we have any cases of this? >> >> Dave >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> >> > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Sat Aug 16 00:38:16 2008 From: auswalk at gmail.com (Allen Walker) Date: Fri, 15 Aug 2008 23:38:16 -0500 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: References: <48A4C176.3060808@gmail.com> Message-ID: <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> I did the following and it's still redirecting to my base web page url ( www.xxx.com) and not my facebook app: in application.rb I have: before_filter :redirect_if_auth_key *def redirect_if_auth_key if( params[:auth_token]) redirect_to( url_for(:controller =>"public", :action => "index", :canvas => true, :only_path => false)) end end* On Fri, Aug 15, 2008 at 10:28 AM, Richard Jordan wrote: > I use a before_filter thrown on a facebook auth_token. Here is the code. > ====================================================== > # when a user authenticates to facebook this before filter redirects > # the user back to a fbml canvas page instead of to html on our server. > before_filter :redirect_if_auth_key > > # keeps the user inside facebook > def redirect_if_auth_key > if( params[:auth_token]) > redirect_to( url_for(:action => "whateveryouwant", > :canvas => true, :only_path => false)) > end > end > ====================================================== > > Try the filter in your app/controller/application.rb. > > Richard > > On Thu, 14 Aug 2008, Allen Walker wrote: > > If someone isn't logged in this filter works - it takes them to the >> facebook login page. However after logging in it's going to my root >> application URL outside of facebook. How do I set the proper redirect URL >> after a user logs into facebook? >> >> thanks >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> -- http://auswalk.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pshoemaker at gmail.com Sat Aug 16 14:17:05 2008 From: pshoemaker at gmail.com (Phillip Shoemaker) Date: Sat, 16 Aug 2008 11:17:05 -0700 Subject: [Facebooker-talk] Best way to debug this? Message-ID: <92E2320B-1933-4C1A-AF03-20696BF977D4@gmail.com> I am getting this error: --------------------------------------- Facebooker::Session::MissingOrInvalidParameter in ImsickController#send_infection Invalid parameter RAILS_ROOT: /home/graynood/rails/imsick Application Trace | Framework Trace | Full Trace vendor/plugins/facebooker/lib/facebooker/parser.rb:455:in `process' vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post' vendor/plugins/facebooker/lib/facebooker/session.rb:456:in `post' vendor/plugins/facebooker/lib/facebooker/session.rb:291:in `send_notification' vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in `send_message' vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing' app/controllers/imsick_controller.rb:498:in `send_infection' -------------------------------------- What is the best way to figure out what the parameter it says is missing or invalid? Any ideas what it might be, as this worked fine with a previous version of facebooker (before bebo and before the new publisher api). Thanks. From jordanr at cs.washington.edu Sat Aug 16 15:17:00 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Sat, 16 Aug 2008 12:17:00 -0700 (PDT) Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> References: <48A4C176.3060808@gmail.com> <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> Message-ID: Gee, nothing ever works it seems. Is the filter ever hitting? Do you ever get params[:auth_token] to be true? Is the filter the problem or the redirection? I have an app up and working and available on GitHub with that code in it, > git clone git://github.com/jordanr/couple-rater.git Here are some of my facebook settings, > Callback URL > http://www.xxx.com/ > Canvas URL > http://apps.facebook.com/couplerater/ > Post-Add URL > http://apps.facebook.com/couplerater > Post-Remove URL > http://www.xxx.com/uninstall But really, I defer to Dave and Mike on anything. I'd first try to do it their way. Richard On Fri, 15 Aug 2008, Allen Walker wrote: > I did the following and it's still redirecting to my base web page url ( > www.xxx.com) and not my facebook app: > > in application.rb I have: > > before_filter :redirect_if_auth_key > > *def redirect_if_auth_key > if( params[:auth_token]) > redirect_to( url_for(:controller =>"public", :action => "index", > :canvas => true, :only_path => false)) > end > end* > > > > On Fri, Aug 15, 2008 at 10:28 AM, Richard Jordan > wrote: > >> I use a before_filter thrown on a facebook auth_token. Here is the code. >> ====================================================== >> # when a user authenticates to facebook this before filter redirects >> # the user back to a fbml canvas page instead of to html on our server. >> before_filter :redirect_if_auth_key >> >> # keeps the user inside facebook >> def redirect_if_auth_key >> if( params[:auth_token]) >> redirect_to( url_for(:action => "whateveryouwant", >> :canvas => true, :only_path => false)) >> end >> end >> ====================================================== >> >> Try the filter in your app/controller/application.rb. >> >> Richard >> >> On Thu, 14 Aug 2008, Allen Walker wrote: >> >> If someone isn't logged in this filter works - it takes them to the >>> facebook login page. However after logging in it's going to my root >>> application URL outside of facebook. How do I set the proper redirect URL >>> after a user logs into facebook? >>> >>> thanks >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> >>> > > > From auswalk at gmail.com Sat Aug 16 17:58:27 2008 From: auswalk at gmail.com (Allen Walker) Date: Sat, 16 Aug 2008 16:58:27 -0500 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: References: <48A4C176.3060808@gmail.com> <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> Message-ID: <48A74D83.2050405@gmail.com> It appears to be going to "www.facebook.com/myapp/relative_url" instead of "apps.new.facebook.com/myapp/relative_url" Richard Jordan wrote: > Gee, nothing ever works it seems. Is the filter ever hitting? Do you > ever get params[:auth_token] to be true? Is the filter the problem or > the redirection? > > I have an app up and working and available on GitHub with that code in > it, >> git clone git://github.com/jordanr/couple-rater.git > > Here are some of my facebook settings, >> Callback URL >> http://www.xxx.com/ >> Canvas URL >> http://apps.facebook.com/couplerater/ >> Post-Add URL >> http://apps.facebook.com/couplerater >> Post-Remove URL >> http://www.xxx.com/uninstall > > But really, I defer to Dave and Mike on anything. I'd first try to do > it their way. > > Richard > > On Fri, 15 Aug 2008, Allen Walker wrote: > >> I did the following and it's still redirecting to my base web page url ( >> www.xxx.com) and not my facebook app: >> >> in application.rb I have: >> >> before_filter :redirect_if_auth_key >> >> *def redirect_if_auth_key >> if( params[:auth_token]) >> redirect_to( url_for(:controller =>"public", :action => "index", >> :canvas => true, :only_path => false)) >> end >> end* >> >> >> >> On Fri, Aug 15, 2008 at 10:28 AM, Richard Jordan >> wrote: >> >>> I use a before_filter thrown on a facebook auth_token. Here is the >>> code. >>> ====================================================== >>> # when a user authenticates to facebook this before filter redirects >>> # the user back to a fbml canvas page instead of to html on our >>> server. >>> before_filter :redirect_if_auth_key >>> >>> # keeps the user inside facebook >>> def redirect_if_auth_key >>> if( params[:auth_token]) >>> redirect_to( url_for(:action => "whateveryouwant", >>> :canvas => true, :only_path => false)) >>> end >>> end >>> ====================================================== >>> >>> Try the filter in your app/controller/application.rb. >>> >>> Richard >>> >>> On Thu, 14 Aug 2008, Allen Walker wrote: >>> >>> If someone isn't logged in this filter works - it takes them to the >>>> facebook login page. However after logging in it's going to my root >>>> application URL outside of facebook. How do I set the proper >>>> redirect URL >>>> after a user logs into facebook? >>>> >>>> thanks >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> >>>> >> >> >> > From jordanr at cs.washington.edu Sat Aug 16 18:26:13 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Sat, 16 Aug 2008 15:26:13 -0700 (PDT) Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: <48A74D83.2050405@gmail.com> References: <48A4C176.3060808@gmail.com> <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> <48A74D83.2050405@gmail.com> Message-ID: So now you redirect to a facebook error page that says something like "this page does not exist"? You are no longer redirected back to your server? Richard On Sat, 16 Aug 2008, Allen Walker wrote: > It appears to be going to "www.facebook.com/myapp/relative_url" instead of > "apps.new.facebook.com/myapp/relative_url" > > Richard Jordan wrote: >> Gee, nothing ever works it seems. Is the filter ever hitting? Do you >> ever get params[:auth_token] to be true? Is the filter the problem or the >> redirection? >> >> I have an app up and working and available on GitHub with that code in it, >> > git clone git://github.com/jordanr/couple-rater.git >> >> Here are some of my facebook settings, >> > Callback URL >> > http://www.xxx.com/ >> > Canvas URL >> > http://apps.facebook.com/couplerater/ >> > Post-Add URL >> > http://apps.facebook.com/couplerater >> > Post-Remove URL >> > http://www.xxx.com/uninstall >> >> But really, I defer to Dave and Mike on anything. I'd first try to do it >> their way. >> >> Richard >> >> On Fri, 15 Aug 2008, Allen Walker wrote: >> >> > I did the following and it's still redirecting to my base web page url ( >> > www.xxx.com) and not my facebook app: >> > >> > in application.rb I have: >> > >> > before_filter :redirect_if_auth_key >> > >> > *def redirect_if_auth_key >> > if( params[:auth_token]) >> > redirect_to( url_for(:controller =>"public", :action => "index", >> > : canvas => true, :only_path => false)) >> > end >> > end* >> > >> > >> > >> > On Fri, Aug 15, 2008 at 10:28 AM, Richard Jordan >> > wrote: >> > >> > > I use a before_filter thrown on a facebook auth_token. Here is the >> > > code. >> > > ====================================================== >> > > # when a user authenticates to facebook this before filter redirects >> > > # the user back to a fbml canvas page instead of to html on our >> > > server. >> > > before_filter :redirect_if_auth_key >> > > >> > > # keeps the user inside facebook >> > > def redirect_if_auth_key >> > > if( params[:auth_token]) >> > > redirect_to( url_for(:action => "whateveryouwant", >> > > : canvas => true, :only_path => false)) >> > > end >> > > end >> > > ====================================================== >> > > >> > > Try the filter in your app/controller/application.rb. >> > > >> > > Richard >> > > >> > > On Thu, 14 Aug 2008, Allen Walker wrote: >> > > >> > > If someone isn't logged in this filter works - it takes them to the >> > > > facebook login page. However after logging in it's going to my root >> > > > application URL outside of facebook. How do I set the proper >> > > > redirect URL >> > > > after a user logs into facebook? >> > > > >> > > > thanks >>>>> _______________________________________________ >> > > > Facebooker-talk mailing list >> > > > Facebooker-talk at rubyforge.org >> > > > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > > >> > > > >> > > > >> > >> > >> > >> > > > From auswalk at gmail.com Sat Aug 16 18:31:33 2008 From: auswalk at gmail.com (Allen Walker) Date: Sat, 16 Aug 2008 17:31:33 -0500 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: References: <48A4C176.3060808@gmail.com> <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> <48A74D83.2050405@gmail.com> Message-ID: <48A75545.1040405@gmail.com> When I try to access the app url and I'm not logged in, it redirects to "this page doesn't exist" with the URL: http://www.facebook.com/myapp/activities/12 So I then login and then it goes to www.facebook.com home page. Richard Jordan wrote: > So now you redirect to a facebook error page that says something like > "this page does not exist"? You are no longer redirected back to your > server? > > Richard > > On Sat, 16 Aug 2008, Allen Walker wrote: > >> It appears to be going to "www.facebook.com/myapp/relative_url" >> instead of "apps.new.facebook.com/myapp/relative_url" >> >> Richard Jordan wrote: >>> Gee, nothing ever works it seems. Is the filter ever hitting? Do you >>> ever get params[:auth_token] to be true? Is the filter the problem >>> or the >>> redirection? >>> >>> I have an app up and working and available on GitHub with that code >>> in it, >>> > git clone git://github.com/jordanr/couple-rater.git >>> >>> Here are some of my facebook settings, >>> > Callback URL >>> > http://www.xxx.com/ >>> > Canvas URL >>> > http://apps.facebook.com/couplerater/ >>> > Post-Add URL >>> > http://apps.facebook.com/couplerater >>> > Post-Remove URL >>> > http://www.xxx.com/uninstall >>> >>> But really, I defer to Dave and Mike on anything. I'd first try to >>> do it >>> their way. >>> >>> Richard >>> >>> On Fri, 15 Aug 2008, Allen Walker wrote: >>> >>> > I did the following and it's still redirecting to my base web >>> page url ( >>> > www.xxx.com) and not my facebook app: >>> > > in application.rb I have: >>> > > before_filter :redirect_if_auth_key >>> > > *def redirect_if_auth_key >>> > if( params[:auth_token]) >>> > redirect_to( url_for(:controller =>"public", :action => >>> "index", >>> > : canvas => true, :only_path => false)) >>> > end >>> > end* >>> > > > > On Fri, Aug 15, 2008 at 10:28 AM, Richard Jordan >>> > wrote: >>> > > > I use a before_filter thrown on a facebook auth_token. Here >>> is the > > code. >>> > > ====================================================== >>> > > # when a user authenticates to facebook this before filter >>> redirects >>> > > # the user back to a fbml canvas page instead of to html on our >>> > > server. >>> > > before_filter :redirect_if_auth_key >>> > > > > # keeps the user inside facebook >>> > > def redirect_if_auth_key >>> > > if( params[:auth_token]) >>> > > redirect_to( url_for(:action => "whateveryouwant", >>> > > : canvas => true, :only_path => false)) >>> > > end >>> > > end >>> > > ====================================================== >>> > > > > Try the filter in your app/controller/application.rb. >>> > > > > Richard >>> > > > > On Thu, 14 Aug 2008, Allen Walker wrote: >>> > > > > If someone isn't logged in this filter works - it takes >>> them to the >>> > > > facebook login page. However after logging in it's going to >>> my root >>> > > > application URL outside of facebook. How do I set the proper >>> > > > redirect URL >>> > > > after a user logs into facebook? >>> > > > > > > thanks >>>>>> _______________________________________________ >>> > > > Facebooker-talk mailing list >>> > > > Facebooker-talk at rubyforge.org >>> > > > http://rubyforge.org/mailman/listinfo/facebooker-talk >>> > > > > > > > > > > > > >> >> >> > From jordanr at cs.washington.edu Sat Aug 16 19:00:20 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Sat, 16 Aug 2008 16:00:20 -0700 (PDT) Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: <48A75545.1040405@gmail.com> References: <48A4C176.3060808@gmail.com> <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> <48A74D83.2050405@gmail.com> <48A75545.1040405@gmail.com> Message-ID: Weird, I've never seen that before. But, I think you're real close -- some strange bug somewhere. Sorry, I really can't image where. On Sat, 16 Aug 2008, Allen Walker wrote: > When I try to access the app url and I'm not logged in, it redirects to "this > page doesn't exist" with the URL: http://www.facebook.com/myapp/activities/12 > > So I then login and then it goes to www.facebook.com home page. > > > > Richard Jordan wrote: >> So now you redirect to a facebook error page that says something like >> "this page does not exist"? You are no longer redirected back to your >> server? >> >> Richard >> >> On Sat, 16 Aug 2008, Allen Walker wrote: >> >> > It appears to be going to "www.facebook.com/myapp/relative_url" instead >> > of "apps.new.facebook.com/myapp/relative_url" >> > >> > Richard Jordan wrote: >> > > Gee, nothing ever works it seems. Is the filter ever hitting? Do >> > > you >> > > ever get params[:auth_token] to be true? Is the filter the problem >> > > or the >> > > redirection? >> > > >> > > I have an app up and working and available on GitHub with that code in >> > > it, >> > > > git clone git://github.com/jordanr/couple-rater.git >> > > >> > > Here are some of my facebook settings, >> > > > Callback URL >> > > > http://www.xxx.com/ >> > > > Canvas URL >> > > > http://apps.facebook.com/couplerater/ >> > > > Post-Add URL >> > > > http://apps.facebook.com/couplerater >> > > > Post-Remove URL >> > > > http://www.xxx.com/uninstall >> > > >> > > But really, I defer to Dave and Mike on anything. I'd first try to do >> > > it >> > > their way. >> > > >> > > Richard >> > > >> > > On Fri, 15 Aug 2008, Allen Walker wrote: >> > > >> > > > I did the following and it's still redirecting to my base web >> > > page url ( >> > > > www.xxx.com) and not my facebook app: >> > > > > in application.rb I have: >> > > > > before_filter :redirect_if_auth_key >> > > > > *def redirect_if_auth_key >> > > > if( params[:auth_token]) >> > > > redirect_to( url_for(:controller =>"public", :action => >> > > "index", >> > > > : canvas => true, :only_path => false)) >> > > > end >> > > > end* >> > > > > > > On Fri, Aug 15, 2008 at 10:28 AM, Richard Jordan >> > > > wrote: >> > > > > > I use a before_filter thrown on a facebook auth_token. Here >> > > is the > > code. >> > > > > ====================================================== >> > > > > # when a user authenticates to facebook this before filter >> > > redirects >> > > > > # the user back to a fbml canvas page instead of to html on our >> > > > > server. >> > > > > before_filter :redirect_if_auth_key >> > > > > > > # keeps the user inside facebook >> > > > > def redirect_if_auth_key >> > > > > if( params[:auth_token]) >> > > > > redirect_to( url_for(:action => "whateveryouwant", >> > > > > : canvas => true, :only_path => false)) >> > > > > end >> > > > > end >> > > > > ====================================================== >> > > > > > > Try the filter in your app/controller/application.rb. >> > > > > > > Richard >> > > > > > > On Thu, 14 Aug 2008, Allen Walker wrote: >> > > > > > > If someone isn't logged in this filter works - it takes >> > > them to the >> > > > > > facebook login page. However after logging in it's going to >> > > my root >> > > > > > application URL outside of facebook. How do I set the proper >> > > > > > redirect URL >> > > > > > after a user logs into facebook? >> > > > > > > > > thanks >>>>>>> _______________________________________________ >> > > > > > Facebooker-talk mailing list >> > > > > > Facebooker-talk at rubyforge.org >> > > > > > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > > > > > > > > > > > > > >> > >> > >> > >> > > From digidigo at gmail.com Sat Aug 16 20:00:03 2008 From: digidigo at gmail.com (David Clements) Date: Sat, 16 Aug 2008 18:00:03 -0600 Subject: [Facebooker-talk] ensure_authenticated_to_facebook - redirect? In-Reply-To: References: <48A4C176.3060808@gmail.com> <971598f90808152138m5a9fbc20yf24d631a17ecaa65@mail.gmail.com> Message-ID: Are you returning false in that before filter? By returning false you will halt the request execution. Dave On Sat, Aug 16, 2008 at 1:17 PM, Richard Jordan wrote: > Gee, nothing ever works it seems. Is the filter ever hitting? Do you ever > get params[:auth_token] to be true? Is the filter the problem or the > redirection? > > I have an app up and working and available on GitHub with that code in it, > >> git clone git://github.com/jordanr/couple-rater.git >> > > Here are some of my facebook settings, > >> Callback URL >> http://www.xxx.com/ >> Canvas URL >> http://apps.facebook.com/couplerater/ >> Post-Add URL >> http://apps.facebook.com/couplerater >> Post-Remove URL >> http://www.xxx.com/uninstall >> > > But really, I defer to Dave and Mike on anything. I'd first try to do it > their way. > > Richard > > > On Fri, 15 Aug 2008, Allen Walker wrote: > > I did the following and it's still redirecting to my base web page url ( >> www.xxx.com) and not my facebook app: >> >> in application.rb I have: >> >> before_filter :redirect_if_auth_key >> >> *def redirect_if_auth_key >> if( params[:auth_token]) >> redirect_to( url_for(:controller =>"public", :action => "index", >> :canvas => true, :only_path => false)) >> end >> end* >> >> >> >> On Fri, Aug 15, 2008 at 10:28 AM, Richard Jordan >> wrote: >> >> I use a before_filter thrown on a facebook auth_token. Here is the code. >>> ====================================================== >>> # when a user authenticates to facebook this before filter redirects >>> # the user back to a fbml canvas page instead of to html on our server. >>> before_filter :redirect_if_auth_key >>> >>> # keeps the user inside facebook >>> def redirect_if_auth_key >>> if( params[:auth_token]) >>> redirect_to( url_for(:action => "whateveryouwant", >>> :canvas => true, :only_path => false)) >>> end >>> end >>> ====================================================== >>> >>> Try the filter in your app/controller/application.rb. >>> >>> Richard >>> >>> On Thu, 14 Aug 2008, Allen Walker wrote: >>> >>> If someone isn't logged in this filter works - it takes them to the >>> >>>> facebook login page. However after logging in it's going to my root >>>> application URL outside of facebook. How do I set the proper redirect >>>> URL >>>> after a user logs into facebook? >>>> >>>> thanks >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> 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: From digidigo at gmail.com Sat Aug 16 22:37:45 2008 From: digidigo at gmail.com (David Clements) Date: Sat, 16 Aug 2008 20:37:45 -0600 Subject: [Facebooker-talk] Best way to debug this? In-Reply-To: <92E2320B-1933-4C1A-AF03-20696BF977D4@gmail.com> References: <92E2320B-1933-4C1A-AF03-20696BF977D4@gmail.com> Message-ID: I usualy log the API calls and inspect the messages going back and forth between your server and facebook. I have some code on the tutorial that should help inspect the api calls http://apps.new.facebook.com/facebooker_tutorial/getting_started/log_api_calls I tested notifications on the tutorial and they appear to be working in that context. Dave On Sat, Aug 16, 2008 at 12:17 PM, Phillip Shoemaker wrote: > I am getting this error: > > --------------------------------------- > Facebooker::Session::MissingOrInvalidParameter in > ImsickController#send_infection > > Invalid parameter > > RAILS_ROOT: /home/graynood/rails/imsick > Application Trace | Framework Trace | Full Trace > > vendor/plugins/facebooker/lib/facebooker/parser.rb:455:in `process' > vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' > vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post' > vendor/plugins/facebooker/lib/facebooker/session.rb:456:in `post' > vendor/plugins/facebooker/lib/facebooker/session.rb:291:in > `send_notification' > vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in > `send_message' > vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in > `method_missing' > app/controllers/imsick_controller.rb:498:in `send_infection' > -------------------------------------- > > What is the best way to figure out what the parameter it says is missing or > invalid? Any ideas what it might be, as this worked fine with a previous > version of facebooker (before bebo and before the new publisher api). > > Thanks. > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Sun Aug 17 12:26:36 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Sun, 17 Aug 2008 12:26:36 -0400 Subject: [Facebooker-talk] New App installs get redirected to callbackurl Message-ID: 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: From digidigo at gmail.com Sun Aug 17 22:51:07 2008 From: digidigo at gmail.com (David Clements) Date: Sun, 17 Aug 2008 20:51:07 -0600 Subject: [Facebooker-talk] New App installs get redirected to callbackurl In-Reply-To: References: Message-ID: 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 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: From schroeder.ken at gmail.com Sun Aug 17 23:01:23 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Sun, 17 Aug 2008 23:01:23 -0400 Subject: [Facebooker-talk] New App installs get redirected to callbackurl In-Reply-To: References: Message-ID: 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 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 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: From auswalk at gmail.com Mon Aug 18 01:41:50 2008 From: auswalk at gmail.com (Allen Walker) Date: Mon, 18 Aug 2008 00:41:50 -0500 Subject: [Facebooker-talk] New App installs get redirected to callbackurl In-Reply-To: References: Message-ID: <48A90B9E.2080708@gmail.com> 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 > 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 > > 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 > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From schroeder.ken at gmail.com Mon Aug 18 01:46:55 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 18 Aug 2008 01:46:55 -0400 Subject: [Facebooker-talk] New App installs get redirected to callbackurl In-Reply-To: <48A90B9E.2080708@gmail.com> References: <48A90B9E.2080708@gmail.com> Message-ID: 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 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>> 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 >> > 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 >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Mon Aug 18 01:51:18 2008 From: auswalk at gmail.com (Allen Walker) Date: Mon, 18 Aug 2008 00:51:18 -0500 Subject: [Facebooker-talk] New App installs get redirected to callbackurl In-Reply-To: References: <48A90B9E.2080708@gmail.com> Message-ID: <48A90DD6.5050101@gmail.com> 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 > 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 > > >> 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 > > >> 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 > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > From schroeder.ken at gmail.com Mon Aug 18 08:13:53 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 18 Aug 2008 08:13:53 -0400 Subject: [Facebooker-talk] New App installs get redirected to callbackurl In-Reply-To: <48A90DD6.5050101@gmail.com> References: <48A90B9E.2080708@gmail.com> <48A90DD6.5050101@gmail.com> Message-ID: 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 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>> 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 >> >> >> 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 >> >> > >> 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 >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Mon Aug 18 13:21:26 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 18 Aug 2008 13:21:26 -0400 Subject: [Facebooker-talk] fb_sig_friends length Message-ID: Anyone run into any issues with fb_sig_friends having to much data? I believe I was running into an issue previously when submitting a form with a lot of data and erroring out. Wondered if there are any known issues for people with a lot of friends. Thanks --ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjclark at scidept.com Mon Aug 18 14:21:42 2008 From: bjclark at scidept.com (BJ Clark) Date: Mon, 18 Aug 2008 12:21:42 -0600 Subject: [Facebooker-talk] fb_sig_friends length In-Reply-To: References: Message-ID: Ken, I could only see a problem if you were to try to stick them all in a GET request, but as long as it is a POST, there shouldn't be a problem. What error(s) do you see? BJ On Aug 18, 2008, at 11:21 AM, Ken Schroeder wrote: > Anyone run into any issues with fb_sig_friends having to much data? > I believe I was running into an issue previously when submitting a > form with a lot of data and erroring out. Wondered if there are any > known issues for people with a lot of friends. Thanks --ken > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From schroeder.ken at gmail.com Mon Aug 18 14:37:13 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 18 Aug 2008 14:37:13 -0400 Subject: [Facebooker-talk] fb_sig_friends length In-Reply-To: References: Message-ID: Unfortunately I dont' have the exact error from the scenario I was referring too but a form submit was failing for no good reason when the request had over 4000 characters. I haven't duplicated the problem since but seeing people with 2000+ friends and such makes me ask to be sure no one else has seen any related issues. On Mon, Aug 18, 2008 at 2:21 PM, BJ Clark wrote: > Ken, > I could only see a problem if you were to try to stick them all in a GET > request, but as long as it is a POST, there shouldn't be a problem. > > What error(s) do you see? > > > BJ > > > On Aug 18, 2008, at 11:21 AM, Ken Schroeder wrote: > > Anyone run into any issues with fb_sig_friends having to much data? I >> believe I was running into an issue previously when submitting a form with a >> lot of data and erroring out. Wondered if there are any known issues for >> people with a lot of friends. Thanks --ken >> _______________________________________________ >> Facebooker-talk mailing list >> 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: From bjclark at scidept.com Mon Aug 18 15:34:43 2008 From: bjclark at scidept.com (BJ Clark) Date: Mon, 18 Aug 2008 13:34:43 -0600 Subject: [Facebooker-talk] fb_sig_friends length In-Reply-To: References: Message-ID: Ken, Well, the POST request coming into your server wasn't having any problem with that many friends in the parameter, so I'm not sure how it would fail going the other way around. If that makes sense. BJ On Aug 18, 2008, at 12:37 PM, Ken Schroeder wrote: > Unfortunately I dont' have the exact error from the scenario I was > referring too but a form submit was failing for no good reason when > the request had over 4000 characters. I haven't duplicated the > problem since but seeing people with 2000+ friends and such makes me > ask to be sure no one else has seen any related issues. > > On Mon, Aug 18, 2008 at 2:21 PM, BJ Clark wrote: > Ken, > I could only see a problem if you were to try to stick them all in a > GET request, but as long as it is a POST, there shouldn't be a > problem. > > What error(s) do you see? > > > BJ > > > > On Aug 18, 2008, at 11:21 AM, Ken Schroeder wrote: > > Anyone run into any issues with fb_sig_friends having to much data? > I believe I was running into an issue previously when submitting a > form with a lot of data and erroring out. Wondered if there are any > known issues for people with a lot of friends. Thanks --ken > _______________________________________________ > Facebooker-talk mailing list > 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: From schroeder.ken at gmail.com Mon Aug 18 16:29:30 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 18 Aug 2008 16:29:30 -0400 Subject: [Facebooker-talk] Ad Sense Accounts Message-ID: Got the social media apps running easily after some help from the alias and of course the Facebooker Tutorial. Anyone have any issues getting an Adsense account? I applied hoping to test that out as well and they denied my account request becuase my page was protected by login. I think I gave them my external address wondering if other have had success giving them your canvas url or were also getting denied. Thanks --ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Mon Aug 18 16:50:48 2008 From: digidigo at gmail.com (David Clements) Date: Mon, 18 Aug 2008 14:50:48 -0600 Subject: [Facebooker-talk] Ad Sense Accounts In-Reply-To: References: Message-ID: The tutorial has an adsense account. But it is not protected by a login. The adsense rules allow you to get an account for one site and use it on another. If you have any other external sites , a blog maybe, you could use that? Dave On Mon, Aug 18, 2008 at 2:29 PM, Ken Schroeder wrote: > Got the social media apps running easily after some help from the alias and > of course the Facebooker Tutorial. Anyone have any issues getting an Adsense > account? I applied hoping to test that out as well and they denied my > account request becuase my page was protected by login. I think I gave them > my external address wondering if other have had success giving them your > canvas url or were also getting denied. 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: From auswalk at gmail.com Mon Aug 18 16:54:51 2008 From: auswalk at gmail.com (Allen Walker) Date: Mon, 18 Aug 2008 15:54:51 -0500 Subject: [Facebooker-talk] Ad Sense Accounts In-Reply-To: References: Message-ID: <48A9E19B.5010004@gmail.com> I am using socialmedia.com for ads and it looks like most facebook apps are doing the same thing. You might go that route instead of adsense. Ken Schroeder wrote: > Got the social media apps running easily after some help from the > alias and of course the Facebooker Tutorial. Anyone have any issues > getting an Adsense account? I applied hoping to test that out as well > and they denied my account request becuase my page was protected by > login. I think I gave them my external address wondering if other > have had success giving them your canvas url or were also getting > denied. Thanks --ken > ------------------------------------------------------------------------ > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From digidigo at gmail.com Mon Aug 18 17:00:40 2008 From: digidigo at gmail.com (David Clements) Date: Mon, 18 Aug 2008 15:00:40 -0600 Subject: [Facebooker-talk] Ad Sense Accounts In-Reply-To: <48A9E19B.5010004@gmail.com> References: <48A9E19B.5010004@gmail.com> Message-ID: I would second that actually. People definitely click on the the social media ads. Dave On Mon, Aug 18, 2008 at 2:54 PM, Allen Walker wrote: > I am using socialmedia.com for ads and it looks like most facebook apps > are doing the same thing. You might go that route instead of adsense. > > Ken Schroeder wrote: > >> Got the social media apps running easily after some help from the alias >> and of course the Facebooker Tutorial. Anyone have any issues getting an >> Adsense account? I applied hoping to test that out as well and they denied >> my account request becuase my page was protected by login. I think I gave >> them my external address wondering if other have had success giving them >> your canvas url or were also getting denied. Thanks --ken >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Facebooker-talk mailing list >> 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: From schroeder.ken at gmail.com Mon Aug 18 18:00:02 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 18 Aug 2008 18:00:02 -0400 Subject: [Facebooker-talk] Ad Sense Accounts In-Reply-To: References: <48A9E19B.5010004@gmail.com> Message-ID: Cool thanks for the feedback guys, appreciate the suggestions. We have the social media ads running fine trying to feel them both out. We have an external site and seemed like adsense may be more portable. On Mon, Aug 18, 2008 at 5:00 PM, David Clements wrote: > I would second that actually. People definitely click on the the social > media ads. > > Dave > > > > On Mon, Aug 18, 2008 at 2:54 PM, Allen Walker wrote: > >> I am using socialmedia.com for ads and it looks like most facebook apps >> are doing the same thing. You might go that route instead of adsense. >> >> Ken Schroeder wrote: >> >>> Got the social media apps running easily after some help from the alias >>> and of course the Facebooker Tutorial. Anyone have any issues getting an >>> Adsense account? I applied hoping to test that out as well and they denied >>> my account request becuase my page was protected by login. I think I gave >>> them my external address wondering if other have had success giving them >>> your canvas url or were also getting denied. Thanks --ken >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> 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 >> > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dara at catch.fm Tue Aug 19 06:31:40 2008 From: dara at catch.fm (Dara) Date: Tue, 19 Aug 2008 11:31:40 +0100 Subject: [Facebooker-talk] publishers, views and helpers Message-ID: <48AAA10C.3090905@catch.fm> Hi I've been moving some more code around, this time I'm looking at publishing a view. The view was previously associated with a controller and using some custom helpers. Can I bring these in for use in the rendering done by the publisher ? A simple include doesn't appear to work. I also had a bit of trouble rendering the view with :template but :partial does work I'm publishing the view for a ref, and I'll be looking at doing it at regular intervals for user-based handles. I'd be interested to hear if anybody has this working with bebo From dara at catch.fm Tue Aug 19 12:04:37 2008 From: dara at catch.fm (Dara Mulvihill) Date: Tue, 19 Aug 2008 17:04:37 +0100 Subject: [Facebooker-talk] updating fb:ref content asynchronously In-Reply-To: <48AAA10C.3090905@catch.fm> References: <48AAA10C.3090905@catch.fm> Message-ID: <48AAEF15.5020401@catch.fm> (network = bebo) I have tried some code that requests an auth token and directs a user to the bebo 'Grant' page. With the tick-box selected for permanent access, I then return to my applications canvas page At this point, I can check facebook_session.infinite? reports true. Yet a call to the publisher from a backgrounDrb worker is failing because of session expiration. Are any of you successfully using infinite sessions with asynchronous setFbml calls ? Dara wrote: > I'm publishing the view for a ref, and I'll be looking at doing it at > regular intervals for user-based handles. I'd be interested to hear if > anybody has this working with bebo > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Dara Mulvihill Catch phone: +353.51.30.62.76 phone: +353.85.100.19.21 email: dara at catch.fm skype: dara.om aim/msn/yahoo: dar4l77 Catch is the registered trade name of Hash 6 Limited, a limited liability company incorporated in Ireland with a registered office at Arclabs, Carriganore, Co. Waterford, Ireland. Registration number: 400180. From schroeder.ken at gmail.com Tue Aug 19 16:27:20 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Tue, 19 Aug 2008 16:27:20 -0400 Subject: [Facebooker-talk] redirect with application add Message-ID: There are groups within our app that people can be invited too. If a user recieves an invite to a group and hasn't yet added the application the filter chain ends up redirecting them to the main canvas page instead of the the group page directly. Is there a way to handle this if the user hasn't installed the app, I tried redirect_back_or_default in one of my controllers but it ended up putting me into a loop. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjclark at scidept.com Tue Aug 19 16:38:28 2008 From: bjclark at scidept.com (BJ Clark) Date: Tue, 19 Aug 2008 14:38:28 -0600 Subject: [Facebooker-talk] redirect with application add In-Reply-To: References: Message-ID: <0F8859D1-FA00-4929-9368-4BC16BF2D71C@scidept.com> The only way I've been able to handle this is to set a session variable and then handle that in your default url (or before_filter or whatever) that facebook is sending them to. Maybe someone has something more elegant? BJ Clark On Aug 19, 2008, at 2:27 PM, Ken Schroeder wrote: > There are groups within our app that people can be invited too. If a > user recieves an invite to a group and hasn't yet added the > application the filter chain ends up redirecting them to the main > canvas page instead of the the group page directly. Is there a way > to handle this if the user hasn't installed the app, I tried > redirect_back_or_default in one of my controllers but it ended up > putting me into a loop. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From david.g.clements at gmail.com Tue Aug 19 16:45:28 2008 From: david.g.clements at gmail.com (David Clements) Date: Tue, 19 Aug 2008 14:45:28 -0600 Subject: [Facebooker-talk] redirect with application add In-Reply-To: References: Message-ID: The call to ensure application is added acts just like a before filter. So you can exclude certain actions if they do not require adding the app. Dave Sent from my iPhone Dave On Aug 19, 2008, at 2:27 PM, "Ken Schroeder" wrote: > There are groups within our app that people can be invited too. If a > user recieves an invite to a group and hasn't yet added the > application the filter chain ends up redirecting them to the main > canvas page instead of the the group page directly. Is there a way > to handle this if the user hasn't installed the app, I tried > redirect_back_or_default in one of my controllers but it ended up > putting me into a loop. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From digidigo at gmail.com Tue Aug 19 16:54:24 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 19 Aug 2008 14:54:24 -0600 Subject: [Facebooker-talk] redirect with application add In-Reply-To: References: Message-ID: Oh I think I misunderstood the issue... You want to redirect the user back to the original requested URL after they add the app, right? This is what I do: # Override this so that we get redirected to the right place. def application_is_not_installed_by_facebook_user redirect_to new_facebook_session.install_url(:next => next_path() ) end def next_path path = "#{params[:controller]}/#{params[:action]}?" path = "/#{path}" unless Facebooker::FacebookAdapter.new_api? || Facebooker.is_for?(:bebo) non_keys = ["controller", "method", "action","format", "_method", "auth_token"] parts = [] params.each do |k,v| next if non_keys.include?(k.to_s) || k.to_s.starts_with("fb") parts << "#{k}=#{v}" end path + parts.join("&") end On Tue, Aug 19, 2008 at 2:45 PM, David Clements wrote: > The call to ensure application is added acts just like a before filter. So > you can exclude certain actions if they do not require adding the app. > > Dave > > Sent from my iPhone > > Dave > > > On Aug 19, 2008, at 2:27 PM, "Ken Schroeder" > wrote: > > There are groups within our app that people can be invited too. If a user >> recieves an invite to a group and hasn't yet added the application the >> filter chain ends up redirecting them to the main canvas page instead of the >> the group page directly. Is there a way to handle this if the user hasn't >> installed the app, I tried redirect_back_or_default in one of my controllers >> but it ended up putting me into a loop. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Tue Aug 19 17:06:25 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Tue, 19 Aug 2008 17:06:25 -0400 Subject: [Facebooker-talk] redirect with application add In-Reply-To: <0F8859D1-FA00-4929-9368-4BC16BF2D71C@scidept.com> References: <0F8859D1-FA00-4929-9368-4BC16BF2D71C@scidept.com> Message-ID: Yeah that was the only thought I had, was also hoping for something more elegant. On Tue, Aug 19, 2008 at 4:38 PM, BJ Clark wrote: > The only way I've been able to handle this is to set a session variable and > then handle that in your default url (or before_filter or whatever) that > facebook is sending them to. > Maybe someone has something more elegant? > > BJ Clark > > > On Aug 19, 2008, at 2:27 PM, Ken Schroeder wrote: > > There are groups within our app that people can be invited too. If a user >> recieves an invite to a group and hasn't yet added the application the >> filter chain ends up redirecting them to the main canvas page instead of the >> the group page directly. Is there a way to handle this if the user hasn't >> installed the app, I tried redirect_back_or_default in one of my controllers >> but it ended up putting me into a loop. >> _______________________________________________ >> Facebooker-talk mailing list >> 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: From george at xapblog.com Tue Aug 19 21:57:18 2008 From: george at xapblog.com (George Deglin) Date: Tue, 19 Aug 2008 18:57:18 -0700 Subject: [Facebooker-talk] Facebook javascript (FBJS) library Message-ID: I wrote an fbjs library to help speed up development of some of my applications. I plan to have some sort of "official" release with a blog entry and github repository at some point, but I thought you guys might want to have it earlier. It's still a work in progress. I've been using every method at least once in my application but it's still possible there is a bug or two I missed. Let me know if you find any bugs. Javascript (stand alone) http://pastie.org/256150 Rails Helpers: http://pastie.org/256153 Examples of use: Select Element $('noelement'); Select 2 Elements $('test1','test2'); Select elements by class getElementsByClass('test2c') Select elements by tag getElementsByTagName('strike') Use Javascript version of .map ['a2','b2'].toSource() == map(['a','b'], function(val) { return val+2 }).toSource() Recurse through the dom under a selected element and return nodes for which test is true as an array collect($('test1'), function(element){ return (element.getClassName() == 'test2c') }) Check if an element is visible $('test1').visible() Hide an element $('test1').hide() Show an element $('test1').show() Toggle element visibility $('test1').toggle(); Remove an element from the dom $('test1').remove(); Get a hash of calculated element dimensions width/height as integers $('test1').getDimensions() Update remote Update: function(target_element, response_type, action_path, callbacks, post_parameters) (FBML/RAW) Ajax.Update('test1', 'FBML', 'http://...',{ success: function(){} }) Load Remote Load: function(response_type, action_path, callbacks, post_parameters) (FBML/RAW/JSON) Ajax.Load('JSON','http://...',{ success: function(result){console.log(result)} }, {'json':test_content}) Remote Form <%= fbjs_form_remote_tag :update => 'a', :html => { :action => ' http://inigral.ath.cx:3003/javascript_test/test_helpers_res' }, :response => 'RAW' %>
In place Edit Will post: {txt_field_name:'Text inside editable field'} <%= fbjs_in_place_editor_text_div('txt_field_name', 'Text inside editable field', 'http://...', { :class => 'test' }) %> edit save -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Aug 20 08:19:58 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 20 Aug 2008 08:19:58 -0400 Subject: [Facebooker-talk] Facebook javascript (FBJS) library In-Reply-To: References: Message-ID: <40A7F8A5-E78D-4B08-B8D6-5D672812D9FA@elevatedrails.com> This looks great! We've implemented some of this as facebooker.js, but your version looks more complete. Would you be interested in including some of this in the Facebooker plugin? Mike On Aug 19, 2008, at 9:57 PM, George Deglin wrote: > I wrote an fbjs library to help speed up development of some of my > applications. I plan to have some sort of "official" release with a > blog entry and github repository at some point, but I thought you > guys might want to have it earlier. > > It's still a work in progress. I've been using every method at least > once in my application but it's still possible there is a bug or two > I missed. Let me know if you find any bugs. > > > Javascript (stand alone) > http://pastie.org/256150 > > Rails Helpers: > http://pastie.org/256153 > > > Examples of use: > Select Element > $('noelement'); > > Select 2 Elements > $('test1','test2'); > > Select elements by class > getElementsByClass('test2c') > > Select elements by tag > getElementsByTagName('strike') > > Use Javascript version of .map > ['a2','b2'].toSource() == map(['a','b'], function(val) { return > val+2 }).toSource() > > Recurse through the dom under a selected element and return > nodes for which test is true as an array > collect($('test1'), function(element){ return > (element.getClassName() == 'test2c') }) > > Check if an element is visible > $('test1').visible() > > Hide an element > $('test1').hide() > > Show an element > $('test1').show() > > Toggle element visibility > $('test1').toggle(); > > Remove an element from the dom > $('test1').remove(); > > Get a hash of calculated element dimensions width/height as > integers > $('test1').getDimensions() > > Update remote > Update: function(target_element, response_type, action_path, > callbacks, post_parameters) > (FBML/RAW) > Ajax.Update('test1', 'FBML', 'http://...',{ success: function() > {} }) > > Load Remote > Load: function(response_type, action_path, callbacks, > post_parameters) > (FBML/RAW/JSON) > Ajax.Load('JSON','http://...',{ success: function(result) > {console.log(result)} }, {'json':test_content}) > > Remote Form > <%= fbjs_form_remote_tag :update => 'a', :html => { :action => 'http://inigral.ath.cx:3003/javascript_test/test_helpers_res' > }, :response => 'RAW' %> > > > > > >
> > In place Edit > Will post: {txt_field_name:'Text inside editable field'} > <%= fbjs_in_place_editor_text_div('txt_field_name', 'Text inside > editable field', 'http://...', { :class => 'test' }) %> > edit > save > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From schroeder.ken at gmail.com Wed Aug 20 13:27:44 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Wed, 20 Aug 2008 13:27:44 -0400 Subject: [Facebooker-talk] redirect with application add In-Reply-To: References: Message-ID: Tthis worked great with a few changes for me. Had problems with Facebooker::FacebookAdapter.new_api? Is that in a newer facebooker release? Also not sure if you know you have a typo with starts_with("fb") should be starts_with?("fb") Additionally I modified how you handled the path creation to not use the action since restful paths don't contain show or index in the url which for my use would be the generally used method I need to reference this. Probably have to case out the action if I expect something to go to edit. Thanks again --ken s. On Tue, Aug 19, 2008 at 4:54 PM, David Clements wrote: > Oh I think I misunderstood the issue... You want to redirect the user back > to the original requested URL after they add the app, right? > > This is what I do: > > # Override this so that we get redirected to the right place. > def application_is_not_installed_by_facebook_user > redirect_to new_facebook_session.install_url(:next => next_path() ) > end > > def next_path > path = "#{params[:controller]}/#{params[:action]}?" > path = "/#{path}" unless Facebooker::FacebookAdapter.new_api? || > Facebooker.is_for?(:bebo) > > non_keys = ["controller", "method", "action","format", "_method", > "auth_token"] > parts = [] > params.each do |k,v| > next if non_keys.include?(k.to_s) || k.to_s.starts_with("fb") > parts << "#{k}=#{v}" > end > path + parts.join("&") > end > > > > > > On Tue, Aug 19, 2008 at 2:45 PM, David Clements < > david.g.clements at gmail.com> wrote: > >> The call to ensure application is added acts just like a before filter. >> So you can exclude certain actions if they do not require adding the app. >> >> Dave >> >> Sent from my iPhone >> >> Dave >> >> >> On Aug 19, 2008, at 2:27 PM, "Ken Schroeder" >> wrote: >> >> There are groups within our app that people can be invited too. If a user >>> recieves an invite to a group and hasn't yet added the application the >>> filter chain ends up redirecting them to the main canvas page instead of the >>> the group page directly. Is there a way to handle this if the user hasn't >>> installed the app, I tried redirect_back_or_default in one of my controllers >>> but it ended up putting me into a loop. >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Aug 20 13:28:43 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 20 Aug 2008 13:28:43 -0400 Subject: [Facebooker-talk] I'm pulling the trigger on the new API Message-ID: <22337D1C-635D-4977-B563-5F5903ACBE0F@elevatedrails.com> I've answered my 10th question about changing the settings to use the new api servers. Going forward, you will need to specify use_old_api: true in your facebooker.yml file if you want to use the old API servers. Mike -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Wed Aug 20 15:09:04 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 20 Aug 2008 13:09:04 -0600 Subject: [Facebooker-talk] redirect with application add In-Reply-To: References: Message-ID: Cool. 1) new_api? is newish I think. 2) I think we have a custom starts_with , some legacy thing. 3) The next path is definitely kludgey. I'd love to see what you have. Also, one note. If you notice the code that adds the "/" to the path. I am not sure if that is currently necessary but there was a difference between the new facebook implementation and the old implementation of the next parameter. Dave On Wed, Aug 20, 2008 at 11:27 AM, Ken Schroeder wrote: > Tthis worked great with a few changes for me. > > Had problems with Facebooker::FacebookAdapter.new_api? Is that in a newer > facebooker release? > > Also not sure if you know you have a typo with starts_with("fb") should be > starts_with?("fb") > > Additionally I modified how you handled the path creation to not use the > action since restful paths don't contain show or index in the url which for > my use would be the generally used method I need to reference this. > Probably have to case out the action if I expect something to go to edit. > > Thanks again --ken s. > > > > On Tue, Aug 19, 2008 at 4:54 PM, David Clements wrote: > >> Oh I think I misunderstood the issue... You want to redirect the user back >> to the original requested URL after they add the app, right? >> >> This is what I do: >> >> # Override this so that we get redirected to the right place. >> def application_is_not_installed_by_facebook_user >> redirect_to new_facebook_session.install_url(:next => next_path() ) >> end >> >> def next_path >> path = "#{params[:controller]}/#{params[:action]}?" >> path = "/#{path}" unless Facebooker::FacebookAdapter.new_api? || >> Facebooker.is_for?(:bebo) >> >> non_keys = ["controller", "method", "action","format", "_method", >> "auth_token"] >> parts = [] >> params.each do |k,v| >> next if non_keys.include?(k.to_s) || k.to_s.starts_with("fb") >> parts << "#{k}=#{v}" >> end >> path + parts.join("&") >> end >> >> >> >> >> >> On Tue, Aug 19, 2008 at 2:45 PM, David Clements < >> david.g.clements at gmail.com> wrote: >> >>> The call to ensure application is added acts just like a before filter. >>> So you can exclude certain actions if they do not require adding the app. >>> >>> Dave >>> >>> Sent from my iPhone >>> >>> Dave >>> >>> >>> On Aug 19, 2008, at 2:27 PM, "Ken Schroeder" >>> wrote: >>> >>> There are groups within our app that people can be invited too. If a >>>> user recieves an invite to a group and hasn't yet added the application the >>>> filter chain ends up redirecting them to the main canvas page instead of the >>>> the group page directly. Is there a way to handle this if the user hasn't >>>> installed the app, I tried redirect_back_or_default in one of my controllers >>>> but it ended up putting me into a loop. >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Thu Aug 21 03:12:27 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 21 Aug 2008 02:12:27 -0500 Subject: [Facebooker-talk] problems publishing into Profile Message-ID: <48AD155B.9040704@gmail.com> Ok pretty stuck here. I managed to test the actual _profile.erb page in a standalone action and I had no problems. And I have no problems publishing to a newsfeed. Here's what I have: activity_publisher.rb def profile_update(user) send_as :profile recipients user.facebook_session.user @activities = user.activities profile render(:partial=>"profile",:assigns=>{:activities=>user.activities}) profile_main render(:partial=>"profile",:assigns=>{:activities=>user.activities}) end publishing is going on in the main controller right now just for testing: public_controller.rb def index ... line 14> ActivityPublisher.deliver_profile_update(current_user) end exception: NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.post): /vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in `set_profile_fbml_without_bebo_adapter' /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in `set_profile_fbml' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in `send_message' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing' /app/controllers/public_controller.rb:14:in `index' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in `call_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark\ ' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescu\ e' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescu\ e' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `ca\ che' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache' From dara at catch.fm Thu Aug 21 09:18:29 2008 From: dara at catch.fm (Dara) Date: Thu, 21 Aug 2008 14:18:29 +0100 Subject: [Facebooker-talk] forgery Protection Message-ID: <48AD6B25.5090204@catch.fm> Has anybody solved this issue. [ http://rubyforge.org/pipermail/facebooker-talk/2008-April/000552.html ] ? NameError (undefined local variable or method `controller' for #): /app/controllers/application.rb:24:in `verify_authenticity_token' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /home/dara/apps/ruby-1.8.6/lib/ruby/1.8/benchmark.rb:293:in `measure' I don't have the secret commented in the environment either. Should I be trying to disable forgery protection for certain calls from facebook/bebo ? Cheers From mmangino at elevatedrails.com Thu Aug 21 10:02:05 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 21 Aug 2008 10:02:05 -0400 Subject: [Facebooker-talk] forgery Protection In-Reply-To: <48AD6B25.5090204@catch.fm> References: <48AD6B25.5090204@catch.fm> Message-ID: I would disable forgery protection for everything. Can you paste in your application controller? It looks like the problem may be there. Mike On Aug 21, 2008, at 9:18 AM, Dara wrote: > Has anybody solved this issue. [ http://rubyforge.org/pipermail/facebooker-talk/2008-April/000552.html > ] ? > > NameError (undefined local variable or method `controller' for > #): > /app/controllers/application.rb:24:in `verify_authenticity_token' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ > activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ > activesupport-2.1.0/lib/active_support/callbacks.rb:173:in > `evaluate_method' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ > activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:430:in `call' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:592:in `run_before_filters' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:578:in `call_filters' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:573:in > `perform_action_without_benchmark' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /home/dara/apps/ruby-1.8.6/lib/ruby/1.8/benchmark.rb:293:in > `measure' > > I don't have the secret commented in the environment either. > > Should I be trying to disable forgery protection for certain calls > from facebook/bebo ? > > Cheers > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From dara at catch.fm Thu Aug 21 10:09:24 2008 From: dara at catch.fm (Dara) Date: Thu, 21 Aug 2008 15:09:24 +0100 Subject: [Facebooker-talk] forgery Protection In-Reply-To: References: <48AD6B25.5090204@catch.fm> Message-ID: <48AD7714.5000600@catch.fm> I have done that for now. Will send the app controller offlist (fwiw: My leave controller is handling requests from callbacks made when a user removes the application from their profile) Mike Mangino wrote: > I would disable forgery protection for everything. Can you paste in > your application controller? It looks like the problem may be there. > > Mike > From dara at catch.fm Thu Aug 21 10:35:16 2008 From: dara at catch.fm (Dara) Date: Thu, 21 Aug 2008 15:35:16 +0100 Subject: [Facebooker-talk] forgery Protection In-Reply-To: <48AD6B25.5090204@catch.fm> References: <48AD6B25.5090204@catch.fm> Message-ID: <48AD7D24.4050105@catch.fm> FYI, the below log snippet I posted earlier is the wrong trace segment. Apologies. This is the correct log segment: Processing LeaveController#index (for 208.75.184.192 at 2008-08-21 15:24:37) [POST] Session ID: xxxxxxxxxxxxxxx Parameters: {"fb_sig_time"=>"11111111111", "fb_sig"=>"AAAAAAAAA", "action"=>"index", "fb_sig_call_id"=>"1111111111111", "controller"=>"leave", "fb_sig_network"=>"Bebo", "fb_sig_added"=>"0", "fb_sig_api_key"=>"BBBBBBBB", "fb_sig_uninstall"=>"1", "fb_sig_user"=>"CCCCCCCC"} ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/request_forgery_protection.rb:86:in `verify_authenticity_token' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /home/dara/apps/ruby-1.8.6/lib/ruby/1.8/benchmark.rb:293:in `measure' ... Dara wrote: > Has anybody solved this issue. [ > http://rubyforge.org/pipermail/facebooker-talk/2008-April/000552.html ] ? > > NameError (undefined local variable or method `controller' for > #): > /app/controllers/application.rb:24:in `verify_authenticity_token' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in > `send' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in > `evaluate_method' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in > `call' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in > `call' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in > `run_before_filters' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in > `call_filters' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in > `perform_action_without_benchmark' > > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /home/dara/apps/ruby-1.8.6/lib/ruby/1.8/benchmark.rb:293:in `measure' > > I don't have the secret commented in the environment either. > > Should I be trying to disable forgery protection for certain calls > from facebook/bebo ? > > Cheers > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From mmangino at elevatedrails.com Thu Aug 21 10:45:26 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 21 Aug 2008 10:45:26 -0400 Subject: [Facebooker-talk] forgery Protection In-Reply-To: <48AD7D24.4050105@catch.fm> References: <48AD6B25.5090204@catch.fm> <48AD7D24.4050105@catch.fm> Message-ID: <61DCFC53-3417-4614-9C7B-A4D8318D34CF@elevatedrails.com> Ah, okay. You'll definitely need to disable forgery protection for the install and uninstall actions since Bebo/Facebook can't possibly send that value. I personally disable it for all actions since the fb_sig serves the same purpose. Mike On Aug 21, 2008, at 10:35 AM, Dara wrote: > FYI, the below log snippet I posted earlier is the wrong trace > segment. > Apologies. > This is the correct log segment: > > > Processing LeaveController#index (for 208.75.184.192 at 2008-08-21 > 15:24:37) [POST] > Session ID: xxxxxxxxxxxxxxx > Parameters: {"fb_sig_time"=>"11111111111", "fb_sig"=>"AAAAAAAAA", > "action"=>"index", "fb_sig_call_id"=>"1111111111111", > "controller"=>"leave", "fb_sig_network"=>"Bebo", > "fb_sig_added"=>"0", "fb_sig_api_key"=>"BBBBBBBB", > "fb_sig_uninstall"=>"1", "fb_sig_user"=>"CCCCCCCC"} > > > ActionController::InvalidAuthenticityToken > (ActionController::InvalidAuthenticityToken): > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/request_forgery_protection.rb:86:in > `verify_authenticity_token' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ > activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ > activesupport-2.1.0/lib/active_support/callbacks.rb:173:in > `evaluate_method' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ > activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:430:in `call' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:592:in `run_before_filters' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:578:in `call_filters' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/filters.rb:573:in > `perform_action_without_benchmark' > /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/ > lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /home/dara/apps/ruby-1.8.6/lib/ruby/1.8/benchmark.rb:293:in `measure' > ... > > > Dara wrote: >> Has anybody solved this issue. [ http://rubyforge.org/pipermail/facebooker-talk/2008-April/000552.html >> ] ? >> >> NameError (undefined local variable or method `controller' for >> #): >> /app/controllers/application.rb:24:in `verify_authenticity_token' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> activesupport-2.1.0/lib/active_support/callbacks.rb:173:in >> `evaluate_method' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> actionpack-2.1.0/lib/action_controller/filters.rb:592:in >> `run_before_filters' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> actionpack-2.1.0/lib/action_controller/filters.rb:578:in >> `call_filters' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> actionpack-2.1.0/lib/action_controller/filters.rb:573:in >> `perform_action_without_benchmark' >> /home/dara/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ >> actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue' >> /home/dara/apps/ruby-1.8.6/lib/ruby/1.8/benchmark.rb:293:in >> `measure' >> >> I don't have the secret commented in the environment either. >> >> Should I be trying to disable forgery protection for certain calls >> from facebook/bebo ? >> >> Cheers >> _______________________________________________ >> Facebooker-talk mailing list >> 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 -- Mike Mangino http://www.elevatedrails.com From auswalk at gmail.com Thu Aug 21 16:16:41 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 21 Aug 2008 15:16:41 -0500 Subject: [Facebooker-talk] problems publishing into Profile In-Reply-To: <48AD155B.9040704@gmail.com> References: <48AD155B.9040704@gmail.com> Message-ID: <48ADCD29.3060601@gmail.com> Made some adjustments and still having the same problem. It's gotta be an API bug? activity_publisher.rb class ActivityPublisher < Facebooker::Rails::Publisher include ApplicationHelper ... def profile_update(user) send_as :profile from user.facebook_session.user recipients user.facebook_session.user fbml = render({ :partial => "profile", :locals => {:activities => user.activities} }) profile(fbml) profile_main(fbml) end ... end _profile.erb This is a test. Publishing Test: >> user = User.find_by_id(1) => # >> ActivityPublisher.deliver_profile_update(user) NoMethodError: You have a nil object when you didn't expect it! The error occurred while evaluating nil.post from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in `set_profile_fbml_without_bebo_adapter' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in `set_profile_fbml' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in `send_message' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing' from (irb):2 From mmangino at elevatedrails.com Thu Aug 21 16:36:55 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 21 Aug 2008 16:36:55 -0400 Subject: [Facebooker-talk] problems publishing into Profile In-Reply-To: <48ADCD29.3060601@gmail.com> References: <48AD155B.9040704@gmail.com> <48ADCD29.3060601@gmail.com> Message-ID: <9B4576C5-6D17-4497-BACE-6977E4BBB585@elevatedrails.com> Hmm. That seems odd. Sorry this is taking so long for us to figure out. I've got a couple of things to try: 1) Update to the newest Facebooker. I made changes this week that might help this. 2) I'm not 100% sure :locals=> will work. I think you need to do :assigns=> (I don't think that is your problem though) 3) If the upgrade and change don't help, can you post a new stack trace? I want to make sure I can look at the actual line that is causing the error. Mike On Aug 21, 2008, at 4:16 PM, Allen Walker wrote: > Made some adjustments and still having the same problem. It's gotta > be an API bug? > > activity_publisher.rb > class ActivityPublisher < Facebooker::Rails::Publisher > > include ApplicationHelper > > ... > def profile_update(user) > send_as :profile > from user.facebook_session.user > recipients user.facebook_session.user > fbml = render({ > :partial => "profile", > :locals => {:activities => user.activities} > }) > profile(fbml) > profile_main(fbml) > end > > ... > end > > _profile.erb > > This is a test. > > Publishing Test: > > > >> user = User.find_by_id(1) > => # "b77a85f20a91bc3effc3ba95-xxxxxxx", cell_phone_number: nil, > email_address: nil, contact_preference: nil, gender: "male", > created_at: "2008-08-09 01:30:40", updated_at: "2008-08-20 23:02:16"> > >> ActivityPublisher.deliver_profile_update(user) > NoMethodError: You have a nil object when you didn't expect it! > The error occurred while evaluating nil.post > from /home/slick/meetingup/vendor/plugins/facebooker/lib/ > facebooker/models/user.rb:203:in > `set_profile_fbml_without_bebo_adapter' > from /home/slick/meetingup/vendor/plugins/facebooker/lib/ > facebooker/adapters/bebo_adapter.rb:43:in `set_profile_fbml' > from /home/slick/meetingup/vendor/plugins/facebooker/lib/ > facebooker/rails/publisher.rb:287:in `send_message' > from /home/slick/meetingup/vendor/plugins/facebooker/lib/ > facebooker/rails/publisher.rb:384:in `method_missing' > from (irb):2 > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From auswalk at gmail.com Thu Aug 21 17:03:32 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 21 Aug 2008 16:03:32 -0500 Subject: [Facebooker-talk] problems publishing into Profile In-Reply-To: <9B4576C5-6D17-4497-BACE-6977E4BBB585@elevatedrails.com> References: <48AD155B.9040704@gmail.com> <48ADCD29.3060601@gmail.com> <9B4576C5-6D17-4497-BACE-6977E4BBB585@elevatedrails.com> Message-ID: <48ADD824.7050609@gmail.com> Just did a --force on the latest .git via: script/plugin install git://github.com/mmangino/facebooker.git --force restarted mongrel instance. Same error. Full stack trace: Rendered activity_publisher/_profile.fbml.erb (0.00001) NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.post): /vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in `set_profile_fbml_without_bebo_adapter' /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in `set_profile_fbml' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in `send_message' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing' /app/controllers/public_controller.rb:14:in `index' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in `call_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark\ ' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescu\ e' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescu\ e' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `ca\ che' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_manageme\ nt_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 /usr/local/bin/mongrel_rails:19:in `load' /usr/local/bin/mongrel_rails:19 Rendering /home/slick/meetingup/vendor/plugins/facebooker/templates/layout.erb (200) Mike Mangino wrote: > Hmm. That seems odd. > > Sorry this is taking so long for us to figure out. I've got a couple > of things to try: > > 1) Update to the newest Facebooker. I made changes this week that > might help this. > 2) I'm not 100% sure :locals=> will work. I think you need to do > :assigns=> (I don't think that is your problem though) > 3) If the upgrade and change don't help, can you post a new stack > trace? I want to make sure I can look at the actual line that is > causing the error. > > Mike > > On Aug 21, 2008, at 4:16 PM, Allen Walker wrote: > >> Made some adjustments and still having the same problem. It's gotta >> be an API bug? >> >> activity_publisher.rb >> class ActivityPublisher < Facebooker::Rails::Publisher >> >> include ApplicationHelper >> >> ... >> def profile_update(user) >> send_as :profile >> from user.facebook_session.user >> recipients user.facebook_session.user >> fbml = render({ >> :partial => "profile", >> :locals => {:activities => user.activities} >> }) >> profile(fbml) >> profile_main(fbml) >> end >> >> ... >> end >> >> _profile.erb >> >> This is a test. >> >> Publishing Test: >> >> >> >> user = User.find_by_id(1) >> => #> "b77a85f20a91bc3effc3ba95-xxxxxxx", cell_phone_number: nil, >> email_address: nil, contact_preference: nil, gender: "male", >> created_at: "2008-08-09 01:30:40", updated_at: "2008-08-20 23:02:16"> >> >> ActivityPublisher.deliver_profile_update(user) >> NoMethodError: You have a nil object when you didn't expect it! >> The error occurred while evaluating nil.post >> from >> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >> `set_profile_fbml_without_bebo_adapter' >> from >> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in >> `set_profile_fbml' >> from >> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >> `send_message' >> from >> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >> `method_missing' >> from (irb):2 >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > From mmangino at elevatedrails.com Thu Aug 21 18:53:20 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 21 Aug 2008 18:53:20 -0400 Subject: [Facebooker-talk] problems publishing into Profile In-Reply-To: <48ADD824.7050609@gmail.com> References: <48AD155B.9040704@gmail.com> <48ADCD29.3060601@gmail.com> <9B4576C5-6D17-4497-BACE-6977E4BBB585@elevatedrails.com> <48ADD824.7050609@gmail.com> Message-ID: I think the problem comes from using a Facebooker::User as a recipient. It should work, but it doesn't. I got a pull request for something related to this, but it doesn't quite fix the bug. In the short term, you can set recipients to either the integer or string of the Facebook id. In the longer term, I'll need to fix this. I have to pick my wife up from work. I'll get this patched first thing tomorrow morning. Mike On Aug 21, 2008, at 5:03 PM, Allen Walker wrote: > Just did a --force on the latest .git via: > > script/plugin install git://github.com/mmangino/facebooker.git --force > > restarted mongrel instance. > > Same error. Full stack trace: > > Rendered activity_publisher/_profile.fbml.erb (0.00001) > > > NoMethodError (You have a nil object when you didn't expect it! > The error occurred while evaluating nil.post): > /vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in > `set_profile_fbml_without_bebo_adapter' > /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb: > 43:in `set_profile_fbml' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: > 287:in `send_message' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: > 384:in `method_missing' > /app/controllers/public_controller.rb:14:in `index' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/base.rb:1162:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/base.rb:1162:in `perform_action_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/filters.rb:580:in `call_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/filters.rb:573:in `perform_action_without_benchmark\ > ' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/benchmarking.rb:68:in `perform_action_without_rescu\ > e' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/benchmarking.rb:68:in `perform_action_without_rescu\ > e' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/rescue.rb:201:in `perform_action_without_caching' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/caching/sql_cache.rb:13:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > active_record/connection_adapters/abstract/query_cache.rb:33:in `ca\ > che' > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ > active_record/query_cache.rb:8:in `cache' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/caching/sql_cache.rb:12:in `perform_action' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/base.rb:529:in `send' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/base.rb:529:in `process_without_filters' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/filters.rb:569:in `process_without_session_manageme\ > nt_support' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/session_management.rb:130:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/base.rb:389:in `process' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/dispatcher.rb:149:in `handle_request' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/dispatcher.rb:107:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/dispatcher.rb:104:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/dispatcher.rb:104:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/dispatcher.rb:120:in `dispatch_cgi' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ > action_controller/dispatcher.rb:35:in `dispatch' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ > rails.rb:76:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ > rails.rb:74:in `synchronize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ > rails.rb:74:in `process' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:159:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:158:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:158:in `process_client' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:285:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:285:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:285:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:285:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:268:in `initialize' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:268:in `new' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/ > mongrel.rb:268:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ > configurator.rb:282:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ > configurator.rb:281:in `each' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ > configurator.rb:281:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails: > 128:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ > command.rb:212:in `run' > /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails: > 281 > /usr/local/bin/mongrel_rails:19:in `load' > /usr/local/bin/mongrel_rails:19 > > Rendering /home/slick/meetingup/vendor/plugins/facebooker/templates/ > layout.erb (200) > > Mike Mangino wrote: >> Hmm. That seems odd. >> >> Sorry this is taking so long for us to figure out. I've got a >> couple of things to try: >> >> 1) Update to the newest Facebooker. I made changes this week that >> might help this. >> 2) I'm not 100% sure :locals=> will work. I think you need to >> do :assigns=> (I don't think that is your problem though) >> 3) If the upgrade and change don't help, can you post a new stack >> trace? I want to make sure I can look at the actual line that is >> causing the error. >> >> Mike >> >> On Aug 21, 2008, at 4:16 PM, Allen Walker wrote: >> >>> Made some adjustments and still having the same problem. It's >>> gotta be an API bug? >>> >>> activity_publisher.rb >>> class ActivityPublisher < Facebooker::Rails::Publisher >>> >>> include ApplicationHelper >>> >>> ... >>> def profile_update(user) >>> send_as :profile >>> from user.facebook_session.user >>> recipients user.facebook_session.user >>> fbml = render({ >>> :partial => "profile", >>> :locals => {:activities => user.activities} >>> }) >>> profile(fbml) >>> profile_main(fbml) >>> end >>> >>> ... >>> end >>> >>> _profile.erb >>> >>> This is a test. >>> >>> Publishing Test: >>> >>> >>> >> user = User.find_by_id(1) >>> => #>> "b77a85f20a91bc3effc3ba95-xxxxxxx", cell_phone_number: nil, >>> email_address: nil, contact_preference: nil, gender: "male", >>> created_at: "2008-08-09 01:30:40", updated_at: "2008-08-20 >>> 23:02:16"> >>> >> ActivityPublisher.deliver_profile_update(user) >>> NoMethodError: You have a nil object when you didn't expect it! >>> The error occurred while evaluating nil.post >>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>> facebooker/models/user.rb:203:in >>> `set_profile_fbml_without_bebo_adapter' >>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>> facebooker/adapters/bebo_adapter.rb:43:in `set_profile_fbml' >>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>> facebooker/rails/publisher.rb:287:in `send_message' >>> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >>> facebooker/rails/publisher.rb:384:in `method_missing' >>> from (irb):2 >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> > -- Mike Mangino http://www.elevatedrails.com From auswalk at gmail.com Thu Aug 21 21:05:58 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 21 Aug 2008 20:05:58 -0500 Subject: [Facebooker-talk] problems publishing into Profile In-Reply-To: References: <48AD155B.9040704@gmail.com> <48ADCD29.3060601@gmail.com> <9B4576C5-6D17-4497-BACE-6977E4BBB585@elevatedrails.com> <48ADD824.7050609@gmail.com> Message-ID: <48AE10F6.10407@gmail.com> That appears to work. Thanks. BTW can you give me an example where you use the fb_prompt_permission helper in getting users to give the app access to the profile? B/c this is what I'm using right now in the layout: Would you this app to update profile? I wish there was a way to put this in some kind of dialog box, there probably is. Thanks Mike Mangino wrote: > I think the problem comes from using a Facebooker::User as a > recipient. It should work, but it doesn't. I got a pull request for > something related to this, but it doesn't quite fix the bug. In the > short term, you can set recipients to either the integer or string of > the Facebook id. In the longer term, I'll need to fix this. > > I have to pick my wife up from work. I'll get this patched first thing > tomorrow morning. > > Mike > > On Aug 21, 2008, at 5:03 PM, Allen Walker wrote: > >> Just did a --force on the latest .git via: >> >> script/plugin install git://github.com/mmangino/facebooker.git --force >> >> restarted mongrel instance. >> >> Same error. Full stack trace: >> >> Rendered activity_publisher/_profile.fbml.erb (0.00001) >> >> >> NoMethodError (You have a nil object when you didn't expect it! >> The error occurred while evaluating nil.post): >> /vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >> `set_profile_fbml_without_bebo_adapter' >> >> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in >> `set_profile_fbml' >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >> `send_message' >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >> `method_missing' >> /app/controllers/public_controller.rb:14:in `index' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in >> `send' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in >> `perform_action_without_filters' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in >> `call_filters' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in >> `perform_action_without_benchmark\ >> ' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescu\ >> e' >> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescu\ >> e' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in >> `perform_action_without_caching' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in >> `perform_action' >> >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >> `ca\ >> che' >> >> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in >> `cache' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in >> `perform_action' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in >> `send' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in >> `process_without_filters' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in >> `process_without_session_manageme\ >> nt_support' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in >> `process' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in >> `process' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in >> `handle_request' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in >> `dispatch' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in >> `synchronize' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in >> `dispatch' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in >> `dispatch_cgi' >> >> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in >> `dispatch' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in >> `process' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in >> `synchronize' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in >> `process' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in >> `process_client' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in >> `each' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in >> `process_client' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in >> `run' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in >> `initialize' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in >> `new' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in >> `run' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in >> `initialize' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in >> `new' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in >> `run' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in >> `run' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in >> `each' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in >> `run' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in >> `run' >> >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in >> `run' >> /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 >> /usr/local/bin/mongrel_rails:19:in `load' >> /usr/local/bin/mongrel_rails:19 >> >> Rendering >> /home/slick/meetingup/vendor/plugins/facebooker/templates/layout.erb >> (200) >> >> Mike Mangino wrote: >>> Hmm. That seems odd. >>> >>> Sorry this is taking so long for us to figure out. I've got a couple >>> of things to try: >>> >>> 1) Update to the newest Facebooker. I made changes this week that >>> might help this. >>> 2) I'm not 100% sure :locals=> will work. I think you need to do >>> :assigns=> (I don't think that is your problem though) >>> 3) If the upgrade and change don't help, can you post a new stack >>> trace? I want to make sure I can look at the actual line that is >>> causing the error. >>> >>> Mike >>> >>> On Aug 21, 2008, at 4:16 PM, Allen Walker wrote: >>> >>>> Made some adjustments and still having the same problem. It's gotta >>>> be an API bug? >>>> >>>> activity_publisher.rb >>>> class ActivityPublisher < Facebooker::Rails::Publisher >>>> >>>> include ApplicationHelper >>>> >>>> ... >>>> def profile_update(user) >>>> send_as :profile >>>> from user.facebook_session.user >>>> recipients user.facebook_session.user >>>> fbml = render({ >>>> :partial => "profile", >>>> :locals => {:activities => user.activities} >>>> }) >>>> profile(fbml) >>>> profile_main(fbml) >>>> end >>>> >>>> ... >>>> end >>>> >>>> _profile.erb >>>> >>>> This is a test. >>>> >>>> Publishing Test: >>>> >>>> >>>> >> user = User.find_by_id(1) >>>> => #>>> "b77a85f20a91bc3effc3ba95-xxxxxxx", cell_phone_number: nil, >>>> email_address: nil, contact_preference: nil, gender: "male", >>>> created_at: "2008-08-09 01:30:40", updated_at: "2008-08-20 23:02:16"> >>>> >> ActivityPublisher.deliver_profile_update(user) >>>> NoMethodError: You have a nil object when you didn't expect it! >>>> The error occurred while evaluating nil.post >>>> from >>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >>>> `set_profile_fbml_without_bebo_adapter' >>>> from >>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in >>>> `set_profile_fbml' >>>> from >>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >>>> `send_message' >>>> from >>>> /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >>>> `method_missing' >>>> from (irb):2 >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > From schroeder.ken at gmail.com Fri Aug 22 15:58:59 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Fri, 22 Aug 2008 15:58:59 -0400 Subject: [Facebooker-talk] will_paginate links Message-ID: Pretty sure I already wrote the alias on this but still haven't found a solution to links for will paginate not being interpreted properly on Facebook. When I mouse over a paginate link I'm seeing a path of: http://app/path/index.fbml?_method=GET&fb_sig=742f6e3b4c1f21429de8abf3ebe413d7&fb_sig_added=1&fb_sig_api_key=aac4a507072a2272861620d4465805f9&fb_sig_expires=0&fb_sig_friends=43301100%2C48503782%2C53504644%2C58404877%2C501935451%2C532590319%2C535968041%2C567441833%2C612695156%2C669749967%2C669844464%2C670068651%2C680080756%2C682941909%2C690221893%2C719442065%2C726784712%2C733871420%2C754176811%2C800578706%2C867800017%2C1015280498%2C1035955620%2C1039496249%2C1081166150%2C1139158064%2C1143009096%2C1148066130%2C1159839159%2C1170759151%2C1193132280%2C1319695075%2C1323279749%2C1340134522%2C1346645414%2C1358658083%2C1396590279%2C1442130784%2C1461120042&fb_sig_in_canvas=1&fb_sig_in_new_facebook=1&fb_sig_locale=en_US&fb_sig_position_fix=1&fb_sig_profile_update_time=1215114821&fb_sig_request_method=GET&fb_sig_session_key=e1975924bb2d3d4ae8ec183e-1170442486&fb_sig_time=1219434912.1452&fb_sig_user=1170442486&page=3 as opposed to what I should see of http://app/path?page=3 Pagination works as expected if I input the path as above. Would appreciate if anyone has any ideas on this. Thanks --ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Fri Aug 22 16:20:15 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 22 Aug 2008 16:20:15 -0400 Subject: [Facebooker-talk] will_paginate links In-Reply-To: References: Message-ID: Can you give a little more information about your code? We're using will paginate out of the box on Facebook. Mike On Aug 22, 2008, at 3:58 PM, Ken Schroeder wrote: > Pretty sure I already wrote the alias on this but still haven't > found a solution to links for will paginate not being interpreted > properly on Facebook. When I mouse over a paginate link I'm seeing > a path of: > http://app/path/index.fbml?_method=GET&fb_sig=742f6e3b4c1f21429de8abf3ebe413d7&fb_sig_added=1&fb_sig_api_key=aac4a507072a2272861620d4465805f9&fb_sig_expires=0&fb_sig_friends=43301100%2C48503782%2C53504644%2C58404877%2C501935451%2C532590319%2C535968041%2C567441833%2C612695156%2C669749967%2C669844464%2C670068651%2C680080756%2C682941909%2C690221893%2C719442065%2C726784712%2C733871420%2C754176811%2C800578706%2C867800017%2C1015280498%2C1035955620%2C1039496249%2C1081166150%2C1139158064%2C1143009096%2C1148066130%2C1159839159%2C1170759151%2C1193132280%2C1319695075%2C1323279749%2C1340134522%2C1346645414%2C1358658083%2C1396590279%2C1442130784%2C1461120042&fb_sig_in_canvas=1&fb_sig_in_new_facebook=1&fb_sig_locale=en_US&fb_sig_position_fix=1&fb_sig_profile_update_time=1215114821&fb_sig_request_method=GET&fb_sig_session_key=e1975924bb2d3d4ae8ec183e-1170442486&fb_sig_time=1219434912.1452&fb_sig_user=1170442486&page=3 > > as opposed to what I should see of > http://app/path?page=3 > > Pagination works as expected if I input the path as above. Would > appreciate if anyone has any ideas on this. Thanks --ken > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From joseph.sofaer at gmail.com Fri Aug 22 16:50:23 2008 From: joseph.sofaer at gmail.com (Joseph Sofaer) Date: Fri, 22 Aug 2008 13:50:23 -0700 Subject: [Facebooker-talk] will_paginate links In-Reply-To: References: Message-ID: <253bd1740808221350j7cc6528u71fc214b807a9774@mail.gmail.com> Yeah, I've seen this. What's going on is that will_paginate thinks that it should send all the facebook params on to the next request. So you are making a request to facebook with tons of its own params. I fixed it with a little hack: First I have a hash in application.rb with the params that facebook sends all set to nil: @nil_facebook_params = {"_method" => nil, "fb_sig" => nil, "fb_sig_added" => nil, "fb_sig_expires" => nil, "fb_sig_api_key" => nil, "fb_sig_friends" => nil, "fb_sig_in_canvas" => nil, "fb_sig_locale" => nil, "fb_sig_position_fix" => nil, "fb_sig_profile_update_time" => nil, "fb_sig_request_method" => nil, "fb_sig_session_key" => nil, "fb_sig_time" => nil, "fb_sig_user" => nil, "format" => nil} Then I pass those params through to will_paginate whenever I use it: <%= will_paginate @users, {:params => @nil_facebook_params} %> I can imagine that there are much better ways to do this but it has worked perfectly for me and I like how I don't have to alter the will_paginate plugin. All the best, Joseph http://inigral.com On Fri, Aug 22, 2008 at 12:58 PM, Ken Schroeder wrote: > Pretty sure I already wrote the alias on this but still haven't found a > solution to links for will paginate not being interpreted properly on > Facebook. When I mouse over a paginate link I'm seeing a path of: > http://app/path/index.fbml?_method=GET&fb_sig=742f6e3b4c1f21429de8abf3ebe413d7&fb_sig_added=1&fb_sig_api_key=aac4a507072a2272861620d4465805f9&fb_sig_expires=0&fb_sig_friends=43301100%2C48503782%2C53504644%2C58404877%2C501935451%2C532590319%2C535968041%2C567441833%2C612695156%2C669749967%2C669844464%2C670068651%2C680080756%2C682941909%2C690221893%2C719442065%2C726784712%2C733871420%2C754176811%2C800578706%2C867800017%2C1015280498%2C1035955620%2C1039496249%2C1081166150%2C1139158064%2C1143009096%2C1148066130%2C1159839159%2C1170759151%2C1193132280%2C1319695075%2C1323279749%2C1340134522%2C1346645414%2C1358658083%2C1396590279%2C1442130784%2C1461120042&fb_sig_in_canvas=1&fb_sig_in_new_facebook=1&fb_sig_locale=en_US&fb_sig_position_fix=1&fb_sig_profile_update_time=1215114821&fb_sig_request_method=GET&fb_sig_session_key=e1975924bb2d3d4ae8ec183e-1170442486&fb_sig_time=1219434912.1452&fb_sig_user=1170442486&page=3 > > as opposed to what I should see of > http://app/path?page=3 > > Pagination works as expected if I input the path as above. Would appreciate > if anyone has any ideas on this. Thanks --ken > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From schroeder.ken at gmail.com Fri Aug 22 18:04:20 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Fri, 22 Aug 2008 18:04:20 -0400 Subject: [Facebooker-talk] will_paginate links In-Reply-To: References: Message-ID: I've pretty much have done same as you have outlined in your book. I'm using same controller and view code via non-facebook interface and it works fine. I've used it in the past and know it's simple implementation that's why I'm baffeled by the problem. Below is what I've implemented. Controller index method has this: @groups = Group.paginate(:all, :order => "name asc", :per_page => 20, :page => (params[:page]||1)) view index.fbml.erb has <%= will_paginate @groups, :param_name => :page %> On Fri, Aug 22, 2008 at 4:20 PM, Mike Mangino wrote: > Can you give a little more information about your code? We're using will > paginate out of the box on Facebook. > > Mike > > > On Aug 22, 2008, at 3:58 PM, Ken Schroeder wrote: > > Pretty sure I already wrote the alias on this but still haven't found a >> solution to links for will paginate not being interpreted properly on >> Facebook. When I mouse over a paginate link I'm seeing a path of: >> >> http://app/path/index.fbml?_method=GET&fb_sig=742f6e3b4c1f21429de8abf3ebe413d7&fb_sig_added=1&fb_sig_api_key=aac4a507072a2272861620d4465805f9&fb_sig_expires=0&fb_sig_friends=43301100%2C48503782%2C53504644%2C58404877%2C501935451%2C532590319%2C535968041%2C567441833%2C612695156%2C669749967%2C669844464%2C670068651%2C680080756%2C682941909%2C690221893%2C719442065%2C726784712%2C733871420%2C754176811%2C800578706%2C867800017%2C1015280498%2C1035955620%2C1039496249%2C1081166150%2C1139158064%2C1143009096%2C1148066130%2C1159839159%2C1170759151%2C1193132280%2C1319695075%2C1323279749%2C1340134522%2C1346645414%2C1358658083%2C1396590279%2C1442130784%2C1461120042&fb_sig_in_canvas=1&fb_sig_in_new_facebook=1&fb_sig_locale=en_US&fb_sig_position_fix=1&fb_sig_profile_update_time=1215114821&fb_sig_request_method=GET&fb_sig_session_key=e1975924bb2d3d4ae8ec183e-1170442486&fb_sig_time=1219434912.1452&fb_sig_user=1170442486&page=3 >> >> as opposed to what I should see of >> http://app/path?page=3 >> >> Pagination works as expected if I input the path as above. Would >> appreciate if anyone has any ideas on this. Thanks --ken >> _______________________________________________ >> 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: From schroeder.ken at gmail.com Fri Aug 22 18:33:02 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Fri, 22 Aug 2008 18:33:02 -0400 Subject: [Facebooker-talk] will_paginate links In-Reply-To: <253bd1740808221350j7cc6528u71fc214b807a9774@mail.gmail.com> References: <253bd1740808221350j7cc6528u71fc214b807a9774@mail.gmail.com> Message-ID: Ahhhh finally that did the trick. I had tried similar techniques to no avail but in the view directly. Doing as you suggested works like a champ. Would be interesting to understand why it behaves that way as opposed to straight out the box like Mike and many others have implented. I'm not sure where to begin about trying to debug that though. On Fri, Aug 22, 2008 at 4:50 PM, Joseph Sofaer wrote: > Yeah, > I've seen this. What's going on is that will_paginate thinks that it > should send all the facebook params on to the next request. So you are > making a request to facebook with tons of its own params. > I fixed it with a little hack: > > First I have a hash in application.rb with the params that facebook > sends all set to nil: > > @nil_facebook_params = {"_method" => nil, "fb_sig" => nil, > "fb_sig_added" => nil, "fb_sig_expires" => nil, "fb_sig_api_key" => > nil, "fb_sig_friends" => nil, "fb_sig_in_canvas" => nil, > "fb_sig_locale" => nil, "fb_sig_position_fix" => nil, > "fb_sig_profile_update_time" => nil, "fb_sig_request_method" => nil, > "fb_sig_session_key" => nil, "fb_sig_time" => nil, "fb_sig_user" => > nil, "format" => nil} > > Then I pass those params through to will_paginate whenever I use it: > > <%= will_paginate @users, {:params => @nil_facebook_params} %> > > I can imagine that there are much better ways to do this but it has > worked perfectly for me and I like how I don't have to alter the > will_paginate plugin. > > All the best, > Joseph > http://inigral.com > > > On Fri, Aug 22, 2008 at 12:58 PM, Ken Schroeder > wrote: > > Pretty sure I already wrote the alias on this but still haven't found a > > solution to links for will paginate not being interpreted properly on > > Facebook. When I mouse over a paginate link I'm seeing a path of: > > > http://app/path/index.fbml?_method=GET&fb_sig=742f6e3b4c1f21429de8abf3ebe413d7&fb_sig_added=1&fb_sig_api_key=aac4a507072a2272861620d4465805f9&fb_sig_expires=0&fb_sig_friends=43301100%2C48503782%2C53504644%2C58404877%2C501935451%2C532590319%2C535968041%2C567441833%2C612695156%2C669749967%2C669844464%2C670068651%2C680080756%2C682941909%2C690221893%2C719442065%2C726784712%2C733871420%2C754176811%2C800578706%2C867800017%2C1015280498%2C1035955620%2C1039496249%2C1081166150%2C1139158064%2C1143009096%2C1148066130%2C1159839159%2C1170759151%2C1193132280%2C1319695075%2C1323279749%2C1340134522%2C1346645414%2C1358658083%2C1396590279%2C1442130784%2C1461120042&fb_sig_in_canvas=1&fb_sig_in_new_facebook=1&fb_sig_locale=en_US&fb_sig_position_fix=1&fb_sig_profile_update_time=1215114821&fb_sig_request_method=GET&fb_sig_session_key=e1975924bb2d3d4ae8ec183e-1170442486&fb_sig_time=1219434912.1452&fb_sig_user=1170442486&page=3 > > > > as opposed to what I should see of > > http://app/path?page=3 > > > > Pagination works as expected if I input the path as above. Would > appreciate > > if anyone has any ideas on this. 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: From auswalk at gmail.com Mon Aug 25 22:53:44 2008 From: auswalk at gmail.com (Allen Walker) Date: Mon, 25 Aug 2008 21:53:44 -0500 Subject: [Facebooker-talk] rendering images from a file upload Message-ID: <48B37038.9070703@gmail.com> Ok i've gotten the file upload working (I have users uploading images basically to be viewed on another page) but not sure how to display it on a facebook canvas. Do I need to present it in a iframe? PhotosController: def code_image @image_data = Photo.find(params[:id]) @image = @image_data.binary_data send_data(@image, :type => @image_data.content_type, :filename => @image_data.filename, :disposition => 'inline') end show.fbml.erb: <% for column in Photo.content_columns %> <%= column.human_name %> <% if column.name == "binary_data" %> <%= image_tag("/photos/code_image/#{@photo.id}", :alt => "Image") %> <% else %> <%=h @photo.send(column.name) %> <% end %> <% end %> the URL i'm directly going to to view the image: http://apps.new.facebook.com/myapp/photos/code_image/1 If I view the source html it shows a bunch of binary code of the image in the fbml source From schroeder.ken at gmail.com Mon Aug 25 23:24:04 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Mon, 25 Aug 2008 23:24:04 -0400 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: <48B37038.9070703@gmail.com> References: <48B37038.9070703@gmail.com> Message-ID: Is that path relative to RAILS_ROOT/public/images? Appears your trying to use a controller path to access the images. I think image_tag inherently uses RAILS_ROOT/public/images prepended to to the string, unless a fully qualified URL is provided, which seems your trying to use a relative path. On Mon, Aug 25, 2008 at 10:53 PM, Allen Walker wrote: > Ok i've gotten the file upload working (I have users uploading images > basically to be viewed on another page) but not sure how to display it on a > facebook canvas. Do I need to present it in a iframe? > > PhotosController: > > def code_image > @image_data = Photo.find(params[:id]) > @image = @image_data.binary_data > send_data(@image, :type => @image_data.content_type, :filename => > @image_data.filename, :disposition => 'inline') > end > > show.fbml.erb: > > <% for column in Photo.content_columns %> > <%= column.human_name %> > <% if column.name == "binary_data" %> > <%= image_tag("/photos/code_image/#{@photo.id}", :alt => > "Image") %> > <% else %> > <%=h @photo.send(column.name) %> > <% end %> > <% end %> > > the URL i'm directly going to to view the image: > > http://apps.new.facebook.com/myapp/photos/code_image/1 > > > If I view the source html it shows a bunch of binary code of the image in > the fbml source > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Tue Aug 26 00:48:24 2008 From: auswalk at gmail.com (Allen Walker) Date: Mon, 25 Aug 2008 23:48:24 -0500 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: References: <48B37038.9070703@gmail.com> Message-ID: <48B38B18.5050804@gmail.com> Actually I got most of the code from here: http://railsforum.com/viewtopic.php?id=4642 They explicitly use the image_tag which is ultimately calling a method in the controller. In the fbml source when I hit the url it just fires up bunch of binary in the page . So it's finding the image blob but not rendering it correctly. Ken Schroeder wrote: > Is that path relative to RAILS_ROOT/public/images? Appears your trying > to use a controller path to access the images. I think image_tag > inherently uses RAILS_ROOT/public/images prepended to to the string, > unless a fully qualified URL is provided, which seems your trying to > use a relative path. > > On Mon, Aug 25, 2008 at 10:53 PM, Allen Walker > wrote: > > Ok i've gotten the file upload working (I have users uploading > images basically to be viewed on another page) but not sure how to > display it on a facebook canvas. Do I need to present it in a iframe? > > PhotosController: > > def code_image > @image_data = Photo.find(params[:id]) > @image = @image_data.binary_data > send_data(@image, :type => @image_data.content_type, :filename > => @image_data.filename, :disposition => 'inline') > end > > show.fbml.erb: > > <% for column in Photo.content_columns %> > <%= column.human_name %> > <% if column.name == "binary_data" %> > <%= image_tag("/photos/code_image/#{@photo.id > }", :alt => "Image") %> > <% else %> > <%=h @photo.send(column.name ) %> > <% end %> > <% end %> > > the URL i'm directly going to to view the image: > > http://apps.new.facebook.com/myapp/photos/code_image/1 > > > If I view the source html it shows a bunch of binary code of the > image in the fbml source > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From auswalk at gmail.com Tue Aug 26 01:18:33 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 26 Aug 2008 00:18:33 -0500 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: References: <48B37038.9070703@gmail.com> Message-ID: <48B39229.2010508@gmail.com> I see your point now.. This is tricky. If I go to my host URL it auto redirects back to facebook. Looks like I'm gonna have to set a route up or something.. Ken Schroeder wrote: > Is that path relative to RAILS_ROOT/public/images? Appears your trying > to use a controller path to access the images. I think image_tag > inherently uses RAILS_ROOT/public/images prepended to to the string, > unless a fully qualified URL is provided, which seems your trying to > use a relative path. > > On Mon, Aug 25, 2008 at 10:53 PM, Allen Walker > wrote: > > Ok i've gotten the file upload working (I have users uploading > images basically to be viewed on another page) but not sure how to > display it on a facebook canvas. Do I need to present it in a iframe? > > PhotosController: > > def code_image > @image_data = Photo.find(params[:id]) > @image = @image_data.binary_data > send_data(@image, :type => @image_data.content_type, :filename > => @image_data.filename, :disposition => 'inline') > end > > show.fbml.erb: > > <% for column in Photo.content_columns %> > <%= column.human_name %> > <% if column.name == "binary_data" %> > <%= image_tag("/photos/code_image/#{@photo.id > }", :alt => "Image") %> > <% else %> > <%=h @photo.send(column.name ) %> > <% end %> > <% end %> > > the URL i'm directly going to to view the image: > > http://apps.new.facebook.com/myapp/photos/code_image/1 > > > If I view the source html it shows a bunch of binary code of the > image in the fbml source > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From auswalk at gmail.com Tue Aug 26 01:23:54 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 26 Aug 2008 00:23:54 -0500 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: <48B39229.2010508@gmail.com> References: <48B37038.9070703@gmail.com> <48B39229.2010508@gmail.com> Message-ID: <48B3936A.8060802@gmail.com> So i guess my question then is, how do I setup a route so that if I do "www.myhost.com/photo/show/1" it will not go thru facebook but instead go directly to my host. Allen Walker wrote: > I see your point now.. > > This is tricky. If I go to my host URL it auto redirects back to > facebook. Looks like I'm gonna have to set a route up or something.. > From auswalk at gmail.com Tue Aug 26 01:29:30 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 26 Aug 2008 00:29:30 -0500 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: References: <48B37038.9070703@gmail.com> <48B39229.2010508@gmail.com> <48B3936A.8060802@gmail.com> Message-ID: <48B394BA.8040802@gmail.com> Well my prob is I can't even do "www.myhost.com/photo/show/1 ". If I do that it redirects to my apps.facebook.com/myapp I'm not sure how to bypass that. Ken Schroeder wrote: > Yeah I had this same question more or less week or so ago I ended up > hard coding my callback_url and path in the view. :( > > On Tue, Aug 26, 2008 at 1:23 AM, Allen Walker > wrote: > > So i guess my question then is, how do I setup a route so that if > I do "www.myhost.com/photo/show/1 > " it will not go thru facebook > but instead go directly to my host. > > > Allen Walker wrote: > > I see your point now.. > > This is tricky. If I go to my host URL it auto redirects back > to facebook. Looks like I'm gonna have to set a route up or > something.. > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From digidigo at gmail.com Tue Aug 26 01:31:07 2008 From: digidigo at gmail.com (David Clements) Date: Mon, 25 Aug 2008 23:31:07 -0600 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: <48B394BA.8040802@gmail.com> References: <48B37038.9070703@gmail.com> <48B39229.2010508@gmail.com> <48B3936A.8060802@gmail.com> <48B394BA.8040802@gmail.com> Message-ID: I think you need to skip the authentication filter for that controller. skip_before_filter :ensure_authenticated_to_facebook Then it won't redirect back to facebook. Dave On Mon, Aug 25, 2008 at 11:29 PM, Allen Walker wrote: > Well my prob is I can't even do "www.myhost.com/photo/show/1 < > http://www.myhost.com/photo/show/1>". If I do that it redirects to my > apps.facebook.com/myapp > > I'm not sure how to bypass that. > > Ken Schroeder wrote: > >> Yeah I had this same question more or less week or so ago I ended up hard >> coding my callback_url and path in the view. :( >> >> On Tue, Aug 26, 2008 at 1:23 AM, Allen Walker > auswalk at gmail.com>> wrote: >> >> So i guess my question then is, how do I setup a route so that if >> I do "www.myhost.com/photo/show/1 >> " it will not go thru facebook >> but instead go directly to my host. >> >> >> Allen Walker wrote: >> >> I see your point now.. >> >> This is tricky. If I go to my host URL it auto redirects back >> to facebook. Looks like I'm gonna have to set a route up or >> something.. >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> 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: From auswalk at gmail.com Tue Aug 26 02:11:26 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 26 Aug 2008 01:11:26 -0500 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: References: <48B37038.9070703@gmail.com> <48B39229.2010508@gmail.com> <48B3936A.8060802@gmail.com> <48B394BA.8040802@gmail.com> Message-ID: <48B39E8E.4070208@gmail.com> Thanks alot, that worked! David Clements wrote: > I think you need to skip the authentication filter for that controller. > > skip_before_filter :ensure_authenticated_to_facebook > > Then it won't redirect back to facebook. > > Dave > > > On Mon, Aug 25, 2008 at 11:29 PM, Allen Walker > wrote: > > Well my prob is I can't even do "www.myhost.com/photo/show/1 > > ". If I do that it redirects > to my apps.facebook.com/myapp > > I'm not sure how to bypass that. > > Ken Schroeder wrote: > > Yeah I had this same question more or less week or so ago I > ended up hard coding my callback_url and path in the view. :( > > > On Tue, Aug 26, 2008 at 1:23 AM, Allen Walker > > >> wrote: > > So i guess my question then is, how do I setup a route so > that if > I do "www.myhost.com/photo/show/1 > > " it will not go thru > facebook > > but instead go directly to my host. > > > Allen Walker wrote: > > I see your point now.. > > This is tricky. If I go to my host URL it auto > redirects back > to facebook. Looks like I'm gonna have to set a route up or > something.. > > > _______________________________________________ > Facebooker-talk mailing list > 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 > > From barooo at gmail.com Tue Aug 26 17:27:55 2008 From: barooo at gmail.com (John Richardson) Date: Tue, 26 Aug 2008 16:27:55 -0500 Subject: [Facebooker-talk] image cache acting weird for anyone? Message-ID: <3f4b08d0808261427k7cfb824fk710dd2b204785f3e@mail.gmail.com> We've got a few random images that seem to have gone missing from the cache... They're used in our profile fbml. I double-checked the image specified by the fbml and it exists at the specified URL on our ruby server, but it's in the rendered html as http://photos-b.ak.facebook.com/photos-ak-sctm/genericv2b/1013/17/01AwcA9hJaWykAAAABAAAAAAAAAAA:.jpg which is a not found... Renaming the image works, using the API call to refresh the image does not. I don't want to just go randomly renaming stuff and hoping it doesn't break again, but I can't think of anything else to do. Figured I'd ask if anyone else was having issues... From auswalk at gmail.com Tue Aug 26 23:02:48 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 26 Aug 2008 22:02:48 -0500 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: References: <48B37038.9070703@gmail.com> <48B39229.2010508@gmail.com> <48B3936A.8060802@gmail.com> Message-ID: <48B4C3D8.7050800@gmail.com> After you accept the upload, how to you redirect back into the facebook canvas? My create method in my controller doesn't redirect back into apps.facebook.com/myapp/photos but rather www.myhost.com/photos: def create @photo = Photo.new(params[:photo]) if @photo.save flash[:notice] = "Photo Saved" redirect_to photos_url else render :action => "new" end end Ken Schroeder wrote: > Yeah I had this same question more or less week or so ago I ended up > hard coding my callback_url and path in the view. :( > > On Tue, Aug 26, 2008 at 1:23 AM, Allen Walker > wrote: > > So i guess my question then is, how do I setup a route so that if > I do "www.myhost.com/photo/show/1 > " it will not go thru facebook > but instead go directly to my host. > > > Allen Walker wrote: > > I see your point now.. > > This is tricky. If I go to my host URL it auto redirects back > to facebook. Looks like I'm gonna have to set a route up or > something.. > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From auswalk at gmail.com Tue Aug 26 23:17:34 2008 From: auswalk at gmail.com (Allen Walker) Date: Tue, 26 Aug 2008 22:17:34 -0500 Subject: [Facebooker-talk] rendering images from a file upload In-Reply-To: References: <48B37038.9070703@gmail.com> <48B39229.2010508@gmail.com> <48B3936A.8060802@gmail.com> <48B4C3D8.7050800@gmail.com> Message-ID: <48B4C74E.9080801@gmail.com> Thank you sir. Duh ;-) BJ Clark wrote: > :canvas => true > > > On Aug 26, 2008, at 9:02 PM, Allen Walker wrote: > >> After you accept the upload, how to you redirect back into the >> facebook canvas? My create method in my controller doesn't redirect >> back into apps.facebook.com/myapp/photos but rather >> www.myhost.com/photos: >> >> def create >> @photo = Photo.new(params[:photo]) >> if @photo.save >> flash[:notice] = "Photo Saved" >> redirect_to photos_url >> else >> render :action => "new" >> end >> end >> >> Ken Schroeder wrote: >>> Yeah I had this same question more or less week or so ago I ended up >>> hard coding my callback_url and path in the view. :( >>> >>> On Tue, Aug 26, 2008 at 1:23 AM, Allen Walker >> > wrote: >>> >>> So i guess my question then is, how do I setup a route so that if >>> I do "www.myhost.com/photo/show/1 >>> " it will not go thru facebook >>> but instead go directly to my host. >>> >>> >>> Allen Walker wrote: >>> >>> I see your point now.. >>> >>> This is tricky. If I go to my host URL it auto redirects back >>> to facebook. Looks like I'm gonna have to set a route up or >>> something.. >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> 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 > > From aurelien.malisart at gmail.com Wed Aug 27 12:33:37 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Wed, 27 Aug 2008 18:33:37 +0200 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <83adaa130808251103tcffb9bdsbc2d12ff97a83dfb@mail.gmail.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <83adaa130808251103tcffb9bdsbc2d12ff97a83dfb@mail.gmail.com> Message-ID: <83adaa130808270933y3fdbad42i3803e7c922e421d5@mail.gmail.com> (Ram Ravichandran, sorry for the duplicate, I made a mistake in the reply email address) On Mon, Aug 25, 2008 at 8:03 PM, Aur?lien Malisart wrote: Hi, Is it normal that, when using canvas, if I call a " *_path " or " *_url " route helper, the canvas prefix is not included? Thanks... really stuck on this. Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be -- Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be From mmangino at elevatedrails.com Wed Aug 27 13:10:23 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 27 Aug 2008 13:10:23 -0400 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> Message-ID: <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> It should. What does your configuration look like? Mike On Jul 30, 2008, at 4:17 PM, Aur?lien Malisart wrote: > I do get the same with the named routes now... > > e.g. : my_model_path doesn't include 'my_app_name/' at the begining. > So, my routes are well recognized but not well generated. Or I > missed something! > > I think it worked before I pulled the last version of Facebooker... > > aurels > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From redinger at gmail.com Wed Aug 27 13:27:30 2008 From: redinger at gmail.com (Christopher Redinger) Date: Wed, 27 Aug 2008 13:27:30 -0400 Subject: [Facebooker-talk] Facebook Connect In-Reply-To: References: <3E985C2F-423D-4440-BE96-7EB6256776FE@scidept.com> Message-ID: <681d4e8f0808271027u7c838a65uf8b8b6e978d83fed@mail.gmail.com> Is the facebook connect stuff in facebooker somewhere, or is there a separate project? On Thu, Jul 31, 2008 at 7:25 PM, Mike Mangino wrote: > A couple of people expressed interest, so I will commit what I have. It > should work, but so far I can't connect to the new api.connect.facebook.com. > > Mike > > On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: > >> Mike, >> I'm thinking about using it, want to toss something up on github and I'll >> fork from there? >> BJ >> >> >> On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: >> >>> Is anyone planning on using Facebook Connect? I have the implementation >>> that I think covers the user registration. I'm going to work on the UI stuff >>> as well but would love to get some feedback on it. >>> >>> Mike >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -- Christopher Redinger http://www.agiledisciple.com From mmangino at elevatedrails.com Wed Aug 27 14:04:54 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 27 Aug 2008 14:04:54 -0400 Subject: [Facebooker-talk] Facebook Connect In-Reply-To: <681d4e8f0808271027u7c838a65uf8b8b6e978d83fed@mail.gmail.com> References: <3E985C2F-423D-4440-BE96-7EB6256776FE@scidept.com> <681d4e8f0808271027u7c838a65uf8b8b6e978d83fed@mail.gmail.com> Message-ID: <17F2A733-9A0E-443C-A52D-8E906014AE79@elevatedrails.com> There is a little bit in Facebooker, but I couldn't get any of their examples to work. I tried to just render a simple login button and gave up. Have you guys had any luck with it? Mike On Aug 27, 2008, at 1:27 PM, Christopher Redinger wrote: > Is the facebook connect stuff in facebooker somewhere, or is there a > separate project? > > On Thu, Jul 31, 2008 at 7:25 PM, Mike Mangino > wrote: >> A couple of people expressed interest, so I will commit what I >> have. It >> should work, but so far I can't connect to the new >> api.connect.facebook.com. >> >> Mike >> >> On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: >> >>> Mike, >>> I'm thinking about using it, want to toss something up on github >>> and I'll >>> fork from there? >>> BJ >>> >>> >>> On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: >>> >>>> Is anyone planning on using Facebook Connect? I have the >>>> implementation >>>> that I think covers the user registration. I'm going to work on >>>> the UI stuff >>>> as well but would love to get some feedback on it. >>>> >>>> Mike >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > > > -- > Christopher Redinger > http://www.agiledisciple.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From bjclark at scidept.com Wed Aug 27 14:06:59 2008 From: bjclark at scidept.com (BJ Clark) Date: Wed, 27 Aug 2008 12:06:59 -0600 Subject: [Facebooker-talk] Facebook Connect In-Reply-To: <17F2A733-9A0E-443C-A52D-8E906014AE79@elevatedrails.com> References: <3E985C2F-423D-4440-BE96-7EB6256776FE@scidept.com> <681d4e8f0808271027u7c838a65uf8b8b6e978d83fed@mail.gmail.com> <17F2A733-9A0E-443C-A52D-8E906014AE79@elevatedrails.com> Message-ID: I have played with it some too and have had very little luck getting their examples working also. Seems pretty rough at this point. I've also tried getting information from them about it, and have little luck with that either. BJ Clark On Aug 27, 2008, at 12:04 PM, Mike Mangino wrote: > There is a little bit in Facebooker, but I couldn't get any of their > examples to work. I tried to just render a simple login button and > gave up. > > Have you guys had any luck with it? > > Mike > On Aug 27, 2008, at 1:27 PM, Christopher Redinger wrote: > >> Is the facebook connect stuff in facebooker somewhere, or is there a >> separate project? >> >> On Thu, Jul 31, 2008 at 7:25 PM, Mike Mangino >> wrote: >>> A couple of people expressed interest, so I will commit what I >>> have. It >>> should work, but so far I can't connect to the new >>> api.connect.facebook.com. >>> >>> Mike >>> >>> On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: >>> >>>> Mike, >>>> I'm thinking about using it, want to toss something up on github >>>> and I'll >>>> fork from there? >>>> BJ >>>> >>>> >>>> On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: >>>> >>>>> Is anyone planning on using Facebook Connect? I have the >>>>> implementation >>>>> that I think covers the user registration. I'm going to work on >>>>> the UI stuff >>>>> as well but would love to get some feedback on it. >>>>> >>>>> Mike >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> >> >> -- >> Christopher Redinger >> http://www.agiledisciple.com >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From redinger at gmail.com Wed Aug 27 14:20:23 2008 From: redinger at gmail.com (Christopher Redinger) Date: Wed, 27 Aug 2008 14:20:23 -0400 Subject: [Facebooker-talk] Facebook Connect In-Reply-To: <17F2A733-9A0E-443C-A52D-8E906014AE79@elevatedrails.com> References: <3E985C2F-423D-4440-BE96-7EB6256776FE@scidept.com> <681d4e8f0808271027u7c838a65uf8b8b6e978d83fed@mail.gmail.com> <17F2A733-9A0E-443C-A52D-8E906014AE79@elevatedrails.com> Message-ID: <681d4e8f0808271120s1d820beanc890f98474695ba2@mail.gmail.com> Ah. I am playing with it now; was hoping to see what you had done to figure out why I couldn't get it working. :) On Wed, Aug 27, 2008 at 2:04 PM, Mike Mangino wrote: > There is a little bit in Facebooker, but I couldn't get any of their > examples to work. I tried to just render a simple login button and gave up. > > Have you guys had any luck with it? > > Mike > On Aug 27, 2008, at 1:27 PM, Christopher Redinger wrote: > >> Is the facebook connect stuff in facebooker somewhere, or is there a >> separate project? >> >> On Thu, Jul 31, 2008 at 7:25 PM, Mike Mangino >> wrote: >>> >>> A couple of people expressed interest, so I will commit what I have. It >>> should work, but so far I can't connect to the new >>> api.connect.facebook.com. >>> >>> Mike >>> >>> On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: >>> >>>> Mike, >>>> I'm thinking about using it, want to toss something up on github and >>>> I'll >>>> fork from there? >>>> BJ >>>> >>>> >>>> On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: >>>> >>>>> Is anyone planning on using Facebook Connect? I have the implementation >>>>> that I think covers the user registration. I'm going to work on the UI >>>>> stuff >>>>> as well but would love to get some feedback on it. >>>>> >>>>> Mike >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> >> >> -- >> Christopher Redinger >> http://www.agiledisciple.com >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -- Christopher Redinger http://www.agiledisciple.com From aurelien.malisart at gmail.com Wed Aug 27 14:24:02 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Wed, 27 Aug 2008 20:24:02 +0200 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> Message-ID: <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino wrote: > It should. What does your configuration look like? My facebooker.yml is 'classical': development: api_key: ** secret_key: ** canvas_page_name: forty_two_dev callback_url: ** tunnel: public_host_username: aurels public_host: ** public_port: 3000 local_port: 3000 Nothing related to facebooker in my environment.rb. What else config might be related? If I manually enter the url, the routing is OK. Only the generation isn't working. Thank you. From jonathan.otto at gmail.com Wed Aug 27 15:54:35 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Wed, 27 Aug 2008 14:54:35 -0500 Subject: [Facebooker-talk] ensure_authenticated_to_facebook vs ensure_application_is_installed_by_facebook_user Message-ID: What are the implications of using ensure_authenticated_to_facebook instead of ensure_application_is_installed_by_facebook_user? From auswalk at gmail.com Wed Aug 27 16:02:36 2008 From: auswalk at gmail.com (Allen Walker) Date: Wed, 27 Aug 2008 15:02:36 -0500 Subject: [Facebooker-talk] ensure_authenticated_to_facebook vs ensure_application_is_installed_by_facebook_user In-Reply-To: References: Message-ID: <48B5B2DC.7050500@gmail.com> I had some issues with proper redirect using ensure_authenticated_to_facebook. I.e. if the user wasn't logged in and hit my app and then logged in it would go to the noncanvas URL. That was fixed when I replaced it with ensure_application_is_installed_by_facebook_user Jonathan Otto wrote: > What are the implications of using ensure_authenticated_to_facebook > instead of ensure_application_is_installed_by_facebook_user? > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From mmangino at elevatedrails.com Wed Aug 27 16:25:13 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 27 Aug 2008 16:25:13 -0400 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> Message-ID: <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> So in a facebook request, you're running something like users_path and not getting '/forty_two_dev/users' Is facebook sending the fb_sig_in_canvas parameter? Can you include the params info from your log? Mike On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote: > On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino > wrote: >> It should. What does your configuration look like? > > My facebooker.yml is 'classical': > > development: > api_key: ** > secret_key: ** > canvas_page_name: forty_two_dev > callback_url: ** > tunnel: > public_host_username: aurels > public_host: ** > public_port: 3000 > local_port: 3000 > > Nothing related to facebooker in my environment.rb. What else config > might be related? > If I manually enter the url, the routing is OK. Only the generation > isn't working. > > Thank you. -- Mike Mangino http://www.elevatedrails.com From auswalk at gmail.com Wed Aug 27 16:42:39 2008 From: auswalk at gmail.com (Allen Walker) Date: Wed, 27 Aug 2008 15:42:39 -0500 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> Message-ID: <48B5BC3F.8060604@gmail.com> I have one question regarding this: if the user goes to a specific URL in the app that requires him to install the app, then he clicks "allow", when the user does this it is redirecting back to the apps home page (apps.facebook.com/myapp) instead of back to the URL before he clicked "allow access". how do I fix that? I have "ensure_application_is_installed_by_facebook_user" in my application.rb btw. thanks Mike Mangino wrote: > So in a facebook request, you're running something like users_path and > not getting '/forty_two_dev/users' > > Is facebook sending the fb_sig_in_canvas parameter? Can you include > the params info from your log? > > Mike > > On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote: > >> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino >> wrote: >>> It should. What does your configuration look like? >> >> My facebooker.yml is 'classical': >> >> development: >> api_key: ** >> secret_key: ** >> canvas_page_name: forty_two_dev >> callback_url: ** >> tunnel: >> public_host_username: aurels >> public_host: ** >> public_port: 3000 >> local_port: 3000 >> >> Nothing related to facebooker in my environment.rb. What else config >> might be related? >> If I manually enter the url, the routing is OK. Only the generation >> isn't working. >> >> Thank you. > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From wthomas989 at yahoo.com Wed Aug 27 16:45:38 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Wed, 27 Aug 2008 13:45:38 -0700 (PDT) Subject: [Facebooker-talk] Facebook Connect Message-ID: <189032.95045.qm@web58701.mail.re1.yahoo.com> I have played with it successfully in a rails environment. It is very particular about the order that things get set up. Additionally I have attempted to create a facebooker session based off the info provided by FBC and failed. Here is my connect layout <%= javascript_include_tag "prototype" %> <%= yield %>
----- Original Message ---- From: Christopher Redinger To: facebooker-talk at rubyforge.org Sent: Wednesday, August 27, 2008 1:20:23 PM Subject: Re: [Facebooker-talk] Facebook Connect Ah. I am playing with it now; was hoping to see what you had done to figure out why I couldn't get it working. :) On Wed, Aug 27, 2008 at 2:04 PM, Mike Mangino wrote: > There is a little bit in Facebooker, but I couldn't get any of their > examples to work. I tried to just render a simple login button and gave up. > > Have you guys had any luck with it? > > Mike > On Aug 27, 2008, at 1:27 PM, Christopher Redinger wrote: > >> Is the facebook connect stuff in facebooker somewhere, or is there a >> separate project? >> >> On Thu, Jul 31, 2008 at 7:25 PM, Mike Mangino >> wrote: >>> >>> A couple of people expressed interest, so I will commit what I have. It >>> should work, but so far I can't connect to the new >>> api.connect.facebook.com. >>> >>> Mike >>> >>> On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: >>> >>>> Mike, >>>> I'm thinking about using it, want to toss something up on github and >>>> I'll >>>> fork from there? >>>> BJ >>>> >>>> >>>> On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: >>>> >>>>> Is anyone planning on using Facebook Connect? I have the implementation >>>>> that I think covers the user registration. I'm going to work on the UI >>>>> stuff >>>>> as well but would love to get some feedback on it. >>>>> >>>>> Mike >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> >> >> -- >> Christopher Redinger >> http://www.agiledisciple.com >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -- Christopher Redinger http://www.agiledisciple.com _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjclark at scidept.com Wed Aug 27 17:11:44 2008 From: bjclark at scidept.com (BJ Clark) Date: Wed, 27 Aug 2008 15:11:44 -0600 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <48B5BC3F.8060604@gmail.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> <48B5BC3F.8060604@gmail.com> Message-ID: Allen, It can be configured via the post add url. If you want to do a redirect_to :back, you have to fudge it by setting a cookie and redirecting when they get back to your app. BJ On Aug 27, 2008, at 2:42 PM, Allen Walker wrote: > I have one question regarding this: > > if the user goes to a specific URL in the app that requires him to > install the app, then he clicks "allow", when the user does this it > is redirecting back to the apps home page (apps.facebook.com/myapp) > instead of back to the URL before he clicked "allow access". how do > I fix that? > > I have "ensure_application_is_installed_by_facebook_user" in my > application.rb btw. > > thanks > > Mike Mangino wrote: >> So in a facebook request, you're running something like users_path >> and not getting '/forty_two_dev/users' >> >> Is facebook sending the fb_sig_in_canvas parameter? Can you include >> the params info from your log? >> >> Mike >> >> On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote: >> >>> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino >>> wrote: >>>> It should. What does your configuration look like? >>> >>> My facebooker.yml is 'classical': >>> >>> development: >>> api_key: ** >>> secret_key: ** >>> canvas_page_name: forty_two_dev >>> callback_url: ** >>> tunnel: >>> public_host_username: aurels >>> public_host: ** >>> public_port: 3000 >>> local_port: 3000 >>> >>> Nothing related to facebooker in my environment.rb. What else config >>> might be related? >>> If I manually enter the url, the routing is OK. Only the generation >>> isn't working. >>> >>> Thank you. >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> 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 From auswalk at gmail.com Wed Aug 27 17:27:13 2008 From: auswalk at gmail.com (Allen Walker) Date: Wed, 27 Aug 2008 16:27:13 -0500 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> <48B5BC3F.8060604@gmail.com> Message-ID: <48B5C6B1.1080605@gmail.com> Uggh. this sounds sorta messy . Do you have any example code I could use? Thanks BJ Clark wrote: > Allen, > It can be configured via the post add url. > > If you want to do a redirect_to :back, you have to fudge it by setting > a cookie and redirecting when they get back to your app. > > BJ > > > On Aug 27, 2008, at 2:42 PM, Allen Walker wrote: > >> I have one question regarding this: >> >> if the user goes to a specific URL in the app that requires him to >> install the app, then he clicks "allow", when the user does this it >> is redirecting back to the apps home page (apps.facebook.com/myapp) >> instead of back to the URL before he clicked "allow access". how do I >> fix that? >> >> I have "ensure_application_is_installed_by_facebook_user" in my >> application.rb btw. >> >> thanks >> >> Mike Mangino wrote: >>> So in a facebook request, you're running something like users_path >>> and not getting '/forty_two_dev/users' >>> >>> Is facebook sending the fb_sig_in_canvas parameter? Can you include >>> the params info from your log? >>> >>> Mike >>> >>> On Aug 27, 2008, at 2:24 PM, Aur?lien Malisart wrote: >>> >>>> On Wed, Aug 27, 2008 at 7:10 PM, Mike Mangino >>>> wrote: >>>>> It should. What does your configuration look like? >>>> >>>> My facebooker.yml is 'classical': >>>> >>>> development: >>>> api_key: ** >>>> secret_key: ** >>>> canvas_page_name: forty_two_dev >>>> callback_url: ** >>>> tunnel: >>>> public_host_username: aurels >>>> public_host: ** >>>> public_port: 3000 >>>> local_port: 3000 >>>> >>>> Nothing related to facebooker in my environment.rb. What else config >>>> might be related? >>>> If I manually enter the url, the routing is OK. Only the generation >>>> isn't working. >>>> >>>> Thank you. >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> 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 > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From redinger at gmail.com Wed Aug 27 18:03:46 2008 From: redinger at gmail.com (Christopher Redinger) Date: Wed, 27 Aug 2008 18:03:46 -0400 Subject: [Facebooker-talk] Facebook Connect In-Reply-To: <189032.95045.qm@web58701.mail.re1.yahoo.com> References: <189032.95045.qm@web58701.mail.re1.yahoo.com> Message-ID: <681d4e8f0808271503o4a6af92at1c0d93e2b24f4667@mail.gmail.com> Well thanks for posting that. That's pretty much exactly what I've done. That prompted me to peruse facebook documentation some more, and found this FAQ: Q: When I try to log in using fb:login-button, I get redirected to Facebook. Why is this happening? A: While Facebook Connect is still in the beta testing phase, only users who are listed as developers of your application can log in and connect accounts. You add accounts as developers by editing your application settings in the Developer application. For more information, read about the Facebook Connect sandbox. Uh yeah, that seems to be related to my problem (trying to use test accounts, though) So, Mike, I'm in the category of it's working for me now. On Wed, Aug 27, 2008 at 4:45 PM, William Thomas wrote: > I have played with it successfully in a rails environment. It is very > particular about the order that things get set up. Additionally I have > attempted to create a facebooker session based off the info provided by FBC > and failed. > > Here is my connect layout > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > xmlns:fb="http://www.facebook.com/2008/fbml"> > > <%= javascript_include_tag "prototype" %> > href="http://static.ak.connect.facebook.com/css/fb_connect.css" > type="text/css"/> > > > <%= yield %> > > > >
> > > > > > > ----- Original Message ---- > From: Christopher Redinger > To: facebooker-talk at rubyforge.org > Sent: Wednesday, August 27, 2008 1:20:23 PM > Subject: Re: [Facebooker-talk] Facebook Connect > > Ah. I am playing with it now; was hoping to see what you had done to > figure out why I couldn't get it working. :) > > On Wed, Aug 27, 2008 at 2:04 PM, Mike Mangino > wrote: >> There is a little bit in Facebooker, but I couldn't get any of their >> examples to work. I tried to just render a simple login button and gave >> up. >> >> Have you guys had any luck with it? >> >> Mike >> On Aug 27, 2008, at 1:27 PM, Christopher Redinger wrote: >> >>> Is the facebook connect stuff in facebooker somewhere, or is there a >>> separate project? >>> >>> On Thu, Jul 31, 2008 at 7:25 PM, Mike Mangino >>> wrote: >>>> >>>> A couple of people expressed interest, so I will commit what I have. It >>>> should work, but so far I can't connect to the new >>>> api.connect.facebook.com. >>>> >>>> Mike >>>> >>>> On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: >>>> >>>>> Mike, >>>>> I'm thinking about using it, want to toss something up on github and >>>>> I'll >>>>> fork from there? >>>>> BJ >>>>> >>>>> >>>>> On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: >>>>> >>>>>> Is anyone planning on using Facebook Connect? I have the >>>>>> implementation >>>>>> that I think covers the user registration. I'm going to work on the UI >>>>>> stuff >>>>>> as well but would love to get some feedback on it. >>>>>> >>>>>> Mike >>>>>> >>>>>> -- >>>>>> Mike Mangino >>>>>> http://www.elevatedrails.com >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> >>> >>> -- >>> Christopher Redinger >>> http://www.agiledisciple.com >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> > > > > -- > Christopher Redinger > http://www.agiledisciple.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- Christopher Redinger http://www.agiledisciple.com From mmangino at elevatedrails.com Wed Aug 27 18:31:40 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 27 Aug 2008 18:31:40 -0400 Subject: [Facebooker-talk] Facebook Connect In-Reply-To: <681d4e8f0808271503o4a6af92at1c0d93e2b24f4667@mail.gmail.com> References: <189032.95045.qm@web58701.mail.re1.yahoo.com> <681d4e8f0808271503o4a6af92at1c0d93e2b24f4667@mail.gmail.com> Message-ID: <5D908AE6-99BF-43A6-B9C7-73045DF6DDC2@elevatedrails.com> You get an actual login button? Okay. I don't have time to work on it this week, but I'll try to work on some integration next week. For me, the key thing will be some helpers to wrap up the ugly js that's required to make this pig work. Mike On Aug 27, 2008, at 6:03 PM, Christopher Redinger wrote: > Well thanks for posting that. That's pretty much exactly what I've > done. That prompted me to peruse facebook documentation some more, and > found this FAQ: > Q: When I try to log in using fb:login-button, I get redirected to > Facebook. Why is this happening? > > A: While Facebook Connect is still in the beta testing phase, only > users who are listed as developers of your application can log in and > connect accounts. You add accounts as developers by editing your > application settings in the Developer application. For more > information, read about the Facebook Connect sandbox. > > Uh yeah, that seems to be related to my problem (trying to use test > accounts, though) > > So, Mike, I'm in the category of it's working for me now. > > On Wed, Aug 27, 2008 at 4:45 PM, William Thomas > wrote: >> I have played with it successfully in a rails environment. It is very >> particular about the order that things get set up. Additionally I >> have >> attempted to create a facebooker session based off the info >> provided by FBC >> and failed. >> >> Here is my connect layout >> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> > xmlns:fb="http://www.facebook.com/2008/fbml"> >> >> <%= javascript_include_tag "prototype" %> >> > href="http://static.ak.connect.facebook.com/css/fb_connect.css" >> type="text/css"/> >> >> >> <%= yield %> >> >> >> >>
>> >> >> >> >> >> >> ----- Original Message ---- >> From: Christopher Redinger >> To: facebooker-talk at rubyforge.org >> Sent: Wednesday, August 27, 2008 1:20:23 PM >> Subject: Re: [Facebooker-talk] Facebook Connect >> >> Ah. I am playing with it now; was hoping to see what you had done to >> figure out why I couldn't get it working. :) >> >> On Wed, Aug 27, 2008 at 2:04 PM, Mike Mangino >> wrote: >>> There is a little bit in Facebooker, but I couldn't get any of their >>> examples to work. I tried to just render a simple login button and >>> gave >>> up. >>> >>> Have you guys had any luck with it? >>> >>> Mike >>> On Aug 27, 2008, at 1:27 PM, Christopher Redinger wrote: >>> >>>> Is the facebook connect stuff in facebooker somewhere, or is >>>> there a >>>> separate project? >>>> >>>> On Thu, Jul 31, 2008 at 7:25 PM, Mike Mangino >>>> wrote: >>>>> >>>>> A couple of people expressed interest, so I will commit what I >>>>> have. It >>>>> should work, but so far I can't connect to the new >>>>> api.connect.facebook.com. >>>>> >>>>> Mike >>>>> >>>>> On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: >>>>> >>>>>> Mike, >>>>>> I'm thinking about using it, want to toss something up on >>>>>> github and >>>>>> I'll >>>>>> fork from there? >>>>>> BJ >>>>>> >>>>>> >>>>>> On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: >>>>>> >>>>>>> Is anyone planning on using Facebook Connect? I have the >>>>>>> implementation >>>>>>> that I think covers the user registration. I'm going to work >>>>>>> on the UI >>>>>>> stuff >>>>>>> as well but would love to get some feedback on it. >>>>>>> >>>>>>> Mike >>>>>>> >>>>>>> -- >>>>>>> Mike Mangino >>>>>>> http://www.elevatedrails.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Facebooker-talk mailing list >>>>>>> Facebooker-talk at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>> >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>> >>>> >>>> >>>> -- >>>> Christopher Redinger >>>> http://www.agiledisciple.com >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> >> >> >> >> -- >> Christopher Redinger >> http://www.agiledisciple.com >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > > > -- > Christopher Redinger > http://www.agiledisciple.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From aurelien.malisart at gmail.com Thu Aug 28 06:06:38 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Thu, 28 Aug 2008 12:06:38 +0200 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> Message-ID: <83adaa130808280306j2b989847nf9e5f110a191cd43@mail.gmail.com> Hello, On Wed, Aug 27, 2008 at 10:25 PM, Mike Mangino wrote: > So in a facebook request, you're running something like users_path and not > getting '/forty_two_dev/users' Yes that's it. I get /users only. > Is facebook sending the fb_sig_in_canvas parameter? Can you include the > params info from your log? Here it is: Processing MainController#index (for 127.0.0.1 at 2008-08-28 12:03:10) [GET] Session ID: ff2514e3076a243fec62c5f6-723231803 Parameters: {"fb_sig_time"=>"1219917788.5793", "fb_sig"=>"30b65670c6722740e2fc9ddd0379e160", "fb_sig_in_new_facebook"=>"1", "_method"=>"GET", "fb_sig_locale"=>"en_US", "action"=>"index", "fb_sig_session_key"=>"ff2514e3076a243fec62c5f6-723231803", "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", "fb_sig_request_method"=>"GET", "controller"=>"main", "fb_sig_expires"=>"0", "fb_sig_added"=>"1", "fb_sig_friends"=>"7951628,61213342,61214298,341000028,500395884,500463730,506392817,514043942,520137775,523559443,526454251,527896767,529344453,532326092,535432155,536402263,539954578,540476247,546374846,547033855,548665617,548858617,552743294,558571686,559641879,560046648,560181697,560734308,560908006,564832519,565423327,565538677,568891628,569032142,571863464,575632249,578382222,582961959,584255969,585812963,596549804,599752534,603072019,605568795,605991842,606549631,606558203,607748235,608361844,609800622,615052913,617037570,617369279,617523411,627404898,628804571,629782904,633545985,634478837,637284422,637813500,644332416,649499528,649737047,652055894,654255325,654384090,654477132,655625422,664735859,666650793,666884390,670034903,670248485,673357163,674763820,675797062,675896484,676183187,677299172,677683256,677906808,678527698,685338345,688179267,689748879,689873662,690795972,690885855,694990925,698995705,700419865,700771894,703433083,705720608,708523731,710763966,710909716,712301778,712670424,715815825,723582167,725013485,731073432,740938827,740954416,743533828,746339584,753469575,757949662,762143859,763953704,764147833,764598517,771302706,773493048,776099451,785114941,786728919,787743863,801034123,809014450,813809640,814949030,817205494,828983817,833344538,837344164,840702317,842927484,843918585,846874823,896200056,898675367,1002317377,1003341863,1003836606,1007654373,1014521705,1016913326,1017128782,1019123679,1021020330,1021835861,1027934938,1028487369,1036217390,1037087487,1040984539,1046769289,1048250086,1057250452,1065463919,1066097241,1068200204,1071312123,1074731684,1079496489,1082102266,1095812497,1118628330,1136056695,1189572249,1191970248,1194096058,1222011118,1222274533,1223383219,1236461457,1275519282,1297817246,1315572354,1341300846,1348277733,1400250138,1430467680,1437548588,1604340093", "fb_sig_api_key"=>"68efb9e1ec363213bdcc8baf2648ccc1", "fb_sig_user"=>"723231803", "fb_sig_profile_update_time"=>"1218656599"} So yes it is present and set to 1. -- Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be From aurelien.malisart at gmail.com Thu Aug 28 10:20:44 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Thu, 28 Aug 2008 16:20:44 +0200 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: <4C95F153-7BE2-4A1F-A465-F2927E855A1C@elevatedrails.com> References: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> <6C568699-8EDD-46E4-80E2-F7DA459CC8BE@elevatedrails.com> <83adaa130808271124i5d306d9ft9cabefe6f8039038@mail.gmail.com> <5800DFF4-CEF6-4D82-9C8A-0F3D9835D47F@elevatedrails.com> <83adaa130808280306j2b989847nf9e5f110a191cd43@mail.gmail.com> <83adaa130808280407y25d874d6tc9983935d2b77e7b@mail.gmail.com> <83adaa130808280611x42ef54fdgd646cf490f31d36b@mail.gmail.com> <4C95F153-7BE2-4A1F-A465-F2927E855A1C@elevatedrails.com> Message-ID: <83adaa130808280720i54908093v31738165d32524fb@mail.gmail.com> On Thu, Aug 28, 2008 at 2:15 PM, Mike Mangino wrote: > That all looks fine. What version of rails are you running? Can you > duplicate this error with a simple application? Everything looks okay from > what your sending so I don't really know where the problem is. If you can > send me a simple app that duplicates the problem I will try to figure it > out. I'm on Edge. You pointed on it: if I switch to 2.1, everything is OK. Isn't facebooker compatible with Edge? On Thu, Aug 28, 2008 at 3:45 PM, Mike Mangino wrote: > I don't think any of us run on edge, so it may not be. I know a lot of the > view and routing is being refactored. I usually wait until they do release > candidates to try to add support. OK I see, it must be that. I'll use 2.1 instead (don't have any special reason of using edge). Thank you for your help and your work on this plugin Mike. Other facebooker users, please manifest yourself if you're using Facebooker (successfuly) with edge... -- Aur?lien Malisart aurelien.malisart at gmail.com http://aurelien.malisart.be From jonathan.otto at gmail.com Thu Aug 28 11:19:49 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Thu, 28 Aug 2008 10:19:49 -0500 Subject: [Facebooker-talk] Admin class bug with fix Message-ID: lib/facebooker/admin.rb line 9 should be changed to: def set_app_properties(properties) - properties.respond_to?(:to_json) ? properties.to_json : properties + properties = properties.respond_to?(:to_json) ? properties.to_json : properties (@session.post 'facebook.admin.setAppProperties', :properties => properties) == '1' end From jonathan.otto at gmail.com Thu Aug 28 12:00:14 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Thu, 28 Aug 2008 11:00:14 -0500 Subject: [Facebooker-talk] Admin class bug with fix In-Reply-To: References: Message-ID: Another fix: line 18 def get_app_properties(*properties) json = @session.post('facebook.admin.getAppProperties', :properties => properties.to_json) - hash = JSON.parse(CGI.unescapeHTML(json)) + hash = Facebooker.json_decode(CGI.unescapeHTML(json)) @properties = ApplicationProperties.from_hash(hash) end On Thu, Aug 28, 2008 at 10:19 AM, Jonathan Otto wrote: > lib/facebooker/admin.rb line 9 should be changed to: > > def set_app_properties(properties) > - properties.respond_to?(:to_json) ? properties.to_json : properties > + properties = properties.respond_to?(:to_json) ? > properties.to_json : properties > (@session.post 'facebook.admin.setAppProperties', :properties > => properties) == '1' > end > From jonathan.otto at gmail.com Thu Aug 28 12:01:14 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Thu, 28 Aug 2008 11:01:14 -0500 Subject: [Facebooker-talk] Admin class bug with fix In-Reply-To: References: Message-ID: And the following fields need to be added to applicationproperties.rb: :icon_url, :canvas_name, :connect_logo_url, :logo_url On Thu, Aug 28, 2008 at 11:00 AM, Jonathan Otto wrote: > Another fix: > > line 18 > > def get_app_properties(*properties) > json = @session.post('facebook.admin.getAppProperties', > :properties => properties.to_json) > - hash = JSON.parse(CGI.unescapeHTML(json)) > + hash = Facebooker.json_decode(CGI.unescapeHTML(json)) > @properties = ApplicationProperties.from_hash(hash) > end > > On Thu, Aug 28, 2008 at 10:19 AM, Jonathan Otto wrote: >> lib/facebooker/admin.rb line 9 should be changed to: >> >> def set_app_properties(properties) >> - properties.respond_to?(:to_json) ? properties.to_json : properties >> + properties = properties.respond_to?(:to_json) ? >> properties.to_json : properties >> (@session.post 'facebook.admin.setAppProperties', :properties >> => properties) == '1' >> end >> > From mmangino at elevatedrails.com Thu Aug 28 13:04:20 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 28 Aug 2008 13:04:20 -0400 Subject: [Facebooker-talk] Admin class bug with fix In-Reply-To: References: Message-ID: Jonathan, can you fork the code on facebooker and make these changes? Then I can pull from you and you'll get credit for the fix. Mike On Aug 28, 2008, at 12:01 PM, Jonathan Otto wrote: > And the following fields need to be added to applicationproperties.rb: > > :icon_url, :canvas_name, :connect_logo_url, :logo_url > > On Thu, Aug 28, 2008 at 11:00 AM, Jonathan Otto > wrote: >> Another fix: >> >> line 18 >> >> def get_app_properties(*properties) >> json = @session.post('facebook.admin.getAppProperties', >> :properties => properties.to_json) >> - hash = JSON.parse(CGI.unescapeHTML(json)) >> + hash = Facebooker.json_decode(CGI.unescapeHTML(json)) >> @properties = ApplicationProperties.from_hash(hash) >> end >> >> On Thu, Aug 28, 2008 at 10:19 AM, Jonathan Otto > > wrote: >>> lib/facebooker/admin.rb line 9 should be changed to: >>> >>> def set_app_properties(properties) >>> - properties.respond_to?(:to_json) ? properties.to_json : >>> properties >>> + properties = properties.respond_to?(:to_json) ? >>> properties.to_json : properties >>> (@session.post 'facebook.admin.setAppProperties', :properties >>> => properties) == '1' >>> end >>> >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Thu Aug 28 18:23:16 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 28 Aug 2008 18:23:16 -0400 Subject: [Facebooker-talk] Loggin in and redirection Message-ID: There have been a few discussions about how to handle requiring a user to login and then redirecting them back to the original page. I just updated my previously unannounced plugin to handle this case. Check out Facebooker Authentication: http://github.com/mmangino/facebooker_authentication/tree/master It's a really simple plugin that generates a user module as well as a couple of controller helpers. To use it, just include the controller module and then use the login_required filter. login_required will handle calling ensure_... If the user is not logged in, they will be redirected to the login url and sent back to the requesting page afterwards. It's somewhat untested. I'm not using the actual plugin in production anywhere, but it is an extraction from an existing application. Mike -- Mike Mangino http://www.elevatedrails.com From zhao.lu.us at gmail.com Thu Aug 28 22:51:48 2008 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Thu, 28 Aug 2008 19:51:48 -0700 Subject: [Facebooker-talk] profile publisher Message-ID: I basically followed Mike's book and can publish on user's profile just like karate poke. But only the poster/receiver can view the post, nobody else can. I'm not sure how to debug this. Has anyone seen this or have any insight into it? I'd be happy to post code snippet if that helps just not sure what could be helpful. Thanks, -- Zhao From mmangino at elevatedrails.com Fri Aug 29 07:37:40 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 29 Aug 2008 07:37:40 -0400 Subject: [Facebooker-talk] profile publisher In-Reply-To: References: Message-ID: <8399BD26-4A7B-4385-A6E4-D6CF6888DA7B@elevatedrails.com> Is your application only viewable by developers? Mike On Aug 28, 2008, at 10:51 PM, Zhao Lu wrote: > I basically followed Mike's book and can publish on user's profile > just like karate poke. But only the poster/receiver can view the > post, nobody else can. I'm not sure how to debug this. Has anyone > seen this or have any insight into it? I'd be happy to post code > snippet if that helps just not sure what could be helpful. > > Thanks, > > -- > Zhao > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From dara at catch.fm Fri Aug 29 10:06:48 2008 From: dara at catch.fm (dara) Date: Fri, 29 Aug 2008 15:06:48 +0100 Subject: [Facebooker-talk] session error publishing to profile after application add Message-ID: <48B80278.7080001@catch.fm> I'm getting this error when a user adds my application for the first time. The post-add url is the application welcome page in the canvas. I want to stuff some markup into the profile box just then, but its failing as per below, with an. If they refresh that page, or are re-adding the application, everything is fine. ... Rendered profile_publisher/_profile (0.00112) Facebooker::Session::UnknownError (): /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in `process' /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in `set_profile_fbml' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in `send_message' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in `method_missing' /app/controllers/welcome_controller.rb:7:in `index' ... Has anybody else seen this and found the issue ? I'm going to try updating the plugin, but if there are any other suggestions it would be appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From dara at catch.fm Fri Aug 29 10:23:41 2008 From: dara at catch.fm (dara) Date: Fri, 29 Aug 2008 15:23:41 +0100 Subject: [Facebooker-talk] session error publishing to profile after application add In-Reply-To: <48B80278.7080001@catch.fm> References: <48B80278.7080001@catch.fm> Message-ID: <48B8066D.3050008@catch.fm> I'm getting session expired with the latest git code: Facebooker::Session::SessionExpired (Session key invalid or no longer valid): /vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in `process' /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' /vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post' /vendor/plugins/facebooker/lib/facebooker/session.rb:466:in `post' /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in `set_profile_fbml' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in `send_message' /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing' /app/controllers/welcome_controller.rb:7:in `index' dara wrote: > I'm getting this error when a user adds my application for the first time. > > The post-add url is the application welcome page in the canvas. > > I want to stuff some markup into the profile box just then, but its > failing as per below, with an. > > If they refresh that page, or are re-adding the application, > everything is fine. > > ... > Rendered profile_publisher/_profile (0.00112) > > > Facebooker::Session::UnknownError (): > /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in > `process' > /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' > /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' > /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' > > /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in > `set_profile_fbml' > > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in > `send_message' > > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in > `method_missing' > /app/controllers/welcome_controller.rb:7:in `index' > ... > > Has anybody else seen this and found the issue ? > > I'm going to try updating the plugin, but if there are any other > suggestions it would be appreciated > > ------------------------------------------------------------------------ > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From dara at catch.fm Fri Aug 29 11:29:27 2008 From: dara at catch.fm (dara) Date: Fri, 29 Aug 2008 16:29:27 +0100 Subject: [Facebooker-talk] session error publishing to profile after application add In-Reply-To: <48B8066D.3050008@catch.fm> References: <48B80278.7080001@catch.fm> <48B8066D.3050008@catch.fm> Message-ID: <48B815D7.7090809@catch.fm> Everything seems broken with bebo on the latest code ... ? I am getting SessionExpired for all calls. I have reverted my code and worked around the issue for now by hitting a post-add url that just redirects, as everything after the initial post-add call seems to work fine. dara wrote: > I'm getting session expired with the latest git code: > > Facebooker::Session::SessionExpired (Session key invalid or no longer > valid): > /vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in `process' > /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' > /vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post' > /vendor/plugins/facebooker/lib/facebooker/session.rb:466:in `post' > > /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in > `set_profile_fbml' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in > `send_message' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in > `method_missing' > /app/controllers/welcome_controller.rb:7:in `index' > > dara wrote: >> I'm getting this error when a user adds my application for the first >> time. >> >> The post-add url is the application welcome page in the canvas. >> >> I want to stuff some markup into the profile box just then, but its >> failing as per below, with an. >> >> If they refresh that page, or are re-adding the application, >> everything is fine. >> >> ... >> Rendered profile_publisher/_profile (0.00112) >> >> >> Facebooker::Session::UnknownError (): >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >> `process' >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >> `parse' >> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in >> `post' >> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in >> `post' >> >> /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in >> `set_profile_fbml' >> >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in >> `send_message' >> >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in >> `method_missing' >> /app/controllers/welcome_controller.rb:7:in `index' >> ... >> >> Has anybody else seen this and found the issue ? >> >> I'm going to try updating the plugin, but if there are any other >> suggestions it would be appreciated >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Facebooker-talk mailing list >> 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 From zhao.lu.us at gmail.com Fri Aug 29 12:25:39 2008 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Fri, 29 Aug 2008 09:25:39 -0700 Subject: [Facebooker-talk] session error publishing to profile after application add In-Reply-To: <48B80278.7080001@catch.fm> References: <48B80278.7080001@catch.fm> Message-ID: I have a similar problem as yours on facebook. When the user click on "allow access" button for the first time they get an error. Refresh the page or try again is fine. On Fri, Aug 29, 2008 at 7:06 AM, dara wrote: > I'm getting this error when a user adds my application for the first time. > > The post-add url is the application welcome page in the canvas. > > I want to stuff some markup into the profile box just then, but its failing > as per below, with an. > > If they refresh that page, or are re-adding the application, everything is > fine. > > ... > Rendered profile_publisher/_profile (0.00112) > > > Facebooker::Session::UnknownError (): > /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in `process' > /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' > /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' > /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' > /vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in > `set_profile_fbml' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in > `send_message' > /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in > `method_missing' > /app/controllers/welcome_controller.rb:7:in `index' > ... > > Has anybody else seen this and found the issue ? > > I'm going to try updating the plugin, but if there are any other suggestions > it would be appreciated > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- Zhao From mmangino at elevatedrails.com Fri Aug 29 12:33:01 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 29 Aug 2008 12:33:01 -0400 Subject: [Facebooker-talk] session error publishing to profile after application add In-Reply-To: <48B815D7.7090809@catch.fm> References: <48B80278.7080001@catch.fm> <48B8066D.3050008@catch.fm> <48B815D7.7090809@catch.fm> Message-ID: <4A0A0F9F-2CFE-4424-853E-EA9EF46D23EA@elevatedrails.com> Bebo is a lightly covered part of the code. I've concentrated entirely on Facebook. If there are problems like this, I'd love to get some tests that show us what we are doing wrong. I don't have any Bebo applications, so as long as the tests pass I assume it will work. Mike On Aug 29, 2008, at 11:29 AM, dara wrote: > Everything seems broken with bebo on the latest code ... ? > I am getting SessionExpired for all calls. > > I have reverted my code and worked around the issue for now by > hitting a post-add url that just redirects, as everything after the > initial post-add call seems to work fine. > > > dara wrote: >> I'm getting session expired with the latest git code: >> >> Facebooker::Session::SessionExpired (Session key invalid or no >> longer valid): >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in >> `process' >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' >> /vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post' >> /vendor/plugins/facebooker/lib/facebooker/session.rb:466:in `post' >> /vendor/plugins/facebooker/lib/facebooker/adapters/ >> bebo_adapter.rb:41:in `set_profile_fbml' >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >> 287:in `send_message' >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >> 384:in `method_missing' >> /app/controllers/welcome_controller.rb:7:in `index' >> >> dara wrote: >>> I'm getting this error when a user adds my application for the >>> first time. >>> >>> The post-add url is the application welcome page in the canvas. >>> >>> I want to stuff some markup into the profile box just then, but >>> its failing as per below, with an. >>> >>> If they refresh that page, or are re-adding the application, >>> everything is fine. >>> >>> ... >>> Rendered profile_publisher/_profile (0.00112) >>> >>> >>> Facebooker::Session::UnknownError (): >>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >>> `process' >>> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >>> `parse' >>> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in >>> `post' >>> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in >>> `post' >>> /vendor/plugins/facebooker/lib/facebooker/adapters/ >>> bebo_adapter.rb:41:in >>> `set_profile_fbml' >>> /vendor/plugins/facebooker/lib/facebooker/rails/ >>> publisher.rb:277:in >>> `send_message' >>> /vendor/plugins/facebooker/lib/facebooker/rails/ >>> publisher.rb:374:in >>> `method_missing' >>> /app/controllers/welcome_controller.rb:7:in `index' >>> ... >>> >>> Has anybody else seen this and found the issue ? >>> >>> I'm going to try updating the plugin, but if there are any other >>> suggestions it would be appreciated >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> 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 > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Fri Aug 29 12:58:06 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 29 Aug 2008 12:58:06 -0400 Subject: [Facebooker-talk] session error publishing to profile after application add In-Reply-To: References: <48B80278.7080001@catch.fm> Message-ID: What is your post add url? what about the post authorize URL? They should both be set to a canvas page. Mike On Aug 29, 2008, at 12:25 PM, Zhao Lu wrote: > I have a similar problem as yours on facebook. When the user click on > "allow access" button for the first time > they get an error. Refresh the page or try again is fine. > > On Fri, Aug 29, 2008 at 7:06 AM, dara wrote: >> I'm getting this error when a user adds my application for the >> first time. >> >> The post-add url is the application welcome page in the canvas. >> >> I want to stuff some markup into the profile box just then, but its >> failing >> as per below, with an. >> >> If they refresh that page, or are re-adding the application, >> everything is >> fine. >> >> ... >> Rendered profile_publisher/_profile (0.00112) >> >> >> Facebooker::Session::UnknownError (): >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in >> `process' >> /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse' >> /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post' >> /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post' >> /vendor/plugins/facebooker/lib/facebooker/adapters/ >> bebo_adapter.rb:41:in >> `set_profile_fbml' >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >> 277:in >> `send_message' >> /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: >> 374:in >> `method_missing' >> /app/controllers/welcome_controller.rb:7:in `index' >> ... >> >> Has anybody else seen this and found the issue ? >> >> I'm going to try updating the plugin, but if there are any other >> suggestions >> it would be appreciated >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > > > -- > Zhao > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From zhao.lu.us at gmail.com Fri Aug 29 15:47:52 2008 From: zhao.lu.us at gmail.com (Zhao Lu) Date: Fri, 29 Aug 2008 12:47:52 -0700 Subject: [Facebooker-talk] profile update box Message-ID: The profile updates correctly if it's on the profile box. If I move the profile update from box tab to wall tab nothing is show. Instead it shows a message saying: no content to display. this box will no be visible to people who view your profile until this application adds contents to it. Has anybody seen this? Am I missing some configuration parameter? -- Zhao From mmangino at elevatedrails.com Fri Aug 29 16:46:34 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 29 Aug 2008 16:46:34 -0400 Subject: [Facebooker-talk] profile update box In-Reply-To: References: Message-ID: You need to set content for profile_main for the profile to show up on the wall tab. Mike On Aug 29, 2008, at 3:47 PM, Zhao Lu wrote: > The profile updates correctly if it's on the profile box. If I move > the profile update from box tab to wall tab nothing is show. Instead > it shows a message saying: no content to display. this box will no be > visible to people who view your profile until this application adds > contents to it. > > Has anybody seen this? Am I missing some configuration parameter? > > -- > Zhao > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com