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

后端 未结 2 1650
孤城傲影
孤城傲影 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/

提交回复
热议问题