1
我使用圖形API發佈指向頁面提要的鏈接。上次我查了一下,我的代碼在幾個月前工作。但今天我發現相同的代碼停止工作並返回一個錯誤。Facebook圖形API:通過「鏈接」參數發佈到提要失敗
基本上我做的是:
$ curl -i -F 'access_token=my_application_token' -F 'link=http://www.foodnetwork.com/recipes/tyler-florence/parsnip-puree-recipe2/index.html' -F 'name=Parsnip Puree' -F 'picture=http://img.foodnetwork.com/FOOD/2009/02/25/TU0603-1_Parsnip-Puree_s4x3_tz.jpg' -F 'id=my_page_url' https://graph.facebook.com/feed
現在返回以下結果:
HTTP/1.1 500 Internal Server Error
Access-Control-Allow-Origin: *
Cache-Control: no-store
Content-Type: text/javascript; charset=UTF-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Pragma: no-cache
WWW-Authenticate: OAuth "Facebook Platform" "unknown_error" "An unknown error has occurred."
X-FB-Rev: 600290
X-FB-Debug: mTeWwusHg5daIP2IMHlebi8fnLT9PO0CNJQeshMC+Hg=
Date: Mon, 30 Jul 2012 19:07:01 GMT
Connection: keep-alive
Content-Length: 87
{"error":{"message":"An unknown error has occurred.","type":"OAuthException","code":1}}
如果我嘗試同樣的職位沒有「鏈接」的參數,那麼它的工作原理:
$ curl -i -F 'access_token=my_application_token' -F 'name=Parsnip Puree' -F 'picture=http://img.foodnetwork.com/FOOD/2009/02/25/TU0603-1_Parsnip-Puree_s4x3_tz.jpg' -F 'id=my_page_url' https://graph.facebook.com/feed
這將返回以下內容,我可以在我的Facebook牆上看到帖子(沒有所需的鏈接,提示se):
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Cache-Control: private, no-cache, no-store, must-revalidate
Content-Type: text/javascript; charset=UTF-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Pragma: no-cache
X-FB-Rev: 600290
X-FB-Debug: iVVyk65AbEbnXNm0RyurLp/ZQA/oNXJ47w1UkLXXTfw=
Date: Mon, 30 Jul 2012 19:07:19 GMT
Connection: keep-alive
Content-Length: 40
{"id":"155190691260287_268086653304xxx"}
讓我感到困惑的是,帶有「link」參數的代碼一直在工作。 Facebook文檔沒有說任何關於發佈到feed的「鏈接」參數都有所改變。
任何想法出了什麼問題?
謝謝。
同樣的事情也發生在我身上:( – 2013-08-01 16:50:58