I'm using the following code to upload photos to Facebook fan page as the page (not as a user):
$ret_obj = $facebook->api ( '/'.$fanpageid.'/photos' , 'POST' , array(
'source' => '@' . $filename,
'message' => $message,
'link'=>$link,
'access_token'=>$accesstoken
));
This code was working until June 11th, 12 AM. Did Facebook change the way it works?
I have the fan page access token, and everything was working fine. How do I make it work?
found the solution myself, an alternative way is working instead of
'source' => '@' . $filename,
using
'url' => $fullpathfilename,
is working, weird that facebook doesnt document those important changes.