你好,我正在使用facebook php sdk提取facebook page
视频媒体,我这样做是:
$ response = $ facebook-> api(“ /”。MYPAGENAME。“ / feed?
fields = location&locale = zh_CN&
fields =类型,消息,id,故事,链接,创建时间,附件,源,名称,图片,object_id,place&limit = 20“);
现在在$response
中,我在image src
节点中收到src
,由facebook响应返回,但缺少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
键。
我如何才能找到丢失的source
,请帮帮我。
答案 0 :(得分:1)
I got the answer facebook feed has stopped to send source
for a video since 30 July 2018
Through it's official developer site-
As of April 30, 2018, the source
field for /page/feed
and /page/posts
will no longer be returned for Page-owned videos unless the User making the request has a role on the owning Page.
` https://developers.facebook.com/docs/graph-api/reference/v3.1/page/feed#readperms