I would like to know how is it possible to retrieve a string from an external page.
For example: In a PHP website, the user sends a facebook id, ex: 1157251270
For facebook data you can use json_decode.
json_decode
For another sites try with webscraping, for example: here