CodeIgniter Forums

Full Version: load facebook php sdk from controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]niurexx[/eluser]
i try to load facebook from one of my controller but there is a problem with it.. when i run the code and view it using firebug.. an error 500 internal server error displayed..

my code

Code:
<?php


class facebook extends controller
{
    function __construct()
    {
        parent::controller();
    }
    
    function index()
    {
        require './facebook.php;
    }
}

El Forum

[eluser]pickupman[/eluser]
Simple syntax errors
Code:
class Facebook extends Controller
{
    function __construct()
    {
        parent::Controller();
    }
    
    function index()
    {
        require './facebook.php';
    }
}

You may want to check out the popular library for Facebook. [url="http://www.haughin.com/code/facebook/"]Facebook CI Library[/url]