FB 按讚功能需要 absolute URL 該如何解決?

phpBB Installation & Usage Support
phpBB 3 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 3.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
Weberkx3
星球普通子民
星球普通子民
文章: 2
註冊時間: 2013-04-01 08:54

FB 按讚功能需要 absolute URL 該如何解決?

文章 Weberkx3 »

●主機作業系統:Linux
●免費(或付費)空間連結:http://www.justhost.com/
●您的上網方式:ADSL
●您安裝的程式:Apache + php + MySql
●您的 phpBB 版本:phpBB 3.0.11
●您的 domain (網域名稱) :http://twnpc.com/
●您的 phpBB 連結網址:http://twnpc.com/

我自己寫了FB按讚功能,目前使用一切順利
但2013年7月以後,FB按讚只支援絕對的URL位置( absolute URL )

該如何解決呢?

FaceBook官方公告:https://developers.facebook.com/docs/re ... gins/like/

If you implemented the Like button before November 7, 2012, read this notice.

On November 7, 2012, we updated how the Like button functions with respect to content restrictions, publishing updates and integration with the built-in like action.
If you implemented Like buttons before this update, read Like Button Migration since your implementation may require changes to continue working.
After July 2013 migration, the Like button required an absolute URL in the href parameter.
321.PNG
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: FB 按讚功能需要 absolute URL 該如何解決?

文章 心靈捕手 »

Weberkx3 寫:我自己寫了FB按讚功能,目前使用一切順利
但2013年7月以後,FB按讚只支援絕對的URL位置( absolute URL )

該如何解決呢?
請問:您使用「絕對的URL位置( absolute URL )」有何問題?
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
Weberkx3
星球普通子民
星球普通子民
文章: 2
註冊時間: 2013-04-01 08:54

Re: FB 按讚功能需要 absolute URL 該如何解決?

文章 Weberkx3 »

啊... 抱歉問了笨問題... Orz

FB 公告之後的幾天裡面,國外也有了相關討論
Alert says using deprecated HREF without absolute URL

自己解答一下...

Absolute URL ( 絕對 URL )
http://twnpc.com/viewtopic.php?f=27&t=30

Relative URL ( 相對 URL )
./viewtopic.php?f=27&t=30

所以我的網站不會有影響

其實我一直以為 http://twnpc.com/viewtopic.php?f=27&t=30這樣不算是 Absolute URL

看來我完全搞錯了,也感謝心靈捕手老師提醒,我網站是 ok 的
相信最近一定還會有人問這個 FB 問題... XD
主題已鎖定

回到「[3.0.x] 安裝與使用」