Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 906c5ef

Browse files
committed
Merge pull request #242 from asolberg/next_request_type_path_conflict
At least one endpoint allows for the type parameter to be set in the URL...
2 parents b3b00f0 + 4cad9e0 commit 906c5ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Facebook/FacebookResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ private function handlePagination($direction) {
188188
$url = parse_url($this->responseData->paging->$direction);
189189
parse_str($url['query'], $params);
190190

191+
if (isset($params['type']) && strpos($this->request->getPath(), $params['type']) != false){
192+
unset($params['type']);
193+
}
191194
return new FacebookRequest(
192195
$this->request->getSession(),
193196
$this->request->getMethod(),

0 commit comments

Comments
 (0)