It is probably a silly mistake but i'm into splits because of it :(
Language : PHP 5.4.7 Framework: CodeIgniter 2.1.3 , SDK: Facebook PHP SDK 3.2.2
Please consider the following Controller function:-
public function index()
{
// $this->__construct();
$data['profile'] = $this->_facebook->api('/me?fields=id');
$this->load->view('user_profile',$data);
}
And the corresponding view (user_profile.php) :-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Showing the user profile</title>
</head>
<body>
<?php
//echo print_r($user_profile,TRUE);
echo '<IMG SRC="http://graph.facebook.com/'. $profile['id'] . '/picture" HEIGHT=32 WIDTH=32 /> ';
?>
</body>
</html>
The above code shows the profile picture in Internet Explorer but in Chrome the page is blank. On viewing page source, it is blank.