I am trying to get user status updates using the graph API.
These are my steps
-
The user grants me user_status,read_stream permission
-
then my app does the following.
-
https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=".$FBappID."&client_secret=".$FBappSecret
and get the $AccessToken -
next i goto
https://graph.facebook.com/the-username/permissions?access_token=$AccessToken -
i make sure read_stream and user_status = 1
-
then i try
https://graph.facebook.com/the-username/statuses?access_token=$AccessToken
-
when i do this i get the error ” failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request”
First to get the token from facebook, the url must set like
This will redirect something like:
Then you can used