I am trying to post a message on Facebook wall through my application. I want to post "yeehaa, you are on facebook now"
I am using this code:
btnPostToWall.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
public void onClick(View v) {
//postToWall();
Bundle parameters = new Bundle();
parameters.putString("message", "jk");
try {
facebook.request("me/feed", parameters, "POST");
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
});
The issue is-
This code opens my facebook wall for me where i write down a message, instead of it i want to post message through my application pragmatically. how can i do this?