Permalink
Browse files

Facebook plugin: restore 'Pages You Manage' into pages dropdown

  • Loading branch information...
1 parent a0e086d commit 861a645e1345f377267025fb36a2616c7cbedb93 @ginatrapani ginatrapani committed Dec 21, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 webapp/plugins/facebook/model/class.FacebookGraphAPIAccessor.php
@@ -39,7 +39,11 @@ class FacebookGraphAPIAccessor {
*/
public static function apiRequest($path, $access_token, $fields=null) {
$api_domain = 'https://graph.facebook.com';
- $url = $api_domain.$path.'?access_token='.$access_token;
+ if (strpos($path, '?')===false) {
+ $url = $api_domain.$path.'?access_token='.$access_token;
+ } else {
+ $url = $api_domain.$path.'&access_token='.$access_token;
+ }
if ($fields != null ) {
$url = $url.'&fields='.$fields;
}

0 comments on commit 861a645

Please sign in to comment.