简体   繁体   中英

Facebook get user status

In my iOS application, I am trying to implement Facebook but am running into a problem. I currently have the user logging in as well as I have implemented the friend picker. I am looking to now have it so when the user taps a friend it will show their status(last post in their feed. eg."In NYC on broadway!"). I did a lot of research online but am getting very confused. If someone could point me to good tutorial or could just explain this that would be great. I believe I have to use open graph but other then Facebook's tutorials I can't find any. Are there any tutorials other than on FB?

You can access a user's feed by calling /<userId>/feed ( https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Ffeed ). Then, look for the first element on data array where "type": "status" .

I think that the answer you're looking for is here , with the exception that you'll basically (I assume) display a list of friends with their profile pic. When clicking on the profile pic the user will see their status? Or you could try to do it all in once (friend name, pic, friend's last status). The facebook developers url they refer to in that post is here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM