Facebook graph api with PHP
Posted: Wed Apr 06, 2011 11:05 am
Hi,
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.
I have 300 friends. In that order, the 10th friends has disabled. When i check facebook, 9 friends have that wall posting. But it is impossible to post on 10th friend. So he did not have anything. But the 11th friends who have given access to his wall has nothing from me.
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
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