Active
Project:
Drupal for Facebook
Version:
7.x-3.3-beta6
Component:
Page Tabs (iframe)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
28 Jan 2013 at 19:36 UTC
Updated:
26 Feb 2021 at 00:50 UTC
Comments
Comment #1
Dave Cohen commentedYou 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.