OPiQuotations
v.03.00.00 — April 5, 2019
|
Little PHP application to send one quotation (from OPiCitations) to Facebook account https://www.facebook.com/1OPiCitationParJour. More...
Go to the source code of this file.
Namespaces | |
OPiCitations | |
Variables | |
if(true) | else |
$LABEL = 'Facebook - 1OPiCitationParJour' | |
$opiquotations = new OPiQuotations\OPiQuotations() | |
$quot = $opiquotations->quotation_by_random($LABEL) | |
if($quot===null) | $text |
if (true) | |
$ch = curl_init('https://graph.facebook.com/'.$page_id.'/feed') | |
if(! $ch) | $r |
if($ch===false) | $result = curl_exec($ch) |
$msg_id = array_pop($msg_id) | |
$url = 'https://www.facebook.com/1OPiCitationParJour/posts/'.$msg_id | |
if(true) | $selection = new OPiQuotations\Selection($LABEL, NULL, $url) |
$ok = $opiquotations->quotation_add_selection($quot, $selection) | |
Little PHP application to send one quotation (from OPiCitations) to Facebook account https://www.facebook.com/1OPiCitationParJour.
(September 13, 2017)
Piece of OPiQuotations. https://bitbucket.org/OPiMedia/opiquotations
GPLv3 — Copyright (C) 2014, 2016, 2017 Olivier Pirson http://www.opimedia.be/
Definition in file une-OPiCitation-pour-Facebook.php.
$ch = curl_init('https://graph.facebook.com/'.$page_id.'/feed') |
Definition at line 95 of file une-OPiCitation-pour-Facebook.php.
$LABEL = 'Facebook - 1OPiCitationParJour' |
Definition at line 61 of file une-OPiCitation-pour-Facebook.php.
$msg_id = array_pop($msg_id) |
Definition at line 138 of file une-OPiCitation-pour-Facebook.php.
$ok = $opiquotations->quotation_add_selection($quot, $selection) |
Definition at line 152 of file une-OPiCitation-pour-Facebook.php.
$opiquotations = new OPiQuotations\OPiQuotations() |
Definition at line 64 of file une-OPiCitation-pour-Facebook.php.
$quot = $opiquotations->quotation_by_random($LABEL) |
Definition at line 66 of file une-OPiCitation-pour-Facebook.php.
if (! $ch) $r |
Definition at line 102 of file une-OPiCitation-pour-Facebook.php.
$result = curl_exec($ch) |
Definition at line 114 of file une-OPiCitation-pour-Facebook.php.
Referenced by OPiQuotations\Db\nb(), and OPiQuotations\Db\query_quotations().
if (true) $selection = new OPiQuotations\Selection($LABEL, NULL, $url) |
Definition at line 150 of file une-OPiCitation-pour-Facebook.php.
Referenced by OPiQuotations\Selection\_selections_to_html_ul(), OPiQuotations\Db\query_quotations(), OPiQuotations\OPiQuotations\quotation_add_selection(), OPiQuotations\OPiQuotation\selections_add(), and OPiQuotations\OPiQuotation\to_text().
if ( $quot===null) $text |
Definition at line 80 of file une-OPiCitation-pour-Facebook.php.
Referenced by OPiQuotations\OPiQuotation\__construct(), OPiQuotations\OPiQuotations\quotations_by_text(), OPiQuotations\OPiQuotations\quotations_by_text_nb(), OPiQuotations\OPiQuotation\text(), OPiQuotations\text_cut(), and OPiQuotations\OPiQuotation\to_text_twitter().
$url = 'https://www.facebook.com/1OPiCitationParJour/posts/'.$msg_id |
Definition at line 140 of file une-OPiCitation-pour-Facebook.php.
Definition at line 35 of file une-OPiCitation-pour-Facebook.php.
if(true) |
Definition at line 84 of file une-OPiCitation-pour-Facebook.php.