Fixed: Cannot send session cache limiter – headers already sent

Okay, so many of you guys still ask me about how to fix these warning messages in our Facebook scripts. Today I’m going to give you two possible fixes that you can do. By the way, here’s the warning message we want to remove:

FIX IT BY ADDING A SESSION_START()

You can fix it by adding a session_start() on top of your PHP file, just right after your first line <?php tag. It looks like this:

FIX IT BY MOVING FACEBOOK INSTANCE

You can fix it by moving the Facebook class and instance code on top of your PHP file. It would look like this:

If none of them worked, you can read more here.

By Mike Dalisay

I'm Mike Dalisay, a pro web developer since 2010. I love web development. Improving our tutorials and source codes makes me happy. Do you want to suggest an edit to our tutorial? Got something to ask about our source codes? Email our team at [email protected]