How to trace the cause of an internal server 500 error?

I am trying to do the following using the official PHP FB SDK:

$facebook->api(
'/me/feed',
'POST',
array(
    'link' => 'test',
    'message' => 'test'
)

)

Unfortunately, the server (not facebook!) Returns an error of 500.

The request passes, the status is sent, but my server returns an error.

My question is: how to find out what is the reason?

+5
source share
2 answers

500 is usually a "server internal error".

If you get 500 back from your facebook aviation ring, then this may be something wrong with them.

Then again, your HTTP requests may be a little disconnected, and the fb server "um, what?" and sends you 500 because he cannot explain the problem.

, fb api " ", - - api . , .

, :

A) HTTP- , , api . B) , SDK facebook.

A , B, , .

: php

EDIT: , 500 , apache.

error_reporting(E_ALL);

php.

+5

, CURL :)

ssh >

PHP : "" "Facebook CURL PHP". /srv/www/smixe.com/base_facebook.php:19

0

All Articles