Search code examples
apifacebook-graph-apihyperlinkposting

Posting to /PROFILE_ID/links only accepts link and message parameters


According to the documentation the links endpoint takes picture, name, and description as parameters. From https://developers.facebook.com/docs/reference/api/ under the Publishing section

Method                  Description                         Arguments

/PROFILE_ID/links   Publish a link on the given profile     link, message, picture, name, caption, description

However when I try these parameters are ignored. Python example below.

res = requests.post("https://graph.facebook.com/me/links", 
                    data = {'access_token':t.auth_payload,
                            'message':'testing',
                            'link':'http://percolate.com',
                            'picture':'http://i.zdnet.com/blogs/facebook_news_feed.png',
                            'caption':'this is a caption', 
                            'description':'this is a description', 
                            'name':'this is a name'})

Which results in:

This is the result


Solution

  • Following up on this issue. The links endpoint becomes more and more useless while the /feed endpoint finally has the features I've needed. /feed used to lose the share action when posting a link. That has since been fixed.

    If you have issues with the links endpoint. Switch to /feed and see if it suites your needs.