|
| getGroup ($group) |
|
| getFeed ($group, $limit=0, $offset=0, $until=null, $since=null) |
|
| getMembers ($group, $limit=0, $offset=0) |
|
| getDocs ($group, $limit=0, $offset=0, $until=null, $since=null) |
|
| getPicture ($group, $type=null) |
|
| createLink ($group, $link, $message=null) |
|
| deleteLink ($link) |
|
| createPost ($group, $message=null, $link=null, $picture=null, $name=null, $caption=null, $description=null, $actions=null) |
|
| deletePost ($post) |
|
| createStatus ($group, $message) |
|
| deleteStatus ($status) |
|
| __construct (Registry $options=null, JHttp $client=null, JFacebookOAuth $oauth=null) |
|
| sendRequest ($path, $data='', array $headers=null, $limit=0, $offset=0, $until=null, $since=null) |
|
| get ($object) |
|
| getConnection ($object, $connection=null, $extraFields='', $limit=0, $offset=0, $until=null, $since=null) |
|
| createConnection ($object, $connection=null, $parameters=null, array $headers=null) |
|
| deleteConnection ($object, $connection=null, $extraFields='') |
|
| setOAuth ($oauth) |
|
| getOAuth () |
|
Facebook API Group class for the Joomla Platform.
3.2.0 deprecated 297.
◆ createLink()
createLink |
( |
|
$group, |
|
|
|
$link, |
|
|
|
$message = null |
|
) |
| |
Method to post a link on group's wall. Requires authentication and publish_stream permission.
- Paramètres
-
string | $group | The group id. |
string | $link | Link URL. |
string | $message | Link message. |
- Renvoie
- mixed The decoded JSON response or false if the client is not authenticated.
- Depuis
- 3.2.0
Références $data, $link, et $message.
◆ createPost()
Method to post on group's wall. Message or link parameter is required. Requires authentication and publish_stream permission.
- Paramètres
-
string | $group | The group id. |
string | $message | Post message. |
string | $link | Post URL. |
string | $picture | Post thumbnail image (can only be used if link is specified) |
string | $name | Post name (can only be used if link is specified). |
string | $caption | Post caption (can only be used if link is specified). |
string | $description | Post description (can only be used if link is specified). |
array | $actions | Post actions array of objects containing name and link. |
- Renvoie
- mixed The decoded JSON response or false if the client is not authenticated.
- Depuis
- 3.2.0
Références $data, $description, $link, $message, et $name.
◆ createStatus()
createStatus |
( |
|
$group, |
|
|
|
$message |
|
) |
| |
Method to post a status message on behalf of the user on the group's wall. Requires authentication and publish_stream permission.
- Paramètres
-
string | $group | The group id. |
string | $message | Status message content. |
- Renvoie
- mixed The decoded JSON response or false if the client is not authenticated.
- Depuis
- 3.2.0
Références $data, et $message.
◆ deleteLink()
Method to delete a link. Requires authentication.
- Paramètres
-
- Renvoie
- boolean Returns true if successful, and false otherwise.
- Depuis
- 3.2.0
Références $link.
◆ deletePost()
Method to delete a post. Note: you can only delete the post if it was created by the current user. Requires authentication.
- Paramètres
-
- Renvoie
- boolean Returns true if successful, and false otherwise.
- Depuis
- 3.2.0
◆ deleteStatus()
Method to delete a status. Note: you can only delete the status if it was created by the current user. Requires authentication.
- Paramètres
-
string | $status | The Status ID. |
- Renvoie
- boolean Returns true if successful, and false otherwise.
- Depuis
- 3.2.0
◆ getDocs()
getDocs |
( |
|
$group, |
|
|
|
$limit = 0 , |
|
|
|
$offset = 0 , |
|
|
|
$until = null , |
|
|
|
$since = null |
|
) |
| |
Method to get the group's docs. Requires authentication and user_groups or friends_groups permission for non-public groups.
- Paramètres
-
string | $group | The group id. |
integer | $limit | The number of objects per page. |
integer | $offset | The object's number on the page. |
string | $until | A unix timestamp or any date accepted by strtotime. |
string | $since | A unix timestamp or any date accepted by strtotime. |
- Renvoie
- mixed The decoded JSON response or false if the client is not authenticated.
- Depuis
- 3.2.0
Références $limit, et $offset.
◆ getFeed()
getFeed |
( |
|
$group, |
|
|
|
$limit = 0 , |
|
|
|
$offset = 0 , |
|
|
|
$until = null , |
|
|
|
$since = null |
|
) |
| |
Method to get the group's wall. Requires authentication and user_groups or friends_groups permission for non-public groups.
- Paramètres
-
string | $group | The group id. |
integer | $limit | The number of objects per page. |
integer | $offset | The object's number on the page. |
string | $until | A unix timestamp or any date accepted by strtotime. |
string | $since | A unix timestamp or any date accepted by strtotime. |
- Renvoie
- mixed The decoded JSON response or false if the client is not authenticated.
- Depuis
- 3.2.0
Références $limit, et $offset.
◆ getGroup()
Method to read a group. Requires authentication and user_groups or friends_groups permission for non-public groups.
- Paramètres
-
string | $group | The group id. |
- Renvoie
- mixed The decoded JSON response or false if the client is not authenticated.
- Depuis
- 3.2.0
◆ getMembers()
getMembers |
( |
|
$group, |
|
|
|
$limit = 0 , |
|
|
|
$offset = 0 |
|
) |
| |
Method to get the group's members. Requires authentication and user_groups or friends_groups permission for non-public groups.
- Paramètres
-
string | $group | The group id. |
integer | $limit | The number of objects per page. |
integer | $offset | The object's number on the page. |
- Renvoie
- mixed The decoded JSON response or false if the client is not authenticated.
- Depuis
- 3.2.0
Références $limit, et $offset.
◆ getPicture()
getPicture |
( |
|
$group, |
|
|
|
$type = null |
|
) |
| |
Method to get the groups's picture. Requires authentication and user_groups or friends_groups permission.
- Paramètres
-
string | $group | The group id. |
string | $type | To request a different photo use square | small | normal | large. |
- Renvoie
- string The URL to the group's picture.
- Depuis
- 3.2.0
Références $type.
La documentation de cette classe a été générée à partir du fichier suivant :