I have a facebook link linke below:
https://www.facebook.com/[user]/videos/vb.xxxxxxxx3/[videoID]/?type=2&theater
How can I extract the VideoId
from the link ?
I have a facebook link linke below:
https://www.facebook.com/[user]/videos/vb.xxxxxxxx3/[videoID]/?type=2&theater
How can I extract the VideoId
from the link ?
You will get the video ID with the below code.
$url = "https://www.facebook.com/[user]/videos/vb.xxxxxxxx3/[videoID]/?type=2&theater";
$vid = end(explode('/',explode('/?',$url)[0]));