Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Site extends CI_Controller {
- function __construct() {
- parent::__construct();
- $this->load->model('entry_model');
- $this->load->model('facebook_model');
- $this->facebook_model->get_user();
- }
- function index() {
- $fb_uid = $this->session->userdata('fb_uid'); // this is a string that contains the FB user ID
- $fb_me = $this->session->userdata('fb_me'); // this is an array that contains the requested user data
- $data = array(
- 'fb_me' => $fb_me,
- 'fb_uid' => $fb_uid,
- //'access_token' => $this->facebook->getAccessToken()
- );
- # output home page
- $data['main_content'] = 'home';
- $this->load->view('template', $data);
- }
- }
Add Comment
Please, Sign In to add comment