如何從頁面本身獲取與頁面配對的Facebook對象ID?從頁面URL獲取開放圖形對象ID
例如,我直接問的對象ID 325186347604922我得到:
<pre>
{
"url": ".../ricetta-bigne_salati.htm",
"type": "ricettepercucinare:recipe",
"title": "Bignè salati",
"image": [
{
"url": ".../magazine/wp-content/uploads/2013/03/101-150x150.jpg",
"width": 150,
"height": 150
}
],
"description": "Gli ingredienti e la procedura per preparare la ricetta Bignè salati.",
"data": {
"course": "Antipasto",
"foreign_id": 130400
},
"updated_time": "2013-03-28T10:12:17+0000",
"id": "325186347604922",
"application": {
"id": "118665634826424",
"name": "Ricettepercucinare.com",
"url": "https://www.facebook.com/apps/application.php?id=118665634826424"
}
}</pre>
但如何,例如,此頁http://www.ricettepercucinare.com/ricetta-bigne_salati.htm能知道自己的ID?
謝謝。
爲什麼你需要這個ID?你不可以交換使用這個網址嗎? – Igy
我需要它,因爲我想驗證,當用戶在特定頁面中時,如果該對象包含在用戶完成的此類先前活動中(以符合Open Graph術語,請將其讀作「Story」)它。 –
同樣的問題,你不能使用ID嗎? – Igy