I want to get a user status messages using the Facebook graph API. I have created an APP and with the help of APP ID/APP Secret code, I can get the access token and then get the posts by the user successfully with the following URL:
https://graph.facebook.com/USERID?fields=posts&access_token=XXX
But, I can not get the status message of the user. I am trying following:
https://graph.facebook.com/USERID/statuses?access_token=XXX
I get the following error:
{
"error": {
"message": "A user access token is required to request this resource.",
"type": "OAuthException",
"code": 102
}
}
How can I get the status message of the user? Thanks.
Read out the error message clearly:
It says you are not passing the access_token properly.
I hope your token have ‘user_status’ and ‘friend_status’ permissions.
Hope it helps.