问题描述
我正在使用fb:serverfbml标签在IFrame中渲染一个多用户选择器。
I am using the fb:serverfbml tag to render a multi-friend-selector inside an IFrame.
我正在使用新的JavaScript API。我一直在尝试所有的日子让它工作。
I am using the new javascript API. I have been trying ALL DAY to get it working.
当我点击下划线的选定链接(由选定的朋友过滤)整个页面刷新,选择的朋友消失。
When I click on the underlines 'selected' link (to filter by the selected friends) the whole page refreshes and the selected friends disappear.
多用户选择器是否只适用于JavaScript API?
Does the multi-friend-selector just not work with the javascript API?
<fb:serverfbml>
<script type="text/fbml">
<fb:request-form action="http://apps.facebook.com/rollingrazor/" target="_top" method="POST" invite="true" type="Blah blah blah"
content="Blah blah! <fb:req-choice url="http://apps.facebook.com/rollingrazor/" label="Let me check my friends" />">
<fb:multi-friend-selector showborder="false" actiontext="Invite your friends" rows="5" cols="5" bypass="cancel" target="_top" />
</fb:request-form>
</script>
</fb:serverfbml>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function () {
FB.init({ appId: 'xxxxxxx', status: true, cookie: true,
xfbml: true
});
};
(function () {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
} ());
</script>
有人可以给我一个使用新的JavaScript API和多用户选择器的工作示例吗? p>
Can someone give me a working example using new javascript API with a multi-friend-selector?
推荐答案
我无法使用新的JS API,因此我将旧的JS API用于多个朋友选择器新的一切。这是令人讨厌的,但根据他们的开发人员路线图,一些新的朋友请求功能(希望一个API调用)将在6月份发布。我打算在这个时候创建自己的邀请窗口小部件。
I couldn't get it working with the new JS API so I am using the old JS API for the multi friend selector and the new one for everything else. It's annoying but according to their developer roadmap some new friend request features (hopefully an API call) will be released in June. I plan on creating my own invite widget at that point.
这篇关于Facebook多用户选择器+新的JavaScript API = BROKEN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!