0

<% if (!IsFaceBookConnected)
{%>
<script>
FB.init('APP_ID', '<%= Settings.RootUrl %>XdReceiver.aspx');
</script>
<%else{ %>
<div style="padding:0px;width:100%;">
<div id="fb-root">
<fb:serverfbml style="width:100%">
<script type="text/fbml">
<fb:fbml>
<fb:request-form action="invite-friends" method="post" type="Invite" content="">
<fb:multi-friend-selector max="25" showborder="false" actiontext="Invite Friends" email_invite="false" bypass="cancel" />
</fb:request-form>
</fb:fbml>
</script>
</fb:serverfbml>
<script type="text/javascript">
FB.init({
apiKey: 'XXXXX',
appId: 'XXXXX',
status: true, // check login status
cookie: true, // enable cookies to allow the server to access the session<br/>
xfbml: true // parse XFBML
});
FB.getLoginStatus(handleSessionResponse); function handleSessionResponse(response) FB.XFBML.parse(); }
</script>
<%} %>
http://connect.facebook.net/en_US/all.js#appId=XXXXXXXX&xfbml=1

我想通过 fbml 邀请 facebook 朋友。但它没有加载 facebook 朋友的列表。前几天它通过 fbml 正常工作。如何做到这一点?

4

0 回答 0