real time update include_values is not supported

2019-07-04 05:05发布

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

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

example facebook callback with "include_values"

{"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}}]}]}

example facebook callback not "include_values"

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

1条回答
不美不萌又怎样
2楼-- · 2019-07-04 05:39

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.

查看更多
登录 后发表回答