Permalink
Browse files

Ease the walking over the paginated urls by also allowing full-facebo…

…ok url's to the api method.
  • Loading branch information...
1 parent aba1cc4 commit c334c0d1a65fcf63b94408ac2dd4f1783acab6e3 @jappievw committed Jun 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/base_facebook.php
View
3 src/base_facebook.php
@@ -1018,6 +1018,9 @@ protected function getUrl($name, $path='', $params=array()) {
if ($path[0] === '/') {
$path = substr($path, 1);
}
+ else if (substr($path, 0, 8) === 'https://') {
+ $path = preg_replace('/^https:\/\/[a-z-]*\.facebook\.com\//', '', $path);
+ }
$url .= $path;
}
if ($params) {

0 comments on commit c334c0d

Please sign in to comment.