Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@andyyoung authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/facebook-v3.1.1/base_facebook.php
View
3  lib/facebook-v3.1.1/base_facebook.php
@@ -979,6 +979,9 @@ protected function getCurrentUrl() {
$protocol = 'http://';
}
$currentUrl = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
+ // BEGIN PATCH for legacy use of FBML - to be removed when we switch to iframe for app canvas pages
+ $currentUrl = str_replace('sts.insomanic.me.uk/selectivestatus/', 'apps.facebook.com/selectivetwitter/', $currentUrl);
+ // END PATCH
$parts = parse_url($currentUrl);
$query = '';
Please sign in to comment.
Something went wrong with that request. Please try again.