Hi all,

Once in a while on our site (say one in 20 times), we see this error:

warning: file_get_contents(https://graph.facebook.com/oauth/access_token?client_id=319630204776747&...) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /mnt/www/html/runway/docroot/includes/common.inc(1731) : eval()'d code on line 17.
warning: file_get_contents(https://graph.facebook.com/me/friends?access_token=) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /mnt/www/html/runway/docroot/includes/common.inc(1731) : eval()'d code on line 21.
warning: Invalid argument supplied for foreach() in /mnt/www/html/runway/docroot/includes/common.inc(1731) : eval()'d code on line 23.
warning: array_rand() [function.array-rand]: First argument has to be an array in /mnt/www/html/runway/docroot/includes/common.inc(1731) : eval()'d code on line 30.
warning: Invalid argument supplied for foreach() in /mnt/www/html/runway/docroot/includes/common.inc(1731) : eval()'d code on line 30.

We haven't really changed anything. We updated to the latest dev version and we still get this issue.

Any ideas??

Thank you!!

Comments

Dave Cohen’s picture

Status: Active » Postponed (maintainer needs more info)

Since the error is in "eval()'d code", that implies its in a PHP block or what not. You need to track that down and determine exactly what the code is.

This is the first report like this, so I don't at this point think it something that changed on facebook's end. But it could be they've changed the way they return an error in some cases. And it could be that code in modules/fb needs to do better at catching an exception. But unless you can say exactly what code causes this, I'm not sure how to track it down.

ratinakage’s picture

Hi all,

It happens immediately after login and subsequently on various pages on the site.

We have some pages on the website with Facebook friend profile picture images (pull from Facebook using the access token provided by this module). When this error happens (about 1 in 20 times), none of the images of your friends load. So I guess there is a problem with the connection to Facebook.

It only started happening today.

Thank you!