为什么下面的FB Feed对话框(iframe解决方案)不要求对话框上的用户评论,对话框出现并发送帖子 -
function callback()
{
alert("Thank you");
}
function showFeed()
{
FB_RequireFeatures(["XFBML"], function(){
FB.Facebook.init('kkkc', '/facebook/xd_receiver.htm', null);
FB.ensureInit(function() {
var tpl_data ={"images":[{"src":"logo.gif","href":"kkk"}],"city":" "};
var user_message_prompt = "What do you think of this ?";
var user_message = {value: "write your comments here"};tData= {};
FB.Connect.showFeedDialog(439384, tpl_data, null, null, null,
FB.RequireConnect.require, callback,user_message_prompt, user_message);
}
(为代码添加了额外的null,仍然无效!) 注意:使用Firefox时,单击“下一步”时对话框似乎保持空白,直到从上角X关闭。
答案 0 :(得分:0)
我相信你错过了一个参数。这会将您的最后4个参数排除在外,这意味着Facebook可能无法正确接收您的user_message_prompt和user_message。
story_size参数需要额外的'null'。试试这个:
FB.Connect.showFeedDialog(43932059084, tpl_data, null, null, null,
FB.RequireConnect.require, null,user_message_prompt, user_message);