Top | ![]() |
![]() |
![]() |
![]() |
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.
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] |
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.
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
.
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()
.
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.