Reputation: 3012
I wanted to publish a link on the given profile on Facebook via the app. Post to https://graph.facebook.com/PROFILE_ID/links with access_token and other necessary parameters. For testing purpose, I got the access_token with Graph API Explorer and had the publish_stream and share_item extended permission.
Then I got the error
{
"error": {
"message": "An access token is required to request this resource.",
"type": "OAuthException",
"code": 104
}
}
I tried fb_id and fb_username for the PROFILE_ID but got the same error. Anything wrong?
Thanks
Upvotes: 2
Views: 14423
Reputation: 11852
Yes. /links
is read only. To create a link, you need to POST to /USER_ID/feed
.
https://developers.facebook.com/docs/reference/api/user/#links
Upvotes: 1