Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

patch facebook sdk to fix redirection urls while we're using legacy F…

…BML canvas pages. TODO: rewrite to remove FBML..
  • Loading branch information...
commit 591935e53cb49a72ce52712505e409732fdb0aee 1 parent fc6fe7f
Andy Young authored May 20, 2012

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  lib/facebook-v3.1.1/base_facebook.php
3  lib/facebook-v3.1.1/base_facebook.php
@@ -979,6 +979,9 @@ protected function getCurrentUrl() {
979 979
       $protocol = 'http://';
980 980
     }
981 981
     $currentUrl = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  982
+    // BEGIN PATCH for legacy use of FBML - to be removed when we switch to iframe for app canvas pages
  983
+    $currentUrl = str_replace('sts.insomanic.me.uk/selectivestatus/', 'apps.facebook.com/selectivetwitter/', $currentUrl);
  984
+    // END PATCH 
982 985
     $parts = parse_url($currentUrl);
983 986
 
984 987
     $query = '';

0 notes on commit 591935e

Please sign in to comment.
Something went wrong with that request. Please try again.