Facebook Graph API 名称字段已弃用 v3.3 及更高版本

Facebook Graph API name field is deprecated for versions v3.3 and higher

我看到来自 Facebook 的错误 name field is deprecated for versions v3.3 and higher,这是几天前才开始出现的:

{taskinstance.py:1145} ERROR - Graph API error 400 
    
    {"error":{"message":"(#12) name field is deprecated for versions v3.3 and higher","type":"OAuthException","code":12,"fbtrace_id":"AyLdQkfLTBKjUwQ5dURy-Lf"}}
    Traceback (most recent call last):
      File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 983, in _run_raw_task
        result = task_copy.execute(context=context)
      File "/usr/local/airflow/repo/plugins/facebook_plugin/facebook_operators.py", line 88, in execute
        response = self.fbhook.get_post_insights(page_id, page_token, post_date)
      File "/usr/local/airflow/repo/plugins/facebook_plugin/facebook_hooks.py", line 89, in get_post_insights
    
        f"Graph API error {response.status_code} {response.url}"
    Exception: Graph API error 400  
    {"error":{"message":"(#12) name field is deprecated for versions v3.3 and higher","type":"OAuthException","code":12,"fbtrace_id":"AyLdQkfLTBKjUwQ5dURy-Lf"}}

我正在尝试获取有关 'name' 的更多信息以及此字段已被替换的内容,在哪里可以找到?

Facebook 已于 2021 年 5 月 4 日正式弃用 Graph Api 3.2,并将您的应用移至 Graph API 3.3 版。

他们贬值了许多字段并提供了替代字段以继续使用 Facebook 数据。在您的案例中,{name} 已更改为附件{title}。

请参阅下面的内容 URL 以了解更多详细信息: https://developers.facebook.com/docs/graph-api/changelog/version3.3/