Are you running any other facebook plugins concurrently? If you are, you\’ll have either pick one, or fix the plugins so you instantiate only one copy of the facebook connect, and work both plugins through that.
No, I’m only using one FB plugin. Really frustrating!
Generically, check your php.ini to see if ‘allow_url_fopen’ is enabled. Then see if safe_mode is enabled. Then see if open_basedir enabled.
@DJPaul,
Thanks for your help; you were right.
Safe_mode is enabled. For allow_url_fopen and open_basedir, I have to tell my webhost the following:
1) path or filename for the script that needs the connection – do you know which script this is?
2) ip address and port that it needs to connect to – I have no idea what this is–Facebook?
Much obliged.
Are you able to disable safe_mode via a htaccess file or similar?
Whilst we might be able to narrow down the specifics for 1), 2) could prove a problem – because if facebook has load-balancing or multiple servers (i.e. for different countries), the IP address might be different for each user.
I think a common solution is to use CURL libraries instead of fopen() (and friends) which doesn’t trigger this problem. Of course your PHP would need to have been compiled with CURL support. Problem is bp-facebook is a mod of an existing wp plugin that provides facebook authentication, and it’d be that author who would be best to make the changes.
This isn’t an area where i’ve ever had to investigate in the past so I can’t suggest what code changes would be needed.q
Good point abt the IP address. I’ll put in the request to my host and see what happens.