Welcome Guest, Not a member yet? Register   Sign In
load facebook php sdk from controller
#1

[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;
    }
}
#2

[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]




Theme © iAndrew 2016 - Forum software by © MyBB