<?php $fb_id = '36922302396'; $url = 'https://graph.facebook.com/' . urlencode($fb_id);
Help me out with this
5
<?php
$fb_id = '36922302396';
$url = 'https://graph.facebook.com/' . urlencode($fb_id);
$result = json_decode( file_get_contents($url) );
printf("%s %s %s", $result->likes, $result->name, $result->link);
?>
This code gives me a result 13480889 Nokia https://www.facebook.com/nokia
where 13480889 is total likes, Nokia is the name of the page and https://www.facebook.com/nokia is the url of the page.
I wish to know if you can help me with:
1. How can i use the html tag < a target = "_blank" > to convert the link into hyperlink so that I can have something like "Click here to visit"!
2. How can monitor performance of 25+ fb_id on an hourly basis with all url underneath each other.
3. Should be displayed in a formatted order with sorted order (descending) on likes.
$fb_id = '36922302396';
$url = 'https://graph.facebook.com/' . urlencode($fb_id);
$result = json_decode( file_get_contents($url) );
printf("%s %s %s", $result->likes, $result->name, $result->link);
?>
This code gives me a result 13480889 Nokia https://www.facebook.com/nokia
where 13480889 is total likes, Nokia is the name of the page and https://www.facebook.com/nokia is the url of the page.
I wish to know if you can help me with:
1. How can i use the html tag < a target = "_blank" > to convert the link into hyperlink so that I can have something like "Click here to visit"!
2. How can monitor performance of 25+ fb_id on an hourly basis with all url underneath each other.
3. Should be displayed in a formatted order with sorted order (descending) on likes.
- phpg
- [1] reply
- Syssolution
- phpg
- [1] reply
- Syssolution
Next Topics on Trending Feed
-
5