Top | ![]() |
![]() |
![]() |
![]() |
GFBGraphUser * | gfbgraph_user_new () |
GFBGraphUser * | gfbgraph_user_new_from_id () |
GFBGraphUser * | gfbgraph_user_get_me () |
void | gfbgraph_user_get_me_async () |
GFBGraphUser * | gfbgraph_user_get_me_async_finish () |
GList * | gfbgraph_user_get_albums () |
void | gfbgraph_user_get_albums_async () |
GList * | gfbgraph_user_get_albums_async_finish () |
const gchar * | gfbgraph_user_get_name () |
const gchar * | gfbgraph_user_get_email () |
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_from_id (GFBGraphAuthorizer *authorizer
,const gchar *id
,GError **error
);
Retrieves a user from the Facebook Graph with the give ID.
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.
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.
GFBGraphUser * gfbgraph_user_get_me_async_finish (GFBGraphAuthorizer *authorizer
,GAsyncResult *result
,GError **error
);
Finishes an asynchronous operation started with
gfbgraph_user_get_me_async()
.
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.
user |
a GFBGraphUser. |
|
authorizer |
a GFBGraphAuthorizer. |
|
error |
An optional GError, or |
[allow-none] |
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
.
user |
a GFBGraphUser. |
|
authorizer |
a GFBGraphAuthorizer. |
|
cancellable |
An optional GCancellable object, or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is completed. |
[scope async] |
user_data |
The data to pass to |
[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()
.
user |
a GFBGraphUser. |
|
result |
A GAsyncResult. |
|
error |
An optional GError, or |
[allow-none] |
const gchar *
gfbgraph_user_get_name (GFBGraphUser *user
);
Get the user full name.
const gchar *
gfbgraph_user_get_email (GFBGraphUser *user
);
Get the user email. To retrieve this propertie, you need 'email' extended permission.