I'm trying to make some landpage and redirect from it to another page. I used for it drupal_goto() function but it seems to create some problems with DFF. Question is how I can achive drupal_goto() functionaliy from Facebook Tab? That after redirect I will stay on that tab, and path of page will be in right form such as:
http://eot.co.il/fb_cb/184968921563702/fb_page/212324532141251/
Is there any way to do this?

Comments

Dave Cohen’s picture

Priority: Major » Normal

It would help to describe what you've tried and what "some problems" are.

I would start by trying drupal_goto(url('some/path'));

krembo’s picture

The problem is that, when I've tryed to redirect from snippet on page to another page in this way:
drupal_goto('node/12'), it was not going to the node, I don't know what exactly it was doing, but ended at the front page (still inside iframe on facebook tab). And seems to be not related to the facebook, because $signed_request was not set.
Not working using form that you proposed either.

Dave Cohen’s picture

Are you including fb_url_rewrite.inc in your settings.php?

krembo’s picture

Sure. Another staff is working, like menus and home page link on logo.

krembo’s picture

I can make redirect via the header('Location:'), but as you guess it runs out of DFF handling...

Dave Cohen’s picture

Try enabling the devel module and setting it to show redirect pages. Then you'll see where you are being sent, before it goes. It would help to know the exact URLs.

krembo’s picture

Ok... The problem was because the FB tab was loading the main page via the genereal link such as : http://example.com
And this was actually the http://example.com/node/6.
So, redirect from general to specific was overwriting the other redirect I made.
Conclusion - when setting a url for a facebook, give the exact url for main page node...

Dave Cohen’s picture

What are you saying exactly? That drupal_goto('') does not work, but drupal_goto('node/6') does?

Or, are you saying that when configuring the app, you had to specify 'node/6' instead of leaving the tab path blank?

krembo’s picture

The second one. When configuring the app you have provide path to node that work as your homepage.