我的嘗試:https : //graph.facebook.com/v12.0/{mypageid}?fields={fieldname_of_type_PageStartDate}
使用此 api 時無法獲得任何響應,我也對 {fieldname_of_type_PageStartDate} 參數值感到困惑。我根據https://developers.facebook.com/docs/graph-api/reference/page-start-date/這個 fb 網站嘗試了日、月、年的值,但沒有用。
請建議任何使用api獲取facenook頁面創建日期的方法。
該文檔有點誤導,因為該頁面本身並沒有告訴您,這些字段是start_info
頁面屬性的一部分- 因此您必須查詢該屬性。
https://graph.facebook.com/v12.0/pageid?fields=start_info
這將為您提供以下格式的結構:
"data": [
{
"name": "...",
"start_info": {
"type": "Started",
"date": {
"year": 2021,
"month": 11,
"day": 29
}
},
"id": "1234567890"
},
並非所有子字段都會被設置;例如,您可能會遇到Founded
僅設置年份或Unspecified
根本沒有日期信息的類型。
請注意,這不是實際的頁面創建日期;但是頁面所代表的實體的“開始日期”。所以必須在頁面設置中明確設置,否則該字段為空。
Dieser Artikel stammt aus dem Internet. Bitte geben Sie beim Nachdruck die Quelle an.
Bei Verstößen wenden Sie sich bitte [email protected] Löschen.
Lass mich ein paar Worte sagen