FB.ui不会打开任何弹出/对话框。 基本上没有任何反应。我也没有控制台错误。 以下是我的代码。我已经检查了Stackoverflow和下面的其他链接以寻求帮助。但没有任何帮助。 我已在localhost和服务器上检查了同样的问题
function postToWallUsingFBUi()
{
var share = {
method: "feed",
name: "Lorem ipsum dolor sit amet!",
link: "http://www.google.com/",
picture: 'http://i294.photobucket.com/albums/mm92/jsolawis/Feature-Graphic.png',
caption: "Claritas est etiam processus dynamicus.",
description: "Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram."
};
FB.ui(share, function(response){});
}
我调用的FB.login函数:
FB.login(function(response){
// do something
},
{scope: 'email, publish_actions, publish_stream'});
http://debugmode.net/2012/06/25/sharing-on-facebook-using-javascript/ http://www.joshmorony.com/posting-to-a-facebook-wall-with-phonegap-the-javascript-sdk/