不支持实时更新include_values [英] real time update include_values is not supported

查看:162
本文介绍了不支持实时更新include_values的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更新"callback_url"(https://graph.facebook.com/subscriptions),但问题是我无法添加"include_values",这是一个很大的问题,因为我的整个程序都可以使用

I wanted to update the "callback_url" (https://graph.facebook.com/subscriptions) but the problem is that I can not add the "include_values" and it is a very big problem because my entire program works with

{ 错误": { "message":不支持((#100)include_values", "type":"OAuthException", 代码":100 } }

{ "error": { "message": "(#100) include_values is not supported", "type": "OAuthException", "code": 100 } }

带有"include_values"的示例Facebook回调

{对象":用户",条目":[{"id":"44368442315",时间":1346984937,更改":[{字段":"Feed",值": {"item":"like","verb":"add","parent_id":"44368442315_10151242317912316","sender_id":1422826573,"created_time":1346984937}}}}}}

{"object":"user","entry":[{"id":"44368442315","time":1346984937,"changes":[{"field":"feed","value":{"item":"like","verb":"add","parent_id":"44368442315_10151242317912316","sender_id":1422826573,"created_time":1346984937}}]}]}

facebook回调示例不是"include_values"

{对象":用户",条目":[{"id":"329196660309",时间":1347472236,"changed_fields":["feed"]},{"id":"44368442315 ," time:1347472238," changed_fields:[" feed]}]}

{"object":"user","entry":[{"id":"329196660309","time":1347472236,"changed_fields":["feed"]},{"id":"44368442315","time":1347472238,"changed_fields":["feed"]}]}

推荐答案

该属性不受支持,并且没有正确记录.所需的模式是查询回来以获取更新的字段,该字段在ping中清楚地标出.

This property is unsupported, and correctly undocumented. The required pattern is to query back to get the updated field, clearly marked in the ping.

实际上,在某些情况下,这样做是最佳的:例如,对查询进行批处理以获取一段时间内快速移动属性的所有更改的最终状态.

And indeed, in some scenarios it is optimal to do this: for example batching up a query to get the final state for all the changes of a fast-moving property that have been made over a period of time.

请注意,您现在可以使用字段扩展使您的结果查询以及所需的任何嵌套连接聚焦于激光.

Note that you can now use field expansion to laser-focus your resulting query and any nested connections required.

这篇关于不支持实时更新include_values的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆