I am trying to use facebook graph api.
In one stage, I am getting Internal server 500 error
I tried their developer forum. No help from there. no replies.
This is the only stage giving me that error.
i get all friends list. After that, I try to get post on their wall. Some of them have disabled their wall posting. If try to post on their wall, I don't know what is really happening from there.
Code: Select all
foreach($friend as $id){
try {
$status = " Post";
}
catch {
// do nothing
}
}
So, the script hangs at 10th friend for long time. Approximately 20 seconds, then gives me 500 error.
set_time_limit(0); in the beginning of script
I have nothing to throw, Because facebook is not returning anything for error. $status is always nothing
No error message, no error log and i have no idea what is going on. It is 3rd day i am trying to fix it