Solved

Facebook Page Fans

Posted on 2011-02-12
3
602 Views
Last Modified: 2012-05-11
Hi,

I am a ASP .NET  developer, and dont know much about PHP :) or facebook

I am creating a Facebook page, of a software that I give for free, but I want to give the link of download ONLY to my fans.

I found this article http://thinkdiff.net/facebook/how-to-detect-fan-of-a-facebook-page/  and this example http://www.facebook.com/thinkdiff.net?v=app_4949752878 ....

I dont have any idea how to do that in my page :( any of you can explain me abit step by step, a simple example how to show a link to my fans and no others.

somethin like...
IF(isFan){
this is the link: mypage.com
}else{
become a fan to download the software;
}

and where? where i should put the code :p I barely know how to use Facebook...



I really apreciate your help... thanks
0
Comment
Question by:rperezretana
  • 2
3 Comments
 

Expert Comment

by:tkmluv
Comment Utility
On that second page they tell you the code to do it. I havent been able to get it to work on one of my fan pages though.

<!-- start non-fan part -->
<div class="top">
Become fan to download the software
</div>
<!-- end non-fan part -->

<fb:fbml version="1.1">
 <fb:visible-to-connection>

here is the download link

 </fb:visible-to-connection>
</fb:fbml>

Open in new window


You can try this in PHP

IF($_REQUEST['fb_sig_is_fan'] === 1){
echo "Here is the download link";
}else{
echo "Become a Fan";
}

Open in new window

0
 
LVL 1

Accepted Solution

by:
rperezretana earned 0 total points
Comment Utility
OK I made it,

In your web page of FaceBook, you have to add a FBML tab, there, in side you can post the code you need, by example:

<!-- start non-fan part -->
<div class="top">
Become fan to download the software
</div>
<!-- end non-fan part -->

<fb:fbml version="1.1">
 <fb:visible-to-connection>

here is the download link

 </fb:visible-to-connection>
</fb:fbml>

then save and then only your fans can see the special content :)

but I was confused... how to add an FBML tab in facebook?

In in the part where you manage the page, there is a link in the left, to manage applications, there you can add a FMBL tab and edit it later. :)

uff thanks for answer anyway, it takes me some time to solve it. I could in my web page but I did it in my Facebook page:

http://www.facebook.com/pages/TabsFun-Acordes-Letras/129107657158608?v=app_4949752878



0
 
LVL 1

Author Closing Comment

by:rperezretana
Comment Utility
It heped to me, and I hope any other that have this problem can sove it :)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now