首頁 美術繪圖 | 美術設計 | 熱門標籤 | 首選 | 首頁宣傳 | 近期作品 論壇: 發表 | 美術工作 | 美術比賽 | 展覽活動 | 美術相關 | 一般討論 | 美術同好 CG 討論 :: Photoshop | Painter | 3D 行動 | AMP

【 立即註冊 】 : 更改個人資料 : : 登入

會員名稱: 登入密碼: 保持登入

"?fb_xd_fragment=" Like Button 相關問題

發表新主題 回覆主題 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體

| 1頁, 共1
人氣點閱:3142 發表人
"?fb_xd_fragment=" Like Button 相關問題 2011-08-02 22:29
/ / /

Facebook Like Button "fb_xd_fragment" Bug



受影響的有: Firefox 5.0+ + Safari + More Browsers...
根據 Facebook 的 Bugzilla 顯示,
直接 WONTFIX 代表他們根本不想修復這個問題。

http://bugs.developers.facebook.net/show_bug.cgi?id=9777
Status: CLOSED WONTFIX <-- Why?

引言回覆:

------- Comment #69 From Jason 2011-06-14 14:23:40 PDT -------

Unfortunately there will not be a fix for this in the near term. Please work
around it if possible.





Possible Workaround #1: Replace URI in your Script


代碼:

/* At your head of script, try to filter the parameter away and redirect again */
if (isset($HTTP_GET_VARS['fb_xd_fragment']))
{
   header('Location: http://'.$_SERVER['HTTP_HOST'].str_replace('?fb_xd_fragment=', '', $_SERVER['REQUEST_URI']), true);
   exit;
}





Possible Workaround #2: Don't Display Like Button if detected


代碼:

/* Like previous one, try NOT to add FB Like Button if fb_xd_fragment detected */
if (isset($HTTP_GET_VARS['fb_xd_fragment']))
{
    $fb_button_fbxml = "<!-- workaround fb _xd_fragment bug //-->';
}


Possible Workaround #3: Using Redirect / ReWrite in Server Conf


Using Redirect, Rewrite or RedirectMatch or something similar

http://httpd.apache.org/docs/2.0/mod/mod_alias.html
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.2/mod/mod_alias.html
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.3/mod/mod_alias.html
http://httpd.apache.org/docs/2.3/mod/mod_rewrite.html



_
________________

美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀
Type



繪圖畫廊設計藝廊
攝影相簿留言板
最愛收藏分類標籤
暱稱: Type
註冊: 2002-11-30
發表: 11072
來自: vovo2000.com
V幣: 900702





資訊相關理論、技術、管理、應用、產品等
發表新主題 回覆主題