Removed many deprecated addons

This commit is contained in:
Michael 2017-10-19 06:31:48 +00:00
commit 1b7283c72b
247 changed files with 28554 additions and 0 deletions

5
fbsync/README.md Normal file
View file

@ -0,0 +1,5 @@
> # Note
> **Facebook Connector, Facebook Post Connector and Facebook Sync plugins are deprecated.**
> As of the moment you cannot bridge from or to Facebook with Friendica.

15
fbsync/fbsync.css Executable file
View file

@ -0,0 +1,15 @@
#fbsync-enable-label, #fbsync-create_user-label {
float: left;
width: 200px;
margin-top: 10px;
}
#fbsync-checkbox, #fbsync-create_user {
float: left;
margin-top: 10px;
}
#fbsync-submit {
margin-top: 15px;
}

1146
fbsync/fbsync.php Normal file

File diff suppressed because it is too large Load diff

43
fbsync/lang/C/messages.po Normal file
View file

@ -0,0 +1,43 @@
# ADDON fbsync
# Copyright (C)
# This file is distributed under the same license as the Friendica fbsync addon package.
#
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-06-23 14:44+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: fbsync.php:128 fbsync.php:132
msgid "Facebook Import"
msgstr ""
#: fbsync.php:136
msgid "Import Facebook newsfeed"
msgstr ""
#: fbsync.php:141
msgid "Automatically create contacts"
msgstr ""
#: fbsync.php:147
msgid "Save Settings"
msgstr ""
#: fbsync.php:656
msgid "status"
msgstr ""
#: fbsync.php:661
#, php-format
msgid "%1$s likes %2$s's %3$s"
msgstr ""

24
fbsync/test.php Normal file
View file

@ -0,0 +1,24 @@
<?php
require_once("boot.php");
if(@is_null($a)) {
$a = new App;
}
@include(".htconfig.php");
require_once("dba.php");
dba::connect($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
$a->set_baseurl(get_config('system','url'));
require_once("addon/fbsync/fbsync.php");
$uid = 90;
fbsync_get_self($uid);
fbsync_fetchfeed($a, $uid);
?>

72
fbsync/test1.php Normal file
View file

@ -0,0 +1,72 @@
<?php
require_once("boot.php");
if(@is_null($a)) {
$a = new App;
}
@include(".htconfig.php");
require_once("dba.php");
dba::connect($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
$a->set_baseurl(get_config('system','url'));
require_once("addon/fbsync/fbsync.php");
$feed = file_get_contents("/home/ike/friendica-data/fb.1");
$json = json_decode($feed);
//print_r($json);
$uid = 1;
$access_token = get_pconfig($uid,'facebook','access_token');
foreach ($json->data[0]->fql_result_set AS $post) {
//print_r($post);
$type = "";
$content = "";
if (isset($post->attachment->media) AND (($type == "") OR ($type == "link"))) {
foreach ($post->attachment->media AS $media) {
$image = "";
if (isset($media->type))
$type = $media->type;
if (isset($media->src))
$image = $media->src;
if (isset($media->photo)) {
if (isset($media->photo->images) AND (count($media->photo->images) > 1))
$image = $media->photo->images[1]->src;
echo "\n-------------------------------------------------\n";
//print_r($media->photo);
$url = "https://graph.facebook.com/v2.0/".$media->photo->fbid."/?access_token=".$access_token;
$feed = fetch_url($url);
$data = json_decode($feed);
if (isset($data->images))
$image = $data->images[0]->source;
echo "\n-------------------------------------------------\n";
}
if(isset($media->href) AND ($image != "") AND ($media->href != ""))
$content .= "\n".'[url='.$media->href.'][img]'.$image.'[/img][/url]';
else {
if ($image != "")
$content .= "\n".'[img]'.$image.'[/img]';
// if just a link, it may be a wall photo - check
if (isset($post->link))
$content .= fbpost_get_photo($media->href);
}
die($content."\n");
}
}
}
?>