问题
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