summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fb.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/fb.module b/fb.module
index 297f96f..bb13fdc 100644
--- a/fb.module
+++ b/fb.module
@@ -484,7 +484,9 @@ function fb_get_token($fb = NULL, $fbu = NULL) {
* eliminating the need for it entirely.
*/
function fb_call_method($fb, $method, $params = array()) {
- $params['access_token'] = fb_get_token($fb);
+ if (!isset($params['access_token'])) {
+ $params['access_token'] = fb_get_token($fb);
+ }
$params['format'] = 'json-strings';
// Here's how to create a url that conforms to standards: