FB Unlimited Invite Friends - No restrictions (WH Code)

sam.hunt0710

Elite Member
Executive VIP
Jr. VIP
Joined
Jan 8, 2010
Messages
13,631
Reaction score
8,248
EDIT : This is limited to 40 invites at a time , but you can do it as many times in a day, sorry for confusion.

Guys,

Lot of us here ask about code to invite friends to a fan-page or application.

This code works for applications, I shall post for fan-page soon

Here is demo

http://ruin.cmswebusa.com/public/index/invite-friends

Here is code -

Code:
<html >
<head></head>
<body>
    <div id="fb-root"></div>

            <script>

            window.fbAsyncInit = function() {

                FB.init({
                    appId   : '112095445528019',
                    status  : true, // check login status
                    cookie  : true, // enable cookies to allow the server to access the session
                    xfbml   : true // parse XFBML

                });

                 FB.Event.subscribe('auth.login',function(){window.location.reload();});
                FB.Canvas.setSize({ width: 520, height: 950 });

                window.setTimeout(function() {

                }, 250);

                // whenever the user logs in, we refresh the page
                FB.Event.subscribe('auth.login', function() {
                    window.location.reload();
                });


            };

            (function() {
                var e = document.createElement('script');
                e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
                e.async = true;
                document.getElementById('fb-root').appendChild(e);
            }());


        </script>



<fb:serverFbml style="width: 750px;">
    <script type="text/fbml">
        <fb:fbml>
            <fb:request-form action="http://apps.facebook.com/globusdating/" method="POST" invite="true" type="TestApp"
                content="Join my app <fb:req-choice url="http://apps.facebook.com/globusdating/" 

label="Go Test app" />">
                <fb:multi-friend-selector showborder="false" actiontext="Wanna Meet Me.">
            </fb:request-form>
        </fb:fbml>
    </script>
</fb:serverFbml>
</body>
</html>

Thanks and Rep appreciated.
 
Last edited by a moderator:
Hey, I would like to get my hands on a invite friends to a fan-page code as well. THANKS IN ADVANCE!!!
 
Would love to try out the fan page code ! Cheers ! (:
 
So just insert your code into a FBML and will works? :|

40 friends/each time?
 
i dont see how this can work, but if it does I could probably wrap it up into javascript so that you can apply it to any page
 
Ace, does this code keep on refreshing and inviting 40 people at a time??

or do i have to refresh?
 
Ace, does this code keep on refreshing and inviting 40 people at a time??

or do i have to refresh?

I would say no, but like i said i can wrap this up to make it one click invites all if his inviter works.
 
I would say no, but like i said i can wrap this up to make it one click invites all if his inviter works.

let me know please mate :) this looks to be brilliant.

Good way to keep apps alive as well, if can ask the user to invite friends before seeing content. Could always blend it into a continue button or something
 
I would like it also.
Please Pm me all of it. :) thanks
 
Dam I like this. I might play around with it and see what I come up with. Nice share!
 
Its a shame the person has to select the friends? Could that bit of javascript be added to auto select the friends?

Also if it can auto submit too then that would be ace, there must be a way of doing it
 
Back
Top