Everything works fine, but if you use profile tab to show a webform, an empty page is returned. All other (non-webforms) forms work fine.

Comments

eMuse_be’s picture

I did some more research and it seems the problem is that the action is not correctly rewritten for webforms:

action="/fb_cb/APP_KEY/fb_tab/view"

this should be /fb_cb/APP_KEY/fb_page/APP_SECRET/node/1 like on the other forms.

Can anyone help me find out where this action is rewritten ?

Dave Cohen’s picture

Hmmm.... When you say "like other forms", how are you seeing other forms? Are you showing more than one on a page?

action="/fb_cb/APP_KEY/fb_tab/view" does not look so bad. Maybe it should be /fb_cb/APP_KEY/fb_page/PAGE_ID/fb_tab/view (note: PAGE_ID not APP_SECRET. You should never see the secret in a URL).

The trick is that fb_tab/view is displaying your webform. the fb_tab/view callback has logic to display the pages you specified in your app settings on drupal.

I wonder if drupal is losing your session when the form is submitted. That would explain an error, but not a white screen. The white screen usually means some fatal php error. Check apache error logs and see if you can make PHP more verbose. Those can be tricky to track down but there probably is an error message somewhere.

Donal’s picture

Hi, Dutchie,

I don't suppose that you could share whether you resolved this issue. I am facing it now exactly, and any information you could provide about how you overcame it would be very helpful.

Thanks,
Dónal

mstef’s picture

Webform shows for me, but when you submit it, you leave FB and go to your site directly.

mstef’s picture

Actually happening with all forms. This module added target="_top" to all forms which causes the popup. But removing that causes the form to do nothing on submit.