Download & Extend

Make share URL link back to content within FB page tab iframe

Project:Drupal for Facebook
Version:7.x-3.3-beta6
Component:Page Tabs (iframe)
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I am currently pulling a D7 site into a page tab. A user has the option to create an account and upload videos which then output as new nodes. Anonymous visitors then have the option to browse user videos, vote on them and share a link to the video's page on facebook, twitter, etc. This all works just fine. But the URL created when sharing the page will direct the visitor to the full site's page instead of the page within the iframe of the page tab. I would like for the share URL to bring the visitor to the iframe page content. Is there a way around this that I may be missing?

Comments

#1

You can generate a URL to the website easily enough with url('some/path', array('fb_canvas' => FALSE)), or to a canvas page with url('some/path', array('fb_canvas' => TRUE)). However, generating a link to a page tab is trickier. An app can be installed on any number of pages. So modules/fb does not provide a helper to generate such a URL.

You'll probably have to hard-code the URL of your page somewhere into a custom module, if you really want to link to a page.

Personally I recommend you link to canvas pages instead of a page tab. Page tabs are trickier to deal with. I think of them as landing pages where every link takes the user to either a canvas page or regular website.

nobody click here