Reputation: 815
I'm developing a facebook connect Application with Facebook C# SDK, I want to send application invites to my friend is it possible without using facebook social plugins. What i mean is it possible only with codebehind?
Thanks,
Upvotes: 0
Views: 3512
Reputation: 2728
invite facebook friend from your facebook application or website,use this small lines of code and send invitation to all facebook friends to visit your website.i also used this script its working nicely. your domain must be ssl certified because facebook not allowing unsecured domains.
<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: 'Your Message diaolog'
});
}
</script>
//HTML Code
<div id="fb-root"></div>
<a href='#' onclick="FacebookInviteFriends();">
Facebook Invite Friends Link
</a>
Upvotes: 2
Reputation: 815
I found some code for that but can't send to my friends. Code is in the below
var fb = new FacebookWebClient();
dynamic parameters = new ExpandoObject();
parameters.appId = "{yourAPPid}";
parameters.message = "{yourmessage}";
dynamic id = fb.Post("me/apprequests", parameters);
facebook sdk invite friends to application
Upvotes: 0
Reputation: 519
No. In order to do anything through facebook, like invite friends, you have to use their api.
Upvotes: 1