简体   繁体   中英

Goodreads type of fb posts through facebook graph api

在此处输入图片说明

Here is the screenshot of the post goodreads publishes to user's feed.

The closest I have seen on the fb graph api is

/* make the API call */
FB.api(
    "/me/feed",
    "POST",
    {
        "message": "This is a test message"
    },
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);

But this only posts a message text. How do I get my fb app to post a similar post as the one like goodreads which contains an image, and a title and description among others.

Here's the documentation for using the dialogs to share open graph stories:

https://developers.facebook.com/docs/sharing/reference/share-dialog#open-graph

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM