I'm trying to user Facebooker to publish stories to Facebook. When a user submits a form on my site, I'm using fb_user_action to show the dialog asking if a story can be published. When that is dismissed, I want to redirect to a different page.
Facebook's documentation for showFeedDialog talks about the continuation parameter. It takes a JavaScript function that will be called after the dialog is dismissed. I can't get that function to be called.
<script language="javascript">
var continuation = function () {
location.href = 'http://target-url.com';
}
</script>
<% init_fb_connect "XFBML","Api" do %>
<%= fb_user_action(@action, @message, @prompt, 'continuation') %>
<% end %>
Everything works perfectly except the continuation function doesn't get called. Any suggestions for what I'm doing wrong?