kevinkhan;10985504 wrote:I dont wanna use an api just a preg match function in php thanks
Er.. why?? Screen scraping the HTML source of a page is the worst way to get information from a 3rd party. What happens when Facebook's layout changes? Your pattern-based tool will probably break.
What's more, I'd be willing to bet that Facebook's ToS, AUP, or similar legal statement/document prohibits you from not using their designated APIs in order to get information from their site.
So not only is what you're after the worst way to do it, it's possibly also illegal. If you "dont wanna use an api", then don't include this functionality in your site.