Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to post a message on facebook friends wall in Android [duplicate]

Possible Duplicate:
Facebook post on Friends wall in Android

I have made an app in which i am fetching list of my all FACEBOOK friends, now i want while i do click on any of the friend row then i will be able to post on his/her wall.

So what are the permissions i need to give and what type of code i need to write to do that,

Like: still i have given below permission and written below code onListItemClick

permissions :

         mFacebook.authorize(main, new String[] { "publish_stream",
        "friends_birthday", "friends_photos"  }, new MyAuthorizeListener());

Code:

  @Override

   protected void onListItemClick(ListView l, View v, int position, long id) {
    super.onListItemClick(l, v, position, id);

    MyFriend friend = (MyFriend) this.getListAdapter().getItem(position);

}

I am fetching FbId, name, bday and picture

 public class MyFriend {
private String fbID = " ";
private String name = " ";
private String bday = " "; 
private String pic = " ";

}
like image 202
Liza Avatar asked Jan 09 '13 06:01

Liza


People also ask

Can you duplicate a Facebook post?

To copy these posts, highlight the text you wish to share and press “Ctrl-C” to copy the text. In the “Update Status” box, press “Ctrl-V” to paste the text. Press “Post” to share.


1 Answers

Now on-wards you can not post to our friend's wall.

Because Facebook has removed the feature from its Graph Api, so that we cannot Post on Friend's Wall

thats why we can only post on our facebook wall only.

like image 172
SilentKiller Avatar answered Nov 15 '22 00:11

SilentKiller