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?
T开发者_如何学编程hanks,
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>
No. In order to do anything through facebook, like invite friends, you have to use their api.
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
精彩评论