koe
koe

Reputation: 746

Cannot redeclare class Facebook with facebook-php-sdk-master

I have been test successful already with my project used Codeigniter with facebook-php-sdk-master for user login to facebook. Than i am back up it may be 2 month ago and now i just run it back i got errors message as

Fatal error: Cannot redeclare class Facebook in ../application/libraries/facebook.php on line 24

that this line have code

class Facebook extends BaseFacebook
       {
           //any code
       }

I don't know it's make by any problem. By i search in Google i get result because i have duplicate class name. but after i check it. it's show really no the same name of class in his project and other one why before it's run well and now ? Anyone have idea with it? please share to me now .

thanks

Upvotes: 0

Views: 1004

Answers (1)

billions_ln
billions_ln

Reputation: 644

Try include_once as your code instead of include

Upvotes: 1

Related Questions