Skip to content

Commit 88646c4

Browse files
committed
fixes
1 parent 974946b commit 88646c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Adapters/Facebook.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ protected function initProviders(Request $request)
8181

8282
$this->api = new Provider();
8383

84-
if (($id = $this->getId($request->getStartingUrl()))) {
84+
if (($id = $this->getId($request->startingUrl))) {
8585
if ($this->options['facebookAccessToken']) {
8686
$api = $request->createRequest('https://graph.facebook.com/'.$id);
87-
$api->setParameter('access_token', $this->options['facebookAccessToken']);
87+
$api->startingUrl->setParameter('access_token', $this->options['facebookAccessToken']);
8888

8989
if ($json = $api->getJsonContent()) {
9090
$this->api->set($json);
@@ -117,10 +117,10 @@ public function getDescription()
117117
public function getUrl()
118118
{
119119
if ($this->isPost) {
120-
return $this->request->getStartingUrl();
120+
return $this->request->startingUrl->getUrl();
121121
}
122122

123-
return $this->api->get('url') ?: $this->request->getStartingUrl();
123+
return $this->api->get('url') ?: $this->request->startingUrl->getUrl();
124124
}
125125

126126
/**

0 commit comments

Comments
 (0)