我只有我们论坛的基本网址才有这个奇怪的问题。我添加了一个像按钮。当我测试它时,喜欢的网址显示为“www.facebook.com/pages/toonzo ...”而不是“www.toonzone.net/forums/”或“www.toonzone.net/forums/forum” .PHP”。在使用Chrome浏览页面进行了大量挖掘之后,我发现它来自看似被弃用的javascript与该URL。看得更近,它是从facebook的like.php文件调用的。
我的下一步,确认这是涉及URL和Facebook的事情而不是其他东西是使用URL在facebook上创建一个新的类似按钮。果然,那个错误的网址也出现了。
我猜可能是很久以前的事了,有些事情发生了变化,从此以后它一直被卡住了。因为,不正确的URL看起来像我们原来的粉丝页面地址。但是,我根本不知道如何纠正这个问题。我尝试将URL折腾到facebook开发者网站上的调试工具中。这是javascript代码段和网站网址:
http://www.toonzone.net/forums/
ServerJSQueue.add({"define":[["XDVerifiedChannel",[],{"channel":"http:\/\/static.ak.facebook.com\/connect\/xd_arbiter.php?version=9#cb=f2891cc4a&origin=http\u00253A\u00252F\u00252Fwww.toonzone.net\u00252Ff1d709ba3&domain=www.toonzone.net&relation=parent.parent"}]]});onloadRegister_DEPRECATED(function (){Bootloader.done([])});onloadRegister_DEPRECATED(function (){defer_until(function() { new ExternalPageLikeWidget({"viewer":1027609353,"channelURL":"http:\/\/static.ak.facebook.com\/connect\/xd_arbiter.php?version=9#cb=f2891cc4a&origin=http\u00253A\u00252F\u00252Fwww.toonzone.net\u00252Ff1d709ba3&domain=www.toonzone.net&relation=parent.parent","mobile":false,"nodeType":"page","externalURL":"http:\/\/www.toonzone.net\/forums\/forum.php","widgetID":"connect_widget_5020888885b1a5865896767","alreadyConnected":false,"viewerIsAdmin":false,"adminUrl":"","showFaces":false,"useUnlikeLink":false,"layout":"box_count","locale":"en_US","commentWidgetMarkup":"\u003Cdiv id=\"uf3jom_1\" style=\"font-family: "arial", sans-serif\" class=\"connect_comment_widget connect_comment_widget_ltr\" title=\"toonzone forums\">\u003Cdiv class=\"nub\">\u003C\/div>\u003Cdiv class=\"comment_content\">\u003Cdiv class=\"connect_comment_widget_placeholder_input_region hidden_elem\">\u003Cinput class=\"connect_comment_widget_placeholder_input inputtext\" type=\"text\" value=\"Add a comment\" \/>\u003C\/div>\u003Cdiv class=\"connect_comment_widget_full_input_region clearfix\">\u003Cdiv>\u003Cimg class=\"-cx-PRIVATE-uiSquareImage__root connect_comment_widget_user_pic -cx-PRIVATE-uiSquareImage__large img\" src=\"https:\/\/fbcdn-profile-a.akamaihd.net\/hprofile-ak-snc4\/276075_1027609353_1137351_q.jpg\" alt=\"\" \/>\u003Ctextarea aria-label=\"Add a comment\" class=\"connect_comment_widget_full_input_textarea connect_comment_widget_disabled inputtext\">Add a comment\u003C\/textarea>\u003C\/div>\u003Cdiv class=\"connect_comment_share_preview\">\u003Ctable class=\"uiGrid\" cellspacing=\"0\" cellpadding=\"0\">\u003Ctbody>\u003Ctr>\u003Ctd class=\"vTop\">\u003Cdiv>\u003Cimg class=\"connect_comment_share_preview_pic img\" src=\"https:\/\/fbexternal-a.akamaihd.net\/safe_image.php?d=AQBsqmNXd4pF0tmu&w=50&h=50&url=http\u00253A\u00252F\u00252Fwww.toonzone.net\u00252Fimages\u00252Ftz6\u00252FtzLogo.png\" alt=\"\" \/>\u003C\/div>\u003C\/td>\u003Ctd class=\"vTop\">\u003Cdiv style=\"padding-left: 6px; \">\u003Cdiv class=\"connect_comment_widget_title fsl fwb fcb\">toonzone forums\u003C\/div>\u003Cdiv class=\"mbs connect_comment_widget_href fsm fwn fcg\">http:\/\/www.facebook.com\/pages\/toonzo...\u003C\/div>\u003Cdiv class=\"mbs connect_comment_widget_description fsm fwn fcg\">Animation news and discussion. toonzone has been providing news, information and community to animation enthusiasts since August 1998.\u003C\/div>\u003C\/div>\u003C\/td>\u003C\/tr>\u003C\/tbody>\u003C\/table>\u003C\/div>\u003C\/div>\u003Cdiv class=\"connect_comment_widget_button_region\">\u003Clabel class=\"connect_comment_widget_post_button uiButton uiButtonConfirm\" for=\"uf3jom_2\">\u003Cinput value=\"Post to Facebook\" type=\"submit\" id=\"uf3jom_2\" \/>\u003C\/label>\u003Clabel class=\"connect_comment_widget_close_button uiButton\" for=\"uf3jom_3\">\u003Cinput value=\"Close\" type=\"submit\" id=\"uf3jom_3\" \/>\u003C\/label>\u003C\/div>\u003C\/div>\u003C\/div>","error":null,"autoResize":true,"connectText":0,"socialbar":false,"ref":".UCCIg6eFIhc.like","userOptedOut":false,"showCaptcha":false,"usingInlineCommenting":false,"isBlocked":false,"forceCommentHooks":"","isPersonalized":false,"colorScheme":null,"grayOut":true,"iframeReferer":"http:\/\/www.toonzone.net\/forums\/forum.php"}); },function() { return ge("connect_widget_5020888885b1a5865896767"); })});onloadRegister_DEPRECATED(function (){AsyncLoader.loadCSS("https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yV\/r\/wspVKE9hHCT.css");});
答案 0 :(得分:0)
我已经测试过,一切都运行良好。在if的iframe中的Facebook脚本真的很模糊。但我的猜测很简单:您在测试期间以粉丝页面的身份登录。因此,您的粉丝页面的网址显示在脚本的某个位置,因为它会在您的粉丝页面上喜欢并评论您的网页,但会在您的粉丝页面上发布。对于真实的用户,这不会发生。