tek3
tek3

Reputation: 2115

Publishing on Facebook user's wall

i am developing an appon blackberry platform in which i hve to publish a message on users wall...i am able to get session id...but dont know how to proceed further...

i am doing something like this...

enter code here
URLEncodedPostData post = new URLEncodedPostData(URLEncodedPostData.DEFAULT_CHARSET, false);
        post.append("method", "stream.publish");
        post.append("message", "published through the Facebook API");
        post.append("session_key", sessionKey);
        post.append("attachment", null);
        post.append("action_links", null);
        post.append("target_id ", null);
        post.append("uid ", null);

i am sending this as post data to following url :

        http://api.facebook.com/restserver.php?

and the response i am getting contains : 101 Invalid API key

Upvotes: 1

Views: 1266

Answers (1)

Maksym Gontar
Maksym Gontar

Reputation: 22775

You should try to register your application, get API key and use in in requests.
Register and go www.facebook.com/developers/createapp.php

Upvotes: 2

Related Questions