Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/flow-flo.../libs/flowflow/social/tests/flow/social
File: FFFacebookTest.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* FlowSocial
[2] Fix | Delete
*
[3] Fix | Delete
* @package FlowFlow
[4] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[5] Fix | Delete
*
[6] Fix | Delete
* @link http://looks-awesome.com
[7] Fix | Delete
* @copyright 2014-2018 Looks Awesome
[8] Fix | Delete
*/
[9] Fix | Delete
class FFFacebookTest extends PHPUnit\Framework\TestCase {
[10] Fix | Delete
function test_status_update(){
[11] Fix | Delete
$fb = new \Facebook\Facebook([
[12] Fix | Delete
'app_id' => '819834498139888',
[13] Fix | Delete
'app_secret' => 'b2e91d70719c03199ae610cbce5835fb',
[14] Fix | Delete
'default_graph_version' => 'v2.10',
[15] Fix | Delete
'default_access_token' => 'EAALpopgJRvABABoVSjEZA7ytScJEwAy9QEkBx5Vw09xcGgT8tgSbKsfAlLRZClpwhUMF8Ms6Hi6zO5dffBXJeV72Ib5rRRQdwSJJRglOp4RC1jzOy739jKV5cdOrSD7Q9cTNQbPWpnV79nLi94Xbs3sppYfwc8JUNUuUjCdf4M65ZBFNLbJpbmftNZC5mMMZD', // optional
[16] Fix | Delete
]);
[17] Fix | Delete
self::assertNotNull($fb);
[18] Fix | Delete
//$requestUserName = $fb->request('GET', '/54325985357/feed?fields=id,created_time,from,link,message,name,object_id,picture,full_picture,attachments{media,subattachments},source,status_type,story,type');
[19] Fix | Delete
// $response = $fb->get('me?fields=id,name');
[20] Fix | Delete
$response = $fb->get('/me/feed?fields=id,created_time,from,link,message,name,object_id,picture,full_picture,attachments{media,subattachments},source,status_type,story,type&amp;limit=5');
[21] Fix | Delete
// $response = $fb->get('/54325985357/feed?fields=id,message&amp;limit=5');
[22] Fix | Delete
//$response->get();
[23] Fix | Delete
[24] Fix | Delete
try {
[25] Fix | Delete
$alb = $fb->get('/1795496597196099/photos');
[26] Fix | Delete
} catch ( Exception $e ) {
[27] Fix | Delete
}
[28] Fix | Delete
try {
[29] Fix | Delete
$alb = $fb->get('/1796436317102127/photos');//from gleb
[30] Fix | Delete
} catch ( Exception $e ) {
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
$acc = $fb->get('/me/accounts');
[34] Fix | Delete
$edge = $acc->getGraphEdge();
[35] Fix | Delete
/** @var \Facebook\GraphNodes\GraphNode $node */
[36] Fix | Delete
foreach ($edge as $node) {
[37] Fix | Delete
$page_token = $node->getField('access_token');
[38] Fix | Delete
$fb->setDefaultAccessToken($page_token);
[39] Fix | Delete
$id = '54325985357';
[40] Fix | Delete
$id = $node->getField('id');//'1052432538193115';
[41] Fix | Delete
$feeds = $fb->get('/me/posts?fields=id,message&amp;limit=5');
[42] Fix | Delete
$feeds = $feeds->getGraphEdge();
[43] Fix | Delete
foreach ($feeds as $feedNode) {
[44] Fix | Delete
$feedNode;
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
//if ($id == '212083862204055')
[48] Fix | Delete
{
[49] Fix | Delete
try {
[50] Fix | Delete
$alb = $fb->get('/1795496597196099/photos');
[51] Fix | Delete
} catch ( Exception $e ) {
[52] Fix | Delete
}
[53] Fix | Delete
try {
[54] Fix | Delete
$alb = $fb->get('/1796436317102127/photos');//from gleb
[55] Fix | Delete
} catch ( Exception $e ) {
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
}
[59] Fix | Delete
}
[60] Fix | Delete
print_r($acc);
[61] Fix | Delete
}
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function