Possible duplicate:
Facebook on the friends wall in Android
I created an application in which I upload a list of all my FACEBOOK friends , now I want, as long as I click on any of the lines of each other, then I can post his / her walls.
So what permissions do I need and what code do I need to write to do this,
It seems: I also gave below permission and wrote below code onListItemClick
permissions:
mFacebook.authorize(main, new String[] { "publish_stream", "friends_birthday", "friends_photos" }, new MyAuthorizeListener());
The 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 get FbId, name, bday and image
public class MyFriend { private String fbID = " "; private String name = " "; private String bday = " "; private String pic = " "; }
Liza
source share