Solved

Facebook Page Fans

Posted on 2011-02-12
3
609 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
ID: 34881319
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
ID: 34884099
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
ID: 34924259
It heped to me, and I hope any other that have this problem can sove it :)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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 …

770 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