Note that there are some explanatory texts on larger screens.

plurals
  1. POCode igniter on IE, in a facebook application and my refreshing woes
    primarykey
    data
    text
    <p>I've got a FB app (PHP/codeigniter).. works great.. woo. However, in IE, it refreshes and refreshes over and over. Chrome and the Fox are fine.</p> <p>I'll include my connection class below, but basically, my FB app points to this, it does it's magic and the user is then passed to another controller for the rest of the session.</p> <p>Anyone had experience with this before? I am on IE version 8 64 Bit on Win 7, but others have complained on other versions and OS's. I've googled about but seem(?) to be the only man with this prob.. :-(</p> <p>Anyhoo, here's my controller.</p> <p><pre> <p>/** * @property Model_user $model_user * @property Model_session $model_session */ class Blue_Connect extends Controller {</p> <code>function Blue_Connect() { parent::Controller(); $this-&gt;load-&gt;plugin('facebook'); } function index() { $this-&gt;load-&gt;model('Model_user', 'model_user'); $this-&gt;load-&gt;model('Model_session', 'model_session'); $my_url = $this-&gt;config-&gt;item('facebook_url'); if ($this-&gt;session-&gt;userdata('user_id') &gt; 0) { echo "&lt;script&gt;window.location.href='/buzz/';&lt;/script&gt;"; die(); } else { if(!isset($_REQUEST["code"])) { $dialog_url = "http://www.facebook.com/dialog/oauth?client_id=" . $this-&gt;config-&gt;item('app_id') . "&amp;scope=" . $this-&gt;config-&gt;item('facebook_perms') . "&amp;redirect_uri=" . urlencode($my_url); echo "&lt;script&gt;top.location.href='" . $dialog_url . "'&lt;/script&gt;"; die(); } $token_url = "https://graph.facebook.com/oauth/access_token?client_id=" . $this-&gt;config-&gt;item('app_id') . "&amp;perms=" . $this-&gt;config-&gt;item('facebook_perms') . "&amp;redirect_uri=" . urlencode($my_url) . "&amp;client_secret=" . $this-&gt;config-&gt;item('app_secret') . "&amp;code=" . $_REQUEST["code"]; $access_token = file_get_contents($token_url); $graph_url = "https://graph.facebook.com/me?" . $access_token; $tmp_graph = file_get_contents($graph_url); log_message("error", $tmp_graph); $user = json_decode($tmp_graph); $image = 'http://graph.facebook.com/'.$user-&gt;id.'/picture?type=large'; $user_id = $this-&gt;model_user-&gt;process_user($user-&gt;id, $user-&gt;name, $user-&gt;email, $image); $this-&gt;session-&gt;set_userdata(array('fb_id' =&gt; $user-&gt;id, 'user_id' =&gt; $user_id, 'access_token' =&gt; $access_token)); echo "&lt;script&gt;window.location.href='/blue_connect/';&lt;/script&gt;"; die(); } } </code></pre> <p>}
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload