- Jan 8, 2010
- 13,631
- 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 -
Thanks and Rep appreciated.
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: