w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
   » Home » PAPST fans
Facebook new search API - how to get the list of fans?
Question 1 Facebook does not have a new search API. Facebook has a Graph Search which is not related to their current search API at graph.facebook.com/search?q= Question 2 It is possible to scrape the page given the right parameters for headers and cookies (which are only obtainable with an active user session to Facebook) For other users this wouldn't work, if it did I believe this would be a cross site request, which Facebook prevents with anti-csrf tokens. I'm not sure which section of the TOS or developer policy states it, but I'm pretty sure building an application out of it will get your application banned and/or your IPs from which you scrape blacklisted or even a cease and desist for unauthorized mass scraping.

Categories : Facebook

Can I fetch more than 100 fans from facebook page?
Refer the following link. Get Facebook Page Likes all at once in c# Since facebook prevents this list to be accessed to discourage selling fans data to 3rd party companies. As far as I know you can get a maximum of only 100 persons using this..Sorry

Categories : Facebook

How to track the users have became fans of my facebook page?
This can be done with FQL (Facebook Query Language) using the Facebook Graph API. What you're looking for is the likes attribute which can be obtained from the JSON returned by http://graph.facebook.com/yourusername. Ofcourse you will need to do further queries to obtain things like how many friends of a specific user liked your page. Probably something along the lines of SELECT ... FROM like WHERE object_id = yourpage and I would imagine you'd need to link that to the friend table with something like WHERE uid1 = friendid to get their friends.

Categories : Facebook

I want to cutomize the facebook buttons like "2201 Fans" into my website
Display no of fans on your site using facebook page id. <?php $page_id = 'yourfbpageid'; // your facebook page id $xml = @simplexml_load_file("http://api.facebook.com/restserver.php?method=facebook.fql.query&query=SELECT%20fan_count%20FROM%20page%20WHERE%20page_id=".$page_id."") or die ("a lot"); $fans = $xml->page->fan_count; ?> <li class="text white"><span></span><?php echo $fans.' Fans'; ?></li>

Categories : Facebook

add facebook fans count in a smarty template // Prestashop
So, Vekia from Prestashop forum help me, this is the best answer to my question : ( Note : this works when add it into the footer.tpl) go to the file: classes/controller/FrontController.php add somewhere in the class this function: public static function fbcount($idpage){ $ch = curl_init("http://graph.facebook.com/$idpage"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $raw = curl_exec($ch); curl_close($ch); $data = json_decode($raw); return $data->likes; } then in the footer.tpl file you can use this: {FrontController::fbcount('399888213399907')} where the 399888213399907 is id of your page enjoy!

Categories : Facebook

How to get facebook page fans country location info via API without access token?
It is possible with an access token: https://developers.facebook.com/docs/graph-api/reference/v2.1/insights - you shall use GET page-id/insights/page_fans_city

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.