Facebook Tips Box data thorugh php sdk

My question is: The data displayed in the Facebook recommendation block, I need this data through FQL or php-sdk.

Because Facebook Recommendations Box gives me a random number of recommended URLs and I need to sort it.

For example:
if I give one url (www.example.com) to the Facebook Recommendation Box, then it will show me the most recommended pages (URLs) of the site, but it will be taken into account randomly. I need this data with the most recommended URL. I mean sorting.

www.example.com/page1.html(2 203 people recommend this.)

www.example.com/page2.html(795 people recommend this.)

www.example.com/page3.html(1 203 people recommend this.)

Also this plugin gives us a field and borders, etc. I just need a url and a drawing. So is this possible through FQL or php-sdk?

Please answer if anyone knows, because it is most important for me to get the data.

Waiting for an answer and thanks in advance.

-Niko

+3
source share
1 answer

You can use fql query to get data. The fql query will look like this:

SELECT url, share_count, like_count, comment_count, total_count
FROM link_stat WHERE url="www.example.com/page1.html"

and you can get the data at the URL encoding the request and send it to

https://api.facebook.com/method/fql.query?format=xml&query="SELECT url, share_count,..."

Now you get

<share_count>1</share_count>
<like_count>3</like_count>
<comment_count>4</comment_count>
<total_count>8</total_count>

you can now store the values ​​for each url in the array and then sort it.

For more information on statistics, check link.

+1
source

All Articles