Facebook API: “Share” a post already posted on a page's wall?

后端 未结 3 778
夕颜
夕颜 2021-02-08 03:02

I can\'t seem to find an answer for this. Probably my Google-fu is letting me down.

Is there a way to use FB\'s Graph API (or any other way), in order to \"share\" a pag

3条回答
  •  死守一世寂寞
    2021-02-08 03:37

    Yes, you can share using the graph2 api. The way you do it is to use /feed edge and pass the post's url that you want to share as the link.

    POST /v2.2/{page-id}/feed HTTP/1.1
    Host: graph.facebook.com
    
    link=https://www.facebook.com/{page_id}/posts/{post_id}
    

    Permissions to the post you are sharing do apply.

    https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed

提交回复
热议问题