This file is indexed.

/usr/share/php/Horde/Service/Facebook/Links.php is in php-horde-service-facebook 2.0.6-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
 * Links methods
 *
 * Copyright 2009-2013 Horde LLC (http://www.horde.org/)
 *
 * @author Michael J. Rubinsky <mrubinsk@horde.org>
 * @category Horde
 * @package Service_Facebook
 */
class Horde_Service_Facebook_Links extends Horde_Service_Facebook_Base
{
    /**
     * Retrieves links posted by the given user.
     *
     * @param integer    $uid  The user whose links you wish to retrieve
     * @param array  $options  An options array:
     *   - limit: (integer)  The maximum number of posts to return.
     *   - offset: (integer)  The post to start returning from.
     *   - ids: (array) Only return these specfic links.
     *
     * @return array  An array of links.
     */
    public function get($uid = null, array $options = array())
    {
        // Require a session
        if (!$this->_facebook->auth->getSessionKey()) {
            throw new Horde_Service_Facebook_Exception(
                'session_key is required',
                Horde_Service_Facebook_ErrorCodes::API_EC_SESSION_REQUIRED);
        }

        if (empty($uid)) {
            $uid = 'me';
        }
        if (!empty($options['ids'])) {
            $options['ids'] = implode(',', $options['ids']);
            return $this->_facebook->callGraphApi(
                '',
                $options);
        }

        return $this->_facebook->callGraphApi(
            $uid . '/links',
            $options);
    }

    /**
     * Posts a link on Facebook.
     *
     * @param string  $link   URL/link you wish to post
     * @param integer $uid    User ID that is posting this link
     * @param array $options  Additional post options:
     *   - message: (string) A message to attach to the link.
     *   - picture (string) A URL to a thumbnail image to use for this post if
     *             link is set.
     *   - name: (string)  A name for the post if link is set.
     *   - caption: (string) The caption, if link is set.
     *   - description: (string) A description, if link is specified.
     *
     * @return boolean
     */
    public function post($link, $uid = null, array $options = array())
    {
        if (!$this->_facebook->auth->getSessionKey()) {
            throw new Horde_Service_Facebook_Exception(
                'session_key is required',
                Horde_Service_Facebook_ErrorCodes::API_EC_SESSION_REQUIRED);
        }
        if (empty($uid)) {
            $uid = 'me';
        }
        $options['link'] = $link;

        return $this->_facebook->callGraphApi(
            $uid . '/links',
            $options,
            array('request' => 'POST'));
    }

}