Facebook, Twitter, Instagram + Co

Facebook, Twitter, Instagram + Co

Postby Iris Gesser » Thu Aug 17, 2017 8:28 pm

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 :)
User avatar
Iris Gesser
 
Posts: 37
Joined: Fri Apr 22, 2016 10:19 pm

Re: Facebook, Twitter, Instagram + Co

Postby dutch » Sat Aug 19, 2017 4:03 am

+1
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Facebook, Twitter, Instagram + Co

Postby Silvio.Falconi » Sat Aug 19, 2017 7:49 pm

+++1
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6757
Joined: Thu Oct 18, 2012 7:17 pm

Re: Facebook, Twitter, Instagram + Co

Postby James Bott » Sun Aug 20, 2017 4:14 pm

I don't know how to do it, but here is a link to the Facebook developer's site which has all the info you need to starting working on a Fivewin app.

https://developers.facebook.com/docs/pages

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Facebook, Twitter, Instagram + Co

Postby Silvio.Falconi » Mon Aug 21, 2017 3:52 pm

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/
Last edited by Silvio.Falconi on Fri Aug 25, 2017 11:22 pm, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6757
Joined: Thu Oct 18, 2012 7:17 pm

Re: Facebook, Twitter, Instagram + Co

Postby Silvio.Falconi » Mon Aug 21, 2017 5:04 pm

with PHP

Code: Select all  Expand view

<?php
// require Facebook PHP SDK
// see: https://developers.facebook.com/docs/ph ... ngstarted/
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/ph ... d/#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 = array(
  "access_token" => "YOUR_ACCESS_TOKEN", // see: https://developers.facebook.com/docs/fa ... ss-tokens/
  "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: https://developers.facebook.com/docs/re ... ebook-api/
try {
  $ret = $fb->api('/YOUR_FACEBOOK_ID/feed', 'POST', $params);
  echo 'Successfully posted to Facebook';
} catch(Exception $e) {
  echo $e->getMessage();
}
?>



Get Facebook PHP SDK
https://developers.facebook.com/docs/reference/php/
from Github at You may use any library available (in PHP section) of https://github.com/facebook/facebook-php-sdk
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6757
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 14 guests