criso / fbgraph

NodeJs module to access the facebook graph api
http://criso.github.io/fbgraph/
1.09k stars 177 forks source link

Graph API v2.4 deprecated #129

Closed VictorienTardif closed 6 years ago

VictorienTardif commented 6 years ago

The Facebook Graph API v2.4 will end on 09 October, 2017. I see that I can use graph.setVersion("x.x") but It would be nice to use the latest Graph API version per default.

ffflabs commented 6 years ago

Using latest Graph API version by default would mean your code is already able to handle breaking changes in newer versions, whereas making a request with an outdated version should be automatically handled (on FB side) to perform the request using the earliest non-deprecated version.

However, it's true that some API calls will return an error if you try to request them using a deprecated version. I've seen this using marketing API calls.

criso commented 6 years ago

Updated on https://github.com/criso/fbgraph/pull/130