mockfacebook icon indicating copy to clipboard operation
mockfacebook copied to clipboard

write and delete support

Open snarfed opened this issue 14 years ago • 2 comments

Originally filed by heaven on 2011-11-12T07:25:04

publishing and deleting via POST/DELETE: https://developers.facebook.com/docs/reference/api/#publishing

snarfed avatar Dec 06 '11 04:12 snarfed

Updated by heaven on 2011-11-14T20:39:23

Original ticket set status to Accepted (we converted to open)

snarfed avatar Dec 06 '11 04:12 snarfed

Updated by heaven on 2011-11-15T01:31:09

this will take more effort than it might seem. the big stumbling block is the duplication of data between the graph_objects and graph_connections tables, which serve objects and connections respectively.

one approach would be to write a schema mapping from object to connection representations, and translate each POST into two INSERTs, one for each table. the schema mapping isn't difficult, but would be time intensive, similar to the unfinished work that went into graph_on_fql.py.

another, probably better, approach would be to unify the two tables, and serve connections from graph_objects. this would require basically the same schema mapping as above, but would get rid of the duplication, which would be much better. that's probably what we should do.

Title changed from 'write and delete support' to 'write and delete support'

snarfed avatar Dec 06 '11 04:12 snarfed