tag facebook friends python sdk GraphApi in put_photo

后端 未结 1 388
无人及你
无人及你 2021-01-16 23:38

I would to post pictures and tag with frieds.

graph = facebook.GraphAPI(self.cfg[\'access_token\'])
tags = [{\"tag_uid\": \"1234567890\", \"x\": 0, \"y\": 0}         


        
相关标签:
1条回答
  • 2021-01-16 23:58

    error solved with

    tags = [{"tag_uid": "1234567890", "x": 0, "y": 0}]
    graph.put_photo(image=open(str(file), 'rb'), message='Pictures test', **{'tags[0]': tags})
    

    but tags NOT appear on the facebook wall

    0 讨论(0)
提交回复
热议问题