summaryrefslogtreecommitdiff
path: root/lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-01 17:11:00 +0100
committeremkael <emkael@tlen.pl>2019-01-01 17:11:00 +0100
commit36f25b4e845b9a53dd6f11402de5bfa61078fdf9 (patch)
tree9cf8ee811f2e6c6fb5f90e6001d45d347f969b01 /lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
parenteab8a101e7a3fcbb41e01a574985e06c5a3775de (diff)
Facebook API updated
Diffstat (limited to 'lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php')
-rw-r--r--lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php b/lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
index 6a37091..937128b 100644
--- a/lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
+++ b/lib/facebook-graph-sdk/src/Facebook/GraphNodes/GraphNodeFactory.php
@@ -304,7 +304,9 @@ class GraphNodeFactory
return $this->safelyMakeGraphEdge($data, $subclassName, $parentKey, $parentNodeId);
}
// Sometimes Graph is a weirdo and returns a GraphNode under the "data" key
- $data = $data['data'];
+ $outerData = $data;
+ unset($outerData['data']);
+ $data = $data['data'] + $outerData;
}
// Create GraphNode