# Facebooker Problem

**URL:** <https://www.ruby-forum.com/t/facebooker-problem/130103>\
**Category:** Rails\
**Created:** [February 25, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/facebooker-problem/130103 "2008-02-25T13:01:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@ahmad](https://www.ruby-forum.com/u/ahmad)\
**Post date:** [February 25, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/facebooker-problem/130103/1 "2008-02-25T13:01:14Z")

</div>

Hi guys,

I’m just getting started with facebooker. I got a nasty problem. Every  
request redirects to facebook for authentication because i have included  
ensure\_authenticated\_to\_facebook and oce the authentication is over I’m  
redirected back to the callback URL. The original requested URL is lost.  
I suspected of not using DB sessions, but I’m using DB as the session  
store.

Please help me out. How do I avoid redirects?

---

<div class="post-metadata">

**Author:** ![ahmad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@ahmad](https://www.ruby-forum.com/u/ahmad)\
**Post date:** [February 25, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/facebooker-problem/130103/2 "2008-02-25T15:26:58Z")

</div>

Ahmad a.l Ahmad wrote:

> Hi guys,
> 
> I’m just getting started with facebooker. I got a nasty problem. Every  
> request redirects to facebook for authentication because i have included  
> ensure\_authenticated\_to\_facebook and oce the authentication is over I’m  
> redirected back to the callback URL. The original requested URL is lost.  
> I suspected of not using DB sessions, but I’m using DB as the session  
> store.
> 
> Please help me out. How do I avoid redirects?

check out rails: skip\_before\_filter

hth

ilan
