Reputation: 1225
Help to understand why the third step (update status) fails:
request_token (OK):
GET:https://graph.facebook.com/oauth/authorize?
client_id=XXX&
scope=offline_access,read_stream,publish_stream,user_activities,status_update&
redirect_uri=http%3A%2F%2Fexample.com
Got code
access_token (OK):
GET:https://graph.facebook.com/oauth/access_token?
client_id=XXX&
redirect_uri=http%3A%2F%2Fexample.com
client_secret=XXX&
code=XXX
Got access_token key
started with AAA...
update status (ERROR):
POST:https://graph.facebook.com/me/feed/?access_token=XXX&message=Hello!
response:
status:{"error":{"message":"Invalid OAuth access token.","type":"OAuthException"}}
What may be the problem? Or advise any library in C++.
Upvotes: 1
Views: 15220
Reputation: 31880
Lint your access token at: https://developers.facebook.com/tools/lint and tell us what it tells you.
Upvotes: 1