gsmendoza
gsmendoza

Reputation: 1394

Facebook app profile tab does not display content

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

Upvotes: 1

Views: 4714

Answers (1)

Gdeglin
Gdeglin

Reputation: 12618

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.

Upvotes: 2

Related Questions