Tag: PHP

  • Get number of likes of your/any Facebook page via PHP

    If you want to use somewhere the number of people who likes your fan page, here’s the way to do that: Create Create a new basic application from here. Just enter some data and you will receive AppID and Secret keys. Download Download the PHP library to work with Facebook API. git clone https://github.com/facebook/php-sdk.git Write…

  • Quick short URL PHP function

    function shortURL($long) { $short=file_get_contents(“http://is.gd/api.php?longurl=”.$long); return $short; } Usage: $short = shortURL(“http://veryveryveryverylongurl.tld/something/verylong.php”); echo $short;