Skip to content

Commit

Permalink
Update FacebookDriver.php (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
gulaandrij authored and mpociot committed Sep 4, 2017
1 parent 90735b4 commit 1043ae1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FacebookDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function types(IncomingMessage $matchingMessage)
'sender_action' => 'typing_on',
];

return $this->http->post('https://graph.facebook.com/v2.6/me/messages', [], $parameters);
return $this->http->post($this->facebookProfileEndpoint.'me/messages', [], $parameters);
}

/**
Expand Down Expand Up @@ -336,7 +336,7 @@ public function buildServicePayload($message, $matchingMessage, $additionalParam
*/
public function sendPayload($payload)
{
$response = $this->http->post('https://graph.facebook.com/v2.6/me/messages', [], $payload);
$response = $this->http->post($this->facebookProfileEndpoint.'me/messages', [], $payload);
$this->throwExceptionIfResponseNotOk($response);

return $response;
Expand Down Expand Up @@ -383,7 +383,7 @@ public function sendRequest($endpoint, array $parameters, IncomingMessage $match
'access_token' => $this->config->get('token'),
], $parameters);

return $this->http->post('https://graph.facebook.com/v2.6/'.$endpoint, [], $parameters);
return $this->http->post($this->facebookProfileEndpoint.$endpoint, [], $parameters);
}

/**
Expand Down

0 comments on commit 1043ae1

Please sign in to comment.