Answer the question
In order to leave comments, you need to log in
video.search not working?
Gives out only video_, help here is the code?
function SearchVideo($q){
global $token;
$video_search = api('video.search?q='.urlencode($q).'&adult=1&search_own=0&count=50&extended=0&v=5.87&access_token='.$token);
for($i=0;$i<10;$i++){
$rand = rand(0,49);
$attach .= 'video'.$video_search['items'][$rand]['owner_id'].'_'.$video_search['items'][$rand]['id'].',';
}
return substr($attach, 0,iconv_strlen($attach)-1);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question