I'm using the Graph API to to integrate an app with Facebook.
So basically i want an app that will display all the status messages i've posted with the no. of comments and no. of likes. and possibly show who has liked and commented the corresponding status.
Now while testing the app i hardcoded my own FB profile using,
https://graph.facebook.com/<my_username>/statuses?access_token=....
It worked and this returned some JSON string with which i could retrieve the data i wanted.
Now when writing the app i had to extend the functionality for anyone to get these stats about their status messages. Hence they used to first login using standard FB login mechanism and then i used the URL:
https://graph.facebook.com/me/statuses?access_token=.....
But for some reason it didn't work. i looked at the documentation at http://developers.facebook.com/docs/api again and realized that when the 'me' page is used there is no option to access only 'statuses'.
Instead i've to access the 'feed' page using https://graph.facebook.com/me/feed?access_token=..... and then segregate the statuses.
have a few questions regarding this:
a. Is there a better way to do it?
b. and on my feed, even if somebody else posts, say a Birthday msg, the type = status. Hence while parsing JSON, how do i pick the status msgs only i've written?
Thanks for the help!
So basically i want an app that will display all the status messages i've posted with the no. of comments and no. of likes. and possibly show who has liked and commented the corresponding status.
Now while testing the app i hardcoded my own FB profile using,
https://graph.facebook.com/<my_username>/statuses?access_token=....
It worked and this returned some JSON string with which i could retrieve the data i wanted.
Now when writing the app i had to extend the functionality for anyone to get these stats about their status messages. Hence they used to first login using standard FB login mechanism and then i used the URL:
https://graph.facebook.com/me/statuses?access_token=.....
But for some reason it didn't work. i looked at the documentation at http://developers.facebook.com/docs/api again and realized that when the 'me' page is used there is no option to access only 'statuses'.
Instead i've to access the 'feed' page using https://graph.facebook.com/me/feed?access_token=..... and then segregate the statuses.
have a few questions regarding this:
a. Is there a better way to do it?
b. and on my feed, even if somebody else posts, say a Birthday msg, the type = status. Hence while parsing JSON, how do i pick the status msgs only i've written?
Thanks for the help!
Last edited: