How to get video on the wall using facebook api

The user's Facebook user home page has common links from friends and pages, these links sometimes have links to YouTube. I need to get these links, I tried to read

https://graph.facebook.com/userID/ home ? access_token = access_token

or

https://graph.facebook.com/userID/ feed ? access_token = access_token

and when i use

https://graph.facebook.com/userID/ links ? access_token = access_token

I only got links that I shared, not my friends or pages, while I needed my friends and video pages.

my access token has many permissions, such as: friends_status friends_videos photo_upload read_stream share_item status_update user_status user_videos video_upload

but still i can't get general videos

what should I do?

+4
source share
2 answers

if you need friends video and above your requests does not work, then you can try this request

https://graph.facebook.com/USER_ID?fields=friends.fields(videos.fields(source,embed_html)) 

this will return the user to all friends from their video. Hope this helps if I understand your question correctly.

+1
source

You can use FQL to get a list of all the videos as described in this post .

 SELECT actor_id, created_time, likes, post_id, attachment FROM stream WHERE filter_key IN ( SELECT filter_key FROM stream_filter WHERE uid = me() AND (name = "Video") ) 

stream_filter contains filters for filtering message flow. It contains several filters, which include lists that the user has created, and some default filters, such as filters for photos and videos.

0
source

All Articles