1 頁 (共 1 頁)

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

發表於 : 2013-06-12 15:07
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

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

發表於 : 2013-06-14 16:40
心靈捕手
Weberkx3 寫:我自己寫了FB按讚功能,目前使用一切順利
但2013年7月以後,FB按讚只支援絕對的URL位置( absolute URL )

該如何解決呢?
請問:您使用「絕對的URL位置( absolute URL )」有何問題?

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

發表於 : 2013-06-14 20:54
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