Hallo everyone I've a PHP script that publish on a group (my group, i'm the admin) a news everytime a new one come, with an image the script is run by a chron job all worked perfectly since the new facebook restiling (some days) at the moment the news are published, the images not. this is the script i'm using. can someangelone kindly help me to correct in a such way that it works ? (the one that is not published is the $image passed in the function (7° value, the value is the url of the existing image into the server) MANY THANKS ------------------------ PHP Script ---------------------------- function posta_facebook( $messaggio , $titolo , $caption , $link_name , $action_link , $testo , $image, $dest_post) { // Integrare la Facebook Library // include ("Facebook-Platform"); $config = array(); $config['appId'] = 'Here_App_ID'; $config['secret'] = 'Here_Secret'; $config['fileUpload'] = false; // optional $facebook = new Facebook($config); // Ottenere l'Application Token $contents = "https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=".FACEBOOK_APP_ID."&client_secret=".FACEBOOK_SECRET; $site_token = file_get_contents($contents); $source_uid = "The_Source_ID"; // ID di chi pubblica (ID della pagina o del proprio profilo) $target_uid = "Group_ID"; // ID della pagina o del proprio profilo // Inviare il messaggio ( Stream Publish ) $url_facebook = "https://api.facebook.com/method/stream.publish?message=".$messaggio."&attachment={\"name\":\"".$titolo."\",\"href\":\"".$action_link."\",\"caption\":\"".$caption."\",\"description\":\"".$testo."\",\"media\":[{\"type\":\"image\",\"src\":\"".$image."\",\"href\":\"".$action_link."\"}]}&action_links=[{\"text\":\"".$link_name."\",\"href\":\"".$action_link."\"}]&target_id=".$target_uid."&uid=".$source_uid."&".$site_token.""; // echo $url_facebook."<br>"; simplexml_load_file("".$url_facebook.""); } ------------------------ END PHP Script ----------------------------
ok, can u help to to understand how and what have i to check in my app. I did it a lot of time ago, following a tutorial in the internet, so now i have the doubt that changing something will beak my app
login your developers account and check if there are any alerts...if not check the permissions, I think fb is more strict lately...is it your own app you setup or from someone else?
it's on my fb probile, made by me i've two alerts, but all are marked as solved. and these are the settings...