Facebook connect invitaion request:how to

The code to display extended permission is as given below. Call popupFacebookInvite() function to display the extended permission dialog box. Its pretty simple, So try out today...


function popupRequestForm(){
FB.IFrameUtil.CanvasUtilServer.run(true);
var _e1=document.createElement("div");
_e1.setAttribute("iframeHeight","560px");
_e1.setAttribute("iframeWidth","630px");
var _e2=new FB.UI.PopupDialog("Your message here",_e1,false,false);
_e2.setContentWidth(630);
_e2.setContentHeight(560);
_e2.set_placement(FB.UI.PopupPlacement.center);
_e1.setAttribute("fbml",""+"\">"+""+""+"");
_e2.show();
FB_RequireFeatures(["XFBML"],function(){
var _e3=new FB.XFBML.ServerFbml(_e1);
FB.XFBML.Host.addElement(_e3);
});
}
function popupFacebookInvite(){
FB.Facebook.get_sessionState().waitUntilReady(Delegate.create(null,function(_e4){
FB.Facebook.apiClient.connect_getUnconnectedFriendsCount(function(o,e){
if(o>1){
FB.Connect.inviteConnectUsers();
}else{
popupRequestForm();
}
});
}));
return false;
}

Comments

Popular posts from this blog

Most expensive product on Amazon India By Category

8 Product Management lessons from the movie 'Gold'