diff --git a/composer.json b/composer.json index fd1e677..20ef094 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "botman/driver-facebook", + "name": "alexowson/botman-driver-facebook", "license": "MIT", "description": "Facebook Messenger driver for BotMan", "keywords": [ diff --git a/src/FacebookLocationDriver.php b/src/FacebookLocationDriver.php index 038560b..8bf5891 100644 --- a/src/FacebookLocationDriver.php +++ b/src/FacebookLocationDriver.php @@ -77,7 +77,7 @@ public function getLocation(array $messages) $data = Collection::make($messages['message']['attachments'])->where('type', 'location')->pluck('payload')->first(); - return new Location($data['coordinates']['lat'], $data['coordinates']['long'], $data); + return new Location(@$data['coordinates']['lat'], @$data['coordinates']['long'], $data); } /**