Solved

Facebook Page Fans

Posted on 2011-02-12
3
619 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

739 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