facebook-fql

Run Facebook FQL Online

痞子三分冷 提交于 2019-12-03 15:51:57
问题 Where can I run FQL queries online in my web browser? 回答1: Here's the Facebook's official page with developer tools. There used to be an FQL console there, but it's no longer available. You can use the tools there to test other FB API though. Edit: For an actual FQL test console, you can take a look at this. It's not online like you wanted, but it's the next best thing that I could find when I went looking. 回答2: Where can I run FQL queries online in my web browser? In Facebook Developers

Facebook post impressions are null in FQL stream query

╄→гoц情女王★ 提交于 2019-12-03 14:52:26
According to the FQL Stream documentation the following query is supposed to return impression counts when run by an authenticated page owner, yet it never does. We have the page owner authenticating directly in the graph api explorer with extended permissions (read_stream, read_insights), but the impression counts are always null. Is anyone able to get this working? SELECT post_id, actor_id, message, impressions FROM stream WHERE actor_id = {owned_page} and source_id = {owned_page} Sahil Mittal I think its missing in the documentation, but you should make this call using the page access token

Facebook invites - who's invited whom

限于喜欢 提交于 2019-12-03 14:46:23
问题 I have an event on Facebook, generally it's shared to around 400 people and then people share further. How can I track which user shares the most? I have seen answers for apps but I can't see the URL modifier which allows me to see who's invited whom to the event. On the main Facebook page, if you hover over someones name it tells you who invited them so Facebook must keep a record of this. 回答1: What about using FQL? This query will get you the list of inviters for each invited user: SELECT

Query optimization and API throttling

▼魔方 西西 提交于 2019-12-03 14:37:51
问题 We are tracking Facebook Page and Post metrics for a number of clients, and we have some questions regarding high CPU intensity and too many calls for Post/comments - according to what is being reported by the developer insights console (Insights -> Developer -> Activity & Errors). The documentation is somewhat unclear on the limits and restrictions for the Graph API, and we'd simply like to make sure we have the correct understanding of what resources we have available. We are working on

How to access FB Page's new metric “are talking about this”? FQL? Graph?

守給你的承諾、 提交于 2019-12-03 09:55:57
FB makes this EdgeRank metric Public (shown on every page) - now how to access it to collect stats? I asked the Facebook team about this a couple of weeks ago; it seems it was overlooked at the time and they would look into it. I just checked out the Graph API today and it appears to be in there now! Here is a quick way to request the data from the Graph API and have it return a JSON formatted result set: If you want just the count of talking about you can use this format: https://graph.facebook.com/[PageID or Page Name]?fields=talking_about_count Examples: https://graph.facebook.com

Facebook #Hashtag: How to retrive feed by Hastags?

江枫思渺然 提交于 2019-12-03 08:59:15
As we can get feeds of specific user or fan page, I wanted to know that how can I get feeds from specific Hashtag like in twitter by fql or Graph API ? I am using Facebook SDK 3.5.2 Thanks. As far as I can tell, searching specific posts by hashtags is currently unavailable. You can still find posts regarding a #hashtag querying a user's stream for a specific message: SELECT message FROM stream WHERE (source_id IN (SELECT uid2 FROM friend WHERE uid1 = me()) OR source_id=me() ) AND strpos(lower(message),lower('#hashtag')) >=0 来源: https://stackoverflow.com/questions/17358002/facebook-hashtag-how

New FQL Multiquery in Graph API Javascript Example?

怎甘沉沦 提交于 2019-12-03 08:33:06
Anyone had luck with doing multiquery through javascript API or ajax? I have successfully done this, although I had a bit of trouble at first with the documentation only having a php example. Just make sure you are attaching the queries json as the 2nd parameter in the api call rather than as a query string like in the php sample. That is: FB.api('/fql', {q:{"query1":"SELECT uid, rsvp_status FROM event_member WHERE eid=12345678","query2":"SELECT name, url, pic FROM profile WHERE id IN (SELECT uid FROM #query1)"}}, function(response) { // handle response }); 来源: https://stackoverflow.com

how to write an fql query to list friends in a particular location

时光总嘲笑我的痴心妄想 提交于 2019-12-03 08:19:13
I can't find anywhere an fql query to list my facebook friends according to a location I that I specify.I am trying to implement this fql query in android.Someone please help me. The FQL you are looking for will be select name, current_location from user where uid in (select uid2 from friend where uid1 = me()) and current_location.country = "India" and current_location.state ="Delhi" The above FQL filters out the friends of the user and returns list of user's friends with current_location as Delhi, India. You can further filter the list based on other attributes of current_location like city ,

How can I optimize my FQL to avoid Facebook timeouts?

馋奶兔 提交于 2019-12-03 06:53:06
Let's take a simple FQL query to get all links shared by a user's friends since yesterday for example: SELECT link_id, title, url, owner, created_time FROM link WHERE created_time > strtotime('yesterday') AND owner IN ( SELECT uid2 FROM friend WHERE uid1 = me() ) LIMIT 100 If a user has 50 friends, this will execute perfectly. But if a user has hundreds of friends, more often than not Facebook returns an error. Options: Limit the friend select query to 50 -- Sure, that will work, but it will show the same friends every time. Unless you want an Ivy League-only feed, this isn't very helpful.

Facebook - obtain location /places ID via location name

你说的曾经没有我的故事 提交于 2019-12-03 05:57:19
问题 I'm able to return a location's details by sending a query via the graph api with the location's ID, however I'm looking to achieve the reverse - effectively find location id by sending a request containing the location name (city, state etc). Is this possible? 回答1: This is possible under a few different approaches. You can either search using long / lat positions and put the place name into the query. This search will search places only. Do the following https://graph.facebook.com/search?q