Commit b7ca4604 authored by Álvaro Peña's avatar Álvaro Peña

Little changes

parent 0b7aad2e
......@@ -90,7 +90,7 @@ gfbgraph_simple_authorizer_class_init (GFBGraphSimpleAuthorizerClass *klass)
**/
g_object_class_install_property (gobject_class,
PROP_ACCESS_TOKEN,
g_param_spec_string ("access_token",
g_param_spec_string ("access-token",
"The access token", "The access token for the Facebook Graph API.",
"",
G_PARAM_READABLE | G_PARAM_WRITABLE));
......@@ -196,5 +196,5 @@ gfbgraph_simple_authorizer_refresh_authorization (GFBGraphAuthorizer *iface, GCa
GFBGraphSimpleAuthorizer*
gfbgraph_simple_authorizer_new (const gchar *access_token)
{
return GFBGRAPH_SIMPLE_AUTHORIZER (g_object_new (GFBGRAPH_TYPE_SIMPLE_AUTHORIZER, "access_token", access_token));
return GFBGRAPH_SIMPLE_AUTHORIZER (g_object_new (GFBGRAPH_TYPE_SIMPLE_AUTHORIZER, "access-token", access_token, NULL));
}
#define GFBGRAPH_TEST_CLIENT_ID ""
#define GFBGRAPH_TEST_ACCESS_TOKEN "CAACTgyJojTcBAJelKI3WZCsI665G4qUjZCSSZCvgEW2l311UYYxn6WOWPZBYAOQUljOwOsEIUKE1xAUKndnPqZAp27f0srnZA59jCwu45HTo4Y3u7ZCLJIGmVDZCcZAB5uch7QM4Qp9ANomSEUDgsLkjkdlFm6CYA8sYZD"
#define GFBGRAPH_TEST_ACCESS_TOKEN ""
......@@ -18,7 +18,7 @@ main (int argc, char **argv)
/* Get "me" user */
me = gfbgraph_user_get_me (GFBGRAPH_AUTHORIZER (authorizer), &error);
if (error != NULL) {
g_print ("Error getting \"me\" user\n");
g_print ("Error getting \"me\" user: %s\n", error->message);
return -1;
}
g_object_get (G_OBJECT (me), "name", &me_name, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment