views:

3345

answers:

3

I am trying to add a profile tab to my Facebook app. In the Facebook Edit App page, I have set the tab url to http://apps.facebook.com/my-suggestions-tu/pages/test. I only needed to enter "pages/test" in the text field; "http://apps.facebook.com/my-suggestions-tu/" was already supplied by Facebook.

I can view http://apps.facebook.com/my-suggestions-tu/pages/test just fine. I have also been able to add the application tab to my test Facebook page. However, the application tab does not display anything.

My app is running on Rails 2.2, using the Facebooker plugin.

Thanks, George

+2  A: 

Make sure that the :ensure_application_is_installed_by_facebook_user and/or :ensure_authenticated_to_facebook before_filters are not executed.

One way to do this would be to create a separate controller to handle the profile tab.

For example:

class TabsController < ApplicationController
  skip_before_filter :ensure_application_is_installed_by_facebook_user
  def index
   render :text => "tab content"
  end
end

(tab url would be just 'tab')

Keep in mind that the fb_sig_user facebook parameter is not available on the tab, so if you have an filters that rely on it they will not work.

Gdeglin
You might be right. I looked at the script server log and I see it's encountering the following error: Filter chain halted as [:facebook_login_required] rendered_or_redirected.
gsmendoza
Yeah, you're using the facebook_authentication plugin. You'll need to skip facebook_login_required method on the tab.
Gdeglin
Hello Gdeglin, I got the same problem with gsmendoza, and finally make it through too, but my question is how to extract application tab owner facebook id ?
gkrdvl
ahhhh, finally, it seem in parameters there are fb_sig_profile_user, and with that I can withdraw owner of the tab id....
gkrdvl
A: 

I m having same problem but in Python... can you elaborate it on python.. or what will be the replacement of the above code??

A: 

i have this same problem in php . Please somebody help me

Rijesh