Jun 20, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: Developing Facebook Platform Applications with Rails / facebook_session undefined

Well, that explains some of the weirdness I’ve been trying to figure out. :-) Should I be using trunk of facebooker then?

 
Jun 19, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: Developing Facebook Platform Applications with Rails / facebook_session undefined

Rails 2.1. I’ll get the stack trace later.

Do I need to do anything other than install facebooker to get access to that method?

Also, is the facebook_session set when they log into the application? Or just after they login to the application? The book doesn’t talk much, afaik, about what ensure_authenticated_to_facebook does and how it differs from ensure_application_installed_to_facebook (or whatever it’s called).

 
Jun 17, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: Developing Facebook Platform Applications with Rails / facebook_session undefined

Any ideas why it doesn’t work to call “facebook_session” from inside my controller? Undefined method, I get.

I had to write this function:

  def facebook_session
    if session[:facebook_session]
      session[:facebook_session]
    elsif params[:fb_sig_user]
      set_facebook_session
    end
  end
 
Jun 17, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: Developing Facebook Platform Applications with Rails / Network calls from inside Rails app

I wrote this small daemon for processing Facebook publisher actions:

http://pastie.org/216690

It look good?

 
Jun 17, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: Developing Facebook Platform Applications with Rails / Network calls from inside Rails app

Doh, saw that was addressed in the book, using starling. I’ve wanted an excuse to check out that project, now I’ve got it!

Wonder what the pros/cons are of starling over bj?

 
Jun 17, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: Developing Facebook Platform Applications with Rails / Network calls from inside Rails app

In general, anyone I gotta execute a remote call, I like to use backgroundjob or backgroundrb, something that gets the network call outta the rails process.

 
Jun 17, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: Developing Facebook Platform Applications with Rails / Network calls from inside Rails app

Hi,

I take it that when writing facebook apps, you are going to be executing remote network calls to FB from inside your application?

So, if FB takes a second or two to respond, your mongrel/thin process is going to be stuck handling that. Thus, if you have 3 mongrels or thins running, you could concievably only handle a few responses a second if each response requires a callback to FB.

Am I understanding that correctly?

 
Feb 18, 2008
Generic-user-small Joe Van Dyk 9 posts

Topic: FXRuby / Distributing the application

Lyle, does exerb also package up the fox toolkit library?

 
Oct 20, 2007
Generic-user-small Joe Van Dyk 9 posts

Topic: Deploying Rails Applications / So

This book any good?

9 posts