Remove FB Graph API version from URL to use the oldest non deprecated version (2.5 for now, which will be deprecated soon) (#4650)

This commit is contained in:
SebC
2018-03-15 20:05:41 +01:00
committed by Diamond Lewis
parent c36ef99368
commit 6abf29dd97

View File

@@ -37,7 +37,7 @@ function validateAppId(appIds, authData) {
// A promisey wrapper for FB graph requests.
function graphRequest(path) {
return new Promise(function(resolve, reject) {
https.get('https://graph.facebook.com/v2.5/' + path, function(res) {
https.get('https://graph.facebook.com/' + path, function(res) {
var data = '';
res.on('data', function(chunk) {
data += chunk;