Facebook post on friends wall in Android

I would like to post a photo on my friend’s wall.

But I logged into my account, say, test@gmail.com , but now I want to publish it to any of my friends.

I have all my friends id and Name.

Can I post a photo on my friends wall by logging into my account? If so, how is this possible?

+2
source share
2 answers
try{ Bundle parameters = new Bundle(); JSONObject attachment = new JSONObject(); try { attachment.put("message", "Messages"); attachment.put("name", "Get utellit to send messages like this!"); attachment.put("href", link); } catch (JSONException e) { } parameters.putString("attachment", attachment.toString()); parameters.putString("message", "Text is lame. Listen up:"); parameters.putString("target_id", "XXXXX"); // target Id in which you need to Post parameters.putString("method", "stream.publish"); String response = authenticatedFacebook.request(parameters); Log.v("response", response); } catch(Exception e){} 
+4
source

In general, like Android for Android, you can do this. See sample code here .

+1
source

All Articles