Active
Project:
Drupal for Facebook
Version:
6.x-3.0-rc13
Component:
Page Tabs (iframe)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2011 at 13:44 UTC
Updated:
18 Jul 2011 at 15:28 UTC
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
Comment #1
Dave Cohen commentedIt would help to describe what you've tried and what "some problems" are.
I would start by trying
drupal_goto(url('some/path'));Comment #2
krembo commentedThe 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.
Comment #3
Dave Cohen commentedAre you including fb_url_rewrite.inc in your settings.php?
Comment #4
krembo commentedSure. Another staff is working, like menus and home page link on logo.
Comment #5
krembo commentedI can make redirect via the header('Location:'), but as you guess it runs out of DFF handling...
Comment #6
Dave Cohen commentedTry 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.
Comment #7
krembo commentedOk... 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...
Comment #8
Dave Cohen commentedWhat 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?
Comment #9
krembo commentedThe second one. When configuring the app you have provide path to node that work as your homepage.