I’m working on an application which has an option to share certain items on Facebook. I know how to post them on user’s own wall, but i’d like to add an option to share it on friend’s wall too.
So, is there a way to have the app open phone contact list and pick a Facebook contact from there? Or for that matter what would be the wisest way to go for it? I can do the actual posting part, i just need a way to choose the friend’s ID.
You can get it using me… graph.facebook.com/me/friends?access_token=user_token assuming you have read_friendslist permission.
It will return something like:
Once you get the ID, you then could do another call to get the friend info(graph.facebook.com/111111111?access_token=access_token)
And of course you can get even more info about them by specifying more fields by appending fields after access_token(e.g. &fields=gender, education, etc)