FB Feed对话框不要求用户注释

时间:2021-12-29 19:01:13

Why FB Feed dialog below (iframe solution) is not asking for user comments on dialog, the dialog appears and post is sent-

为什么下面的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);
}

(added extra null to code, still not working !) NOTE: with Firefox the dialog seem to remain as blank when clicking Next, until closing from upper corner X.

(为代码添加了额外的null,仍然无效!)注意:使用Firefox时,对话框似乎在单击Next时保持为空白,直到从上角X关闭。

1 个解决方案

#1


I believe you are missing a parameter. That places your last 4 parameters out of order, which means that Facebook probably isn't receiving your user_message_prompt and user_message properly.

我相信你错过了一个参数。这会将您的最后4个参数排除在外,这意味着Facebook可能无法正确接收您的user_message_prompt和user_message。

You need an extra 'null' in there for the story_size parameter. Try this:

你需要为story_size参数添加一个额外的'null'。试试这个:

FB.Connect.showFeedDialog(43932059084, tpl_data, null, null, null,
    FB.RequireConnect.require, null,user_message_prompt, user_message);

#1


I believe you are missing a parameter. That places your last 4 parameters out of order, which means that Facebook probably isn't receiving your user_message_prompt and user_message properly.

我相信你错过了一个参数。这会将您的最后4个参数排除在外,这意味着Facebook可能无法正确接收您的user_message_prompt和user_message。

You need an extra 'null' in there for the story_size parameter. Try this:

你需要为story_size参数添加一个额外的'null'。试试这个:

FB.Connect.showFeedDialog(43932059084, tpl_data, null, null, null,
    FB.RequireConnect.require, null,user_message_prompt, user_message);