summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Peña <alvaropg@gmail.com>2013-05-13 14:14:02 +0200
committerÁlvaro Peña <alvaropg@gmail.com>2013-05-13 14:14:02 +0200
commitb7ca4604c32e80be0adac6671369a707331186f4 (patch)
tree1f8d69c7c4d8c5dbede92cab96ef6e320280cdf2
parent0b7aad2eb18aeee431a8ad3256aa4bbe4e0527ea (diff)
downloadlibgfbgraph-b7ca4604c32e80be0adac6671369a707331186f4.tar.gz
Little changes
-rw-r--r--gfbgraph/gfbgraph-simple-authorizer.c4
-rw-r--r--tests/credentials.h2
-rw-r--r--tests/test.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/gfbgraph/gfbgraph-simple-authorizer.c b/gfbgraph/gfbgraph-simple-authorizer.c
index cae112a..0709d24 100644
--- a/gfbgraph/gfbgraph-simple-authorizer.c
+++ b/gfbgraph/gfbgraph-simple-authorizer.c
@@ -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));
}
diff --git a/tests/credentials.h b/tests/credentials.h
index 6c4c519..ca153dd 100644
--- a/tests/credentials.h
+++ b/tests/credentials.h
@@ -1,2 +1,2 @@
#define GFBGRAPH_TEST_CLIENT_ID ""
-#define GFBGRAPH_TEST_ACCESS_TOKEN "CAACTgyJojTcBAJelKI3WZCsI665G4qUjZCSSZCvgEW2l311UYYxn6WOWPZBYAOQUljOwOsEIUKE1xAUKndnPqZAp27f0srnZA59jCwu45HTo4Y3u7ZCLJIGmVDZCcZAB5uch7QM4Qp9ANomSEUDgsLkjkdlFm6CYA8sYZD"
+#define GFBGRAPH_TEST_ACCESS_TOKEN ""
diff --git a/tests/test.c b/tests/test.c
index c186774..53146ae 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -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);