Dear Community,
is there an easy way to make Posts to Facebook, Twitter, Instagram + Co from a fiwewin-application?
Thank you for your answers.
Kind regards
Iris ![]()
Dear Community,
is there an easy way to make Posts to Facebook, Twitter, Instagram + Co from a fiwewin-application?
Thank you for your answers.
Kind regards
Iris ![]()
+1
+++1
James,
I allready Know this link
I am a developer on Facebook I have a site of Ecards from many years ago : https://apps.facebook.com/1350663568296457/
<?php
// require Facebook PHP SDK
// see: <!-- m --><a class="postlink" href="https://developers.facebook.com/docs/php/gettingstarted/">https://developers.facebook.com/docs/ph ... ngstarted/</a><!-- m -->
require_once("/YOUR_PATH_TO/facebook_php_sdk/facebook.php");
Â
// initialize Facebook class using your own Facebook App credentials
// see: <!-- m --><a class="postlink" href="https://developers.facebook.com/docs/php/gettingstarted/#install">https://developers.facebook.com/docs/ph ... d/#install</a><!-- m -->
$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 = array(
 "access_token" => "YOUR_ACCESS_TOKEN", // see: <!-- m --><a class="postlink" href="https://developers.facebook.com/docs/facebook-login/access-tokens/">https://developers.facebook.com/docs/fa ... ss-tokens/</a><!-- m -->
 "message" => "Here is a blog post about auto posting on Facebook using PHP #php #facebook",
 "link" => "http://www.fivetechsoft.com",
 "picture" => "http://forums.fivetechsupport.com/styles/prosilver/imageset/site_logo.gif",
 "name" => "How to Auto Post on Facebook with PHP",
 "caption" => "www.fivetechsoft.com",
 "description" => "Automatically post on Facebook with PHP using Facebook PHP SDK. How to create a Facebook app. Obtain and extend Facebook access tokens. Cron automation."
);
Â
// post to Facebook
// see: <!-- m --><a class="postlink" href="https://developers.facebook.com/docs/reference/php/facebook-api/">https://developers.facebook.com/docs/re ... ebook-api/</a><!-- m -->
try {
 $ret = $fb->api('/YOUR_FACEBOOK_ID/feed', 'POST', $params);
 echo 'Successfully posted to Facebook';
} catch(Exception $e) {
 echo $e->getMessage();
}
?>