在Facebook外面的Facebook粉丝页面上发表评论和喜欢新闻

时间:2012-02-28 00:38:15

标签: php facebook web

我用php(没有sdk)检索了我的墙上的Feed,我在下面得到了这个。我可以通过我的网站而不是通过Facebook来获取新闻和评论吗?

蚂蚁之类的评论可能是不同的吗?

[0] => stdClass Object
                                (
                                    [name] => Comment
                                    [link] => http://www.facebook.com/143788389048247/posts/143799919047094
                                )

                            [1] => stdClass Object
                                (
                                    [name] => Like
                                    [link] => http://www.facebook.com/143788389048247/posts/143799919047094
                                )
stdClass Object
(
    [data] => Array
        (
            [0] => stdClass Object
                (
                    [id] => 143788389048247_143799919047094
                    [from] => stdClass Object
                        (
                            [name] => Dirtier than.
                            [category] => Cause
                            [id] => 143788389048247
                        )

                    [message] => The first quote of this page
"Dirtier than Ron Jeremy's Browser History"
                    [actions] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [name] => Comment
                                    [link] => http://www.facebook.com/143788389048247/posts/143799919047094
                                )

                            [1] => stdClass Object
                                (
                                    [name] => Like
                                    [link] => http://www.facebook.com/143788389048247/posts/143799919047094
                                )

                        )

                    [privacy] => stdClass Object
                        (
                            [description] => Public
                            [value] => EVERYONE
                        )

                    [type] => status
                    [created_time] => 2011-09-02T16:33:01+0000
                    [updated_time] => 2011-09-02T16:33:01+0000
                    [comments] => stdClass Object
                        (
                            [count] => 0
                        )

                    [is_published] => 1
                )

1 个答案:

答案 0 :(得分:2)

是的,你只需要在Facebook上发布喜欢或评论

检查此链接:

https://developers.facebook.com/docs/reference/api/post/