How to retrieve post ID for a post i've just made via the Facebook API

后端 未结 2 1638
孤城傲影
孤城傲影 2020-12-22 07:12

i am using the following code to publish to a Page\'s feed connection

    $attachment = array(\'message\' => \'xxxxxxxxxxxxxxxxx\',
                  


        
相关标签:
2条回答
  • 2020-12-22 07:43

    The Post's id is stored in $result['id'].

    It's the return value of the call to feed; this is also the case for /links, /photos, etc.

    Ref: http://developers.facebook.com/docs/reference/php/facebook-api/

    0 讨论(0)
  • 2020-12-22 07:49

    Check the value in the $result variable, that should be the actual post_id value.

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