i want to invite friends on facebook api without canvus url ..

see if this helps

<html>
   <head>
   <title>My Great Canvas app</title>
   </head>
   <body>
   <div id="fb-root"></div>
   <script src="http://connect.facebook.net/en_US/all.js">
   </script>
   <script>
     FB.init({ 
       appId:'APP_ID', cookie:true, 
       status:true, xfbml:true 
     });



function FacebookInviteFriends()
{
FB.ui({ method: 'apprequests', 
   message: 'My diaolog...'});
}
   </script>
<a href='#' onClick="FacebookInviteFriends();"> Facebook Invite Friends</a>
   </body>
 </html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.