I have a view with two pages, example.com/content and example.com/contentfb

content is the canvas page
contentfb is the tab

When i set my facebook app with the above settings and try to view the tab on facebook, it shows the canvaspage and the redirects to the canvaspage.

Am i doing something wrong?

Comments

Dave Cohen’s picture

No, I think in most cases that is the desired behavior.

There is some code that rewrites the links and can be disabled. See the canvas pages tab on facebook app admin page.

Do you want canvas pages to link to canvas pages or back to the website?

Michsk’s picture

A canvaspage is a canvaspage, i do not want it to link back to the website. That is good as it is.

My issue is that when i have a tab, and include that in my page (on facebook). Click on that tab, it for one second shows the canvaspage and then redirects / refreshes me directly to the canvaspage it self. So i am not any longer on my facebook page, but am redirected to the canvaspage itself.

That can not be desired behavior, desired would be that i view the tab content on my facebookpage.

Dave Cohen’s picture

Title: Tab content redirects to canvaspage » Links from tabs should stay on tab
Category: bug » task
Issue tags: +fb-volunteer

Facebook only recently introduced tabs that are iframes. Until that, each tab was FBML, and it was desirable to get off the tab to display other pages.

Agreed this should be an option for iframe tabs.

ndf’s picture

Got this working with Drupal for Facebook 7.x-3.x-dev.

Behaviour tab: when page is loaded as tab -> when clicking on links, you stay in tab, In a tab user is always 'anonymous'. Url's in iframe look like this 'https://*MY-FBAPP.COM*/menu-item'.

Step 1: configuration drupal-for-facebook /admin/structure/fb
Page tabs -> uncheck 'Enable processing on iframe tabs. ', check others

Step 2: configuration url's on https://developers.facebook.com/apps/*YOUR-APP-ID*/
click 'Edit app' button righttop screen

Page Tab URL -> https://*MY-FBAPP.COM*/fb_cb/*YOUR-APP-ID*/
Secure Page Tab URL -> https://*MY-FBAPP.COM*/fb_cb/*YOUR-APP-ID*/

You can be authenticated on the normal app-domain (https://*MY-FBAPP.COM*) or http://apps.facebook.com/*your-app-name*/

yareckon’s picture

I'm new to facebook development, so this may be stupid, but why is an app tab always anonymous?

I basically want to provide an app tab that works exactly the same way as a canvas page, i.e. logging folks, in or creating new users. According to facebook, once a user has authorized your app you can query their data over the graph api even on a tab no? Why doesn't fb.module try to do this, and create new users / log them in? Is it a timing thing?

mrf’s picture

Status: Active » Closed (works as designed)

I can confirm with #4 that this works as designed.

I'd like to see this setting configurable by tab, but I'll open a separate issue for that.

mrf’s picture

Issue for configuring this setting for individual tabs #1789690: Enable / Disable url rewriting on a tab by tab basis