Skip Menu |

This queue is for tickets about the WWW-Facebook-API CPAN distribution.

Report information
The Basics
Id: 42266
Status: new
Priority: 0/
Queue: WWW-Facebook-API

People
Owner: Nobody in particular
Requestors: mark [...] zzo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.4.14
Fixed in: (no value)



Subject: redirect not working with iframe for non-added user?
Using a FB webapp, using an iframe, when a FB user has not yet added my app & I want to redirect them to my 'add' page - the 'redirect' sub in API.pm doesn't work. This: <code> elsif ($url =~ m{^https?://([^/]*\.)?facebook\.com(:\d+)?}ixms && $self->session_uid ) </code> $self->session_uid is NOT set so it falls thru to doing a regular redirect with causes an infinite redirect loop. It's at this step in 'can_display': <code> if (!$c->facebook->canvas->get_fb_params->{'added'}) { </code> So I have to make my own redirect (I'm using Catalyst) like: <code> my $url = $c->facebook->get_add_url(next => $c->facebook->get_app_url()); $c->res->body("<script type=\"text/javascript\">\ntop.location.href=\"$url\";\n</script>"); </code> At least that's what I think is going on... thanks! Mark