real time update include_values is not supported

谁都会走 提交于 2019-12-10 19:15:40

问题


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:


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.



来源:https://stackoverflow.com/questions/12392381/real-time-update-include-values-is-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!