Graph API how get facebook page members/likes
With FB 2.6 API you can get total likes with fan_count field. http://graph.facebook.com/cocacola/?fields=fan_count&access_token={value}
With FB 2.6 API you can get total likes with fan_count field. http://graph.facebook.com/cocacola/?fields=fan_count&access_token={value}
You can do it via “graph.facebook.com/OBJECT_ID/sharedposts” connection: I figure it out this connection via metadata=1 parameter:
It is possible, in two different ways, as long as you have a fixed set of sub-pages you want to fetch comments from. If you have a large amount of sub-pages, or a variable amount, then you don’t have a good scalable solution – and many have been looking for one: Facebook fb:comments Graph API … Read more
If the URL is using https instead of http, you need to add the following line: parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) http.use_ssl = true Note the additional http.use_ssl = true. And the more appropriate code which would handle both http and https will be similar to the following one. url = URI.parse(domain) req … Read more
From http://developers.facebook.com/docs/reference/fql/stream : The stream table is limited to the last 30 days or 50 posts, whichever is greater
These attributes are specifically and intentionally not available via the API, for spam prevention reasons (maybe other reasons as well)…
json_decode() can convert large integers to strings, if you specify a flag in the function call: $array = json_decode($json, true, 512, JSON_BIGINT_AS_STRING)
I am Partner Engineer at Facebook so I thought I’d chime in here. The Facebook APIs will not give you the user ID of users who have liked a page or interest, this is to guard the privacy of those users.
At the current time the FQL schema would suggest that there is no way to get a collection of FANS for any given PAGE. I think they are hiding this information because they display the FANS on the page… One would think that at least the ADMIN would have privileges to see the list of … Read more
UPDATE: This solution is no longer valid. FQLs are deprecated since August 7th, 2016. https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=%22http://www.techlila.com%22 Also http://api.facebook.com/restserver.php?method=links.getStats&urls=http://www.techlila.com will show you all the data like ‘Share Count’, ‘Like Count’ and ‘Comment Count’ and total of all these. Change the URL (i.e. http://www.techlila.com) as per your need. This is the correct URL, I’m getting right results. EDIT … Read more