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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fb_fan_gate.diff | 7.39 KB | Dave Cohen |
Comments
Comment #1
Dave Cohen commentedSo, 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.
Comment #2
ob3ron commentedThanks 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!
Comment #3
Dave Cohen commentedTo 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.
Comment #3.0
Dave Cohen commentededited for clarity
Comment #3.1
Dave Cohen commentedissue summary