Is there a regex to match faebook url that have photos and/or videos? From what I can see such urls vary considerably. For example:
https://www.facebook.com/photo.php?v=827947030561502
https://www.facebook.com/idfonline/photos/a.250335824989295.62131.125249070831305/827806643908874/?type=1
(?:https?:\/\/)?(?:www\.)?facebook\.com\/(?:(?:\w\.)*#!\/)?(?:pages\/)?(?:[\w\-\.]*\/)*([\w\-\.]*)
https://www.facebook.com/hnbot/posts/703129179742366
This regex handles almost all facebook urls:
"((http:\/\/(www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\/video\.php.*|www\.facebook\.com\/.*\/posts\/.*|fb\.me\/.*|www\.facebook\.com\/.*\/photos\/.*))|(https:\/\/(www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\/video\.php.*|www\.facebook\.com\/.*\/posts\/.*|fb\.me\/.*|www\.facebook\.com\/.*\/photos\/.*)))"
It just doesnt handle something like https://www.facebook.com/idfonline/photos/a.250335824989295.62131.125249070831305/827806643908874/?type=1