« Creating Facebook Forms with Facebooker | Main | How to troubleshoot & debug facebooker, facebook and rails »

February 06, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83452ff9b69e200e5501a830f8833

Listed below are links to weblogs that reference Ajax, Rails & Facebook example:

Comments

Ricardo

Hi Joel,

After trying the examples from the facebook developer's wiki without success, I found your examples and I tried example 1. I have to say that your examples are failing for me as well. There is a problem with executing the ajax.post() because I am not seeing the post request on the server side. I replaced the face controller with a controller named ajax and a method called example1. When I call the method from my browser, outside of facebook I get the text correctly. I fear that there is something tricky with my call back url or something with the facebook layout. BTW, I am using rfacebook and not facebooker which I think should not matter. I would appreciate your thoughts on this.

Thank you,

Ricardo

Ricardo

Hi Joel,

I had a typo in my javascript that was impeding the post calls.
Thanks anyway and thanks for this effort of documenting your learning process.
It is helping me a lot!

Ricardo

Alex

Hi Joel,

I had a problem in redirecting the ajax call in rails.
For example, after I delete /parents/1/children/1 (using _method=DELETE in an ajax post call), the controller will call redirect_to parent_children_url(@child.parent). However, rails then interpret the redirect as "DELETE /parents/1" instead of "GET /parents/1/children". It is likely that the _method parameter is re-posted. Should there be any way to get rid of this?

Thanks,
Alex

Joel Nylund

Hi Alex, I dont know the answer to this one, you may want to post to the facebooker mail list. I generally would stay away from doing ajax redirects when using facebook in general.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment