Facebook Secret Hide Content on Fan Page Until Someone Likes It
Contents
Hiding content on your Facebook welcome page can be a great incentive for people to like your page to get the hidden content. Since Facebook depreciated FBML we now have to use iFrames. This is pushing it further into the realms of developers rather than end users.
SEE LIVE EXAMPLE
How To Do It?
An iFrame only points to an html or other web-based file, it doesn’t actually do anything else. Hence the file you are pointing to is not contained on Facebook and can not directly access certain information. This means we must use either JavaScript or a server-based language such as PHP or .NET to communicate with Facebook as would an external page.
Since JavaScript and other methods require actual permissions from the user to see this information the only way I have found to do it, is to look in the “session” so to speak.
Step 1 – Create A PHP file and create the iFrame
If you don’t have an iFrame and php file already look at: How To Add An iFrame Application Tab To Your Facebook Page. This will take you through adding an iFrame application tab to your Facebook page.
However replace the .html file with a .php file. Only the extension of the file name needs to change and not anything else within the example.
Step 2 – Insert Code into PHP file
Next you need to add this in the part of your PHP file you want to display a different message for non fans and fans.
You are a fan – insert html here
You are not a fan – insert html here
Step 2 – Testing
To properly test your code:
– Go to your Fan Page and click the Unlike Button in the bottom left hand side of your page.
– You should now see the “Like” button at the top, meaning that you’re not yet a fan
– You should see the content of Non-Fan
– Click the “Like” button; you should then see the fans-only content and the non-fan content will go away
That’s It!
About author
You might also like
Where do I find the ID for my Facebook Fan Page/Public Profile?
ContentsStep 1: Go to your Facebook Fan Page/Public ProfileStep 2: Right-Click Your Fan Page/Public Profile LogoStep 3: Choose Properties menu itemStep 4: Copy the Fan Page/Public Profile ID IMPORTANT: Please
Got a Question? Ask on Facebook with Questions feature
Facebook’s worst-kept secret is finally ready for its closeup: the company is starting to roll out Facebook Questions, a Q&A service that allows users to poll all of Facebook. Facebook
Facebook + Outlook = FBLook
If you are an Outlook user, you probably have it open all the time. Now you can update your Facebook status, see your friend statuses and see the number of
10 Different Types of Facebook-“ers” – Which One Are You?
~This post was written by my wife Tarn Gucci and her 1st post EVER~ I think it would be save to say that Facebook has become a world wide phenomena
HOW TO: Disable Facebook’s “Instant Personalization” [PRIVACY]
ContentsOpting Out at Specific SitesBlocking Instant Personalization For All SitesPreventing Friends From Sharing Your Info Last week, Facebook added a suite of new features that let websites like Pandora and
Get a facebook fan page custom URL
It seems facebook have changed the rules and you can now get a custom URL for your fan page with only 25 fans- you don’t have to wait until you
0 Comments
No Comments Yet!
You can be first to comment this post!