auto post sur twitter en php

réf : http://www.pontikis.net/blog/auto_post_on_twitter_with_php   récupérer la libraire twitter : https://github.com/jublonet/codebird-php   Post single tweet using php // require codebird require_once(‘/path/to/codebird_php_v2.4.1/codebird.php’); \Codebird\Codebird::setConsumerKey(“your_ConsumerKey”, “your_ConsumerSecret”); $cb = \Codebird\Codebird::getInstance(); $cb->setToken(“your_AccessToken”, “your_AccessTokenSecret”); $params = array(   ‘status’ => ‘Auto Post on Twitter with PHP http://goo.gl/OZHaQD #php #twitter’ ); $reply = $cb->statuses_update($params); Post tweet with image using PHP // require codebird require_once(‘/path/to/codebird_php_v2.4.1/codebird.php’);…

Details

auto post sur Facebook en php

réf : http://www.pontikis.net/blog/auto_post_on_facebook_with_php <?php // require Facebook PHP SDK // see: https://developers.facebook.com/docs/php/gettingstarted/ require_once(“/YOUR_PATH_TO/facebook_php_sdk/facebook.php”); // initialize Facebook class using your own Facebook App credentials // see: https://developers.facebook.com/docs/php/gettingstarted/#install $config = array(); $config[‘appId’] = ‘YOUR_APP_ID’; $config[‘secret’] = ‘YOUR_APP_SECRET’; $config[‘fileUpload’] = false; // optional $fb = new Facebook($config); // define your POST parameters (replace with your own values) $params…

Details