| gfbgraph Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <gfbgraph/gfbgraph.h> struct GFBGraphUser; struct GFBGraphUserClass; GFBGraphUser * gfbgraph_user_new (void); GFBGraphUser * gfbgraph_user_new_from_id (GFBGraphAuthorizer *authorizer,const gchar *id,GError **error); GFBGraphUser * gfbgraph_user_get_me (GFBGraphAuthorizer *authorizer,GError **error); void gfbgraph_user_get_me_async (GFBGraphAuthorizer *authorizer,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); GFBGraphUser * gfbgraph_user_get_me_async_finish (GFBGraphAuthorizer *authorizer,GAsyncResult *result,GError **error); GList * gfbgraph_user_get_albums (GFBGraphUser *user,GFBGraphAuthorizer *authorizer,GError **error); void gfbgraph_user_get_albums_async (GFBGraphUser *user,GFBGraphAuthorizer *authorizer,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); GList * gfbgraph_user_get_albums_async_finish (GFBGraphUser *user,GAsyncResult *result,GError **error); const gchar * gfbgraph_user_get_name (GFBGraphUser *user);
GFBGraphUser represents a user in Facebook.
With the "me" functions, (see gfbgraph_user_get_me()) you can query for the logged user node.
GFBGraphUser * gfbgraph_user_new (void);
Creates a new GFBGraphUser.
Returns : |
a new GFBGraphUser; unref with g_object_unref()
|
GFBGraphUser * gfbgraph_user_new_from_id (GFBGraphAuthorizer *authorizer,const gchar *id,GError **error);
Retrieves a user from the Facebook Graph with the give ID.
|
a GFBGraphAuthorizer. |
|
a const gchar with the user ID. |
|
a GError or NULL. [allow-none]
|
Returns : |
a new GFBGraphUser; unref with g_object_unref(). [transfer full]
|
GFBGraphUser * gfbgraph_user_get_me (GFBGraphAuthorizer *authorizer,GError **error);
Retrieve the current user logged using the https://graph.facebook.com/me Graph API function.
See gfbgraph_user_get_my_async() for the asynchronous version of this call.
|
a GFBGraphAuthorizer. |
|
a GError or NULL. [allow-none]
|
Returns : |
a GFBGraphUser with the current user information. [transfer full] |
void gfbgraph_user_get_me_async (GFBGraphAuthorizer *authorizer,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously retrieve the current user logged. See gfbgraph_user_get_me() for the
synchronous version of this call.
When the operation is finished, callback will be called. You can then call gfbgraph_user_get_me_finish()
to get the GFBGraphUser for to the current user logged.
|
a GFBGraphAuthorizer. |
|
An optional GCancellable object, or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is completed. [scope async] |
|
The data to pass to callback. [closure]
|
GFBGraphUser * gfbgraph_user_get_me_async_finish (GFBGraphAuthorizer *authorizer,GAsyncResult *result,GError **error);
Finishes an asynchronous operation started with
gfbgraph_user_get_me_async().
|
a GFBGraphAuthorizer. |
|
A GAsyncResult. |
|
An optional GError, or NULL. [allow-none]
|
Returns : |
a GFBGraphUser for to the current user logged. [transfer full] |
GList * gfbgraph_user_get_albums (GFBGraphUser *user,GFBGraphAuthorizer *authorizer,GError **error);
Retrieve the albums nodes owned by the user. This functions call the function ID/albums.
|
a GFBGraphUser. |
|
a GFBGraphAuthorizer. |
|
An optional GError, or NULL. [allow-none]
|
Returns : |
a newly-allocated GList with the albums nodes owned by the given user. [element-type GFBGraphAlbum][transfer full] |
void gfbgraph_user_get_albums_async (GFBGraphUser *user,GFBGraphAuthorizer *authorizer,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously retrieve the albums nodes owned by the user. See gfbgraph_user_get_albums() for the
synchronous version of this call.
When the operation is finished, callback will be called. You can then call gfbgraph_user_get_albums_async_finish()
to get the GList of GFBGraphAlbum owned by the user.
|
a GFBGraphUser. |
|
a GFBGraphAuthorizer. |
|
An optional GCancellable object, or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is completed. [scope async] |
|
The data to pass to callback. [closure]
|
GList * gfbgraph_user_get_albums_async_finish (GFBGraphUser *user,GAsyncResult *result,GError **error);
Finishes an asynchronous operation started with
gfbgraph_user_get_albums_async().
|
a GFBGraphUser. |
|
A GAsyncResult. |
|
An optional GError, or NULL. [allow-none]
|
Returns : |
a newly-allocated GList of albums owned by the user. [element-type GFBGraphAlbum][transfer full]
|
const gchar * gfbgraph_user_get_name (GFBGraphUser *user);
Get the user full name.
|
a GFBGraphUser. |
Returns : |
a const gchar with the user full name, or NULL. [transfer none]
|