Update: The patch in this thread allows admin to configure one drupal path for default page tab, and a second one when the user visiting the page has "liked" the page.

This work sponsored by Sticky Co. Thanks!

Original post:

I read the README.txt from start to finish!

Hi, I have installed this module and have it running properly, have read the README, FAQ and online documentation, and have not been able to accomplish what I'm looking for.

I want to set up iframes on a fan page so that a different page is shown to users who "Like" the page than users who have not yet "Liked" it. I'm not very familiar with all of the FB terminology, but if I'm right this is something different than canvas pages, which can show different content based on whether a user has allowed the app or not.

So my question is, can I do what I want with this module, and if so, can you give me a hint on how to get started?

Many thanks!
Arvana

CommentFileSizeAuthor
#3 fb_fan_gate.diff7.39 KBDave Cohen

Comments

Dave Cohen’s picture

Title: change iframe on "Liked" fan page » Render different page tab when user has "liked" the page
Category: support » feature
Issue tags: +get involved

So, this is possible today, but not as easy to set up as it should be.

Right now, facebook does share with the server whether the page is liked. At one point there was an FBML tag for this. That disappeared and there was a API to query whether the page is liked. These days, I think they pass that info in a "signed request", but to be honest that has changed so much lately that I'm no longer sure the best way to determine this.

The fb_tab.module should offer a way to easily configure which drupal path to render when a page is liked vs when it is not. It's a great feature request.

ob3ron’s picture

Thanks Dave.

Here's some info I found on switching content based on the signed_request:

http://www.chilipepperdesign.com/2011/02/15/reveal-fan-gate-like-gate-fa...

For my purposes I'm just manually coding my iframes for now, but I agree it would be nice functionality to have in this module!

Dave Cohen’s picture

Version: 6.x-3.1 » 6.x-3.x-dev
Component: Canvas Pages (iframe) » Page Tabs (iframe)
Status: Active » Needs review
StatusFileSize
new7.39 KB

To support this easily requires a change to how fb_tab.module specifies the tab callback URL. Still, I think it's worth doing. With this patch fb_tab uses the same trick that fb_canvas.module uses to change the front page.

Apply patch, then edit your application, changing profile tab paths as needed.

This patch sponsored by Sticky Co.

Dave Cohen’s picture

Issue summary: View changes

edited for clarity

Dave Cohen’s picture

Issue summary: View changes

issue summary