This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 1st, 2013  |  syntax: None  |  size: 0.27 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. https://www.facebook.com/photo.php?v=[ID]
  2.        
  3. https://www.facebook.com/photo.php?v=[ID]&type=2&theater
  4.        
  5. $url = 'https://www.facebook.com/photo.php?v=[ID]&type=2&theater';
  6. parse_str( parse_url( $url, PHP_URL_QUERY ), $params );
  7. // $params['v'] will hold the [ID] you need.
clone this paste RAW Paste Data