Your Own Facebook Friend Inviter. Custom build!!

Hey guys! I know theres a mod for this..but like there are some people, like me, that don't have money to buy..so i decided to share this lil code with you guys.

CODE:

==============================

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<div id="fb-root"></div>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
FB.init({
appId : 'YOUR APP ID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>


<br /><br />
<fb:serverFbml style="width: 500px;">
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action="invite.php"
target="_top"
method="POST"
invite="true"
type="Become My Friend On Yoursite
content="<fb:req-choice url='http://yoursite.com/modules/?r=facebook_connect/login_form' label='Accept' />"
>

<fb:multi-friend-selector
showborder="false"
actiontext="Invite Your Facebook Friends to Become Your Friend On Yoursite
</fb:request-form>
</fb:fbml>
</script>
</fb:serverFbml>
</body>
</html>

========================================

Make a new html file and add the code aboove.. name it eg. inviter.html

Make sure to insert your app id where it says app id.

and make sure to change "yoursite" to Your site name.....

and your done.!

 

Now all you have to do is intregrate it with your site.. and thats easy.. just iframe it and create a new page on dolphin site and add the iframe there.  if your a newbie, search in google for iframe generator.

Btw, in your facebook app settings... make sure to add your site url and canvaspage to  http://yoursite.com/modules/?r=facebook_connect/login_form

*Okay i know there are other alternatives to ingrate it to your site.. but am a n00b my self..lol....so if you got other ideas please share*

P.S. After a user invites his/her fb friends, it takes them to facebook. Am not sure why. Again, if you can fix it please share where. If you want to see this in action go to: www.noiiex.com/page/fbinviter . Note you have to be logged in facebook first. The way this works for is ..when a user joins my website using facebook connect the first time, he/she is redirected to my facebook inviter. and then he/she gets to add his/her friends. The friend list will appear because in order to sign up to my site using facebook connect, he has to login facebook.

ANy ways, have fun with this code :)

Quote · 9 May 2011

Hello, Reggie

 

I am new in Dolphin.. can you please help me how to integrate this in dolphin as i am not understanding.

 

i will be very thank full to you..

 

thanks and God Bless You..

 

Antony

Quote · 25 Sep 2011
Thanks for sharing here.
Quote · 25 Sep 2011

anyone get this to work?.. i done it like 3 times and all i got was a white empty page

i tried it on my site http://www.thegettogether.net

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 10 Nov 2011

it works...... it does send the invites but for some reseaon when the invites are sent, it redirects you to a blank page on facebook with the same inviter.... you need to a facebook connect app....jst for your memebers to login in facebook and be redirect back to the inviter... the inviter w0nt work if ur users are not loged in faceboook..

Quote · 13 Nov 2011

tried to get it up and running a million times then just said screw it,, ill just buy deanos when all his problems seem to get ironed out

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 15 Nov 2011

i  can install it for u if you want..! PM.. if you want! :)

Quote · 16 Nov 2011

thanks a lot i will also try this on my site http://www.alamworld.com 

http://www.alamworld.com
Quote · 13 Oct 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.