Jump to content

help with effective


yolop

Recommended Posts

hello

i have a system that check diffrent pages how much likes they have on facebook

for example:

http://youlikeblank.com/like.php?id=9 this page have 515,562  likes on facebook

and this page http://youlikeblank.com/like.php?id=3759 have 134,422 likes on facebook

 

in my databace i have list of url that i want to check every url how much likes it have...and i want to print in the end of the function the most 10 pages that they have most of likes

so  i found url that help me...

 

http://www.facebook.com/plugins/like.php?href=http://youlikeblank.com/like.php?id=3759

what do you see in "red" that the url i want to check

and as you see this url print the number of like for this url

 

so every url from the list i do "fopen" and "fread" to thier url and found how much likes it have ....

 

the problem is that every  page'size it 7 KB

 

and if i have list of 20,000 page i want to check , that takes lot of Traffic for every check....and if the user of my site want to see what is the top 10 likes pages from my list they do this

 

i want to know if you have more affctive way please

thank

Link to comment
https://forums.phpfreaks.com/topic/205151-help-with-effective/
Share on other sites

At the moment your scraping, the good old brute force method.

 

To do it any other way you'd need to access the the site api. For facebook see here...

 

http://developers.facebook.com/

i dont know how to work with facebook developers

but wight know this is the most affctive way?

Link to comment
https://forums.phpfreaks.com/topic/205151-help-with-effective/#findComment-1073833
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.