Facebook Api 视频源问题,缺少源密钥

Facebook Api issue with the video source, missing source key

你好,我正在使用 facebook php sdk 来提取 facebook page 视频媒体,我这样做是这样的:

$response= $facebook->api("/" . MYPAGENAME . "/feed?

fields=location&locale=en_GB&

fields=type,message,id,story,link,created_time,attachments,source,name,picture,object_id,place&limit=20");

现在在 $response 中,我通过 facebook 响应在 src 节点 return 中获取了 image src,但是缺少 source 键,响应如下所示:

[data] => Array
(
    [0] => Array
        (
            [type] => video
            [message] => msg something.
            [id] => 123_45
            [link] => https://pageLink/videos/123/
            [created_time] => 2018-01-17T18:23:14+0000
            [attachments] => Array
                (
                    [data] => Array
                        (
                            [0] => Array
                                (
                                    [media] => Array
                                        (
                                            [image] => Array
                                                (
                                                    [height] => 720
                                                    [src] => https://scontent.xx.fbcdn.net/v/t15.0-10/s720x720/3232_123_66666_n.jpg?_nc_cat=0&oh=6dbab817f240396da&oe=5C08F2
                                                    [width] => 576
                                                )

                                        )

                                    [target] => Array
                                        (
                                            [id] => 123
                                            [url] => https://pageLink/videos/123/
                                        )

                                    [type] => video_inline
                                    [url] => https://pageLink/videos/123/
                                )

                        )

                )

            [picture] => https://scontent.xx.fbcdn.net/v/t15.0-10/s720x720/3232_123_66666_n.jpg?_nc_cat=0&oh=442dbab817f240396da&oe=808F2
            [object_id] => 123
        )

)

您可以在 data->0->attachments->data->0->media 处看到,没有任何 source 类型的视频密钥存在,我无法通过它获得视频访问权限 link。

怎么找回丢失的source请帮帮我

我得到了答案,Facebook 提要已停止发送 source 视频,因为 30 July 2018 通过它的官方开发者网站 -

自 2018 年 4 月 30 日起,/page/feed/page/postssource 字段将不再返回主页拥有的视频,除非用户制作该请求在拥有页面上有一个角色。

`https://developers.facebook.com/docs/graph-api/reference/v3.1/page/feed#readperms