facebook-fql

Facebook API people search filtered by country

时间秒杀一切 提交于 2019-12-09 13:29:59
问题 I'm trying to search people using the Facebook API (Graph API or FQL, whichever works). Up to this point, it's working just fine but I can't get it to be filtered by country or language. I'm currently retrieving this URL: 'https://graph.facebook.com/search?q=' . somename . '&type=user&access_token=' . $access_token I have tried adding &locale=... but that didn't work either. 回答1: try this: http://graph.facebook.com/search?q=mccain%20chips&type=post&locale=en_US 回答2: I didn't find a way to

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

和自甴很熟 提交于 2019-12-09 07:14:15
问题 FB makes this EdgeRank metric Public (shown on every page) - now how to access it to collect stats? 回答1: 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

Setting Facebook comments web plugin

泄露秘密 提交于 2019-12-08 23:25:40
问题 The default sorting order of the facebook comments plugin is by social status . How do I set the default order to reverse chronological on my web page? I know there is an option on the top of the plugin. But not all users know about it and the sorting order is confusing. 回答1: Just guessing I added data-order-by="reverse_time" to the div provided by Facebook and it worked nicely. So, loading the pluging with the standard html5 code provided here: https://developers.facebook.com/docs/reference

How to check if someone shared my page's post? Using Facebook API

半城伤御伤魂 提交于 2019-12-08 19:53:32
I have the read_stream access from user, I want to award him some points if he shares one of my pages' post. Now I have Claim Point button so I can crawl his posts, and I want to check if he has shared my page's post (using Share link of Facebook, near Comment and Like ). I had an Idea, if someone shares others' post it appears as a link, so I tried to match the link with my page's link, but if its a Facebook link (or post like status, note) then url form below FQL returns null . Same happens with Graph API (link doesn't appear). select url,link_id,title from link where owner=me() It works

Use Facebook GraphAPI or FQL to get Facebook activity log

感情迁移 提交于 2019-12-08 13:20:51
问题 I can explore my activity log using browser (https://www.facebook.com/help/437430672945092) I wants to write a app to analyze my facebook data. Is there any way to get my activity log using GraphAPI or FQL? 回答1: This is possible, but not via a single request of query. It's neccessary to use a combination of both Graph API requests, as well as FQL queries. You'll need the appropriate Access Token Permissions to do this. All of your Posts: https://graph.facebook.com/me/posts?since=UNIX

fql.multiquery returning empty array

匆匆过客 提交于 2019-12-08 12:01:11
问题 I'm am trying to query all the photo albums of a page and get each albums cover photo. Below is the code I have that returns an empty result. I am able to make both the queries separately without the problem, so it is not a permissions issue. $album_fql = "SELECT aid, owner, name, object_id, cover_pid, cover_object_id FROM album WHERE owner = 'xxxxxxx'"; $albumpic_fql = "SELECT pid, src_small FROM photo WHERE pid IN (SELECT cover_pid FROM #query1)"; $album_param = array( 'method' => 'fql

I have 16,000 URLs, I need to get the facebook graph ID of each one

心已入冬 提交于 2019-12-08 10:25:10
问题 I have 16,000 URLs. each is a Facebook open graph object. I need to get the open graph data for each of the 16k URLs. The way I'm thinking about doing this is first finding the open graph object ID of each URL, and then in a nightly cron job, I would do a graph.facebook.com batch request for the details of each object. However the first step I am unsure of how to do. How do I get all the Object IDs of 16,000 URLs? (all at once). perhaps FQL? please help! 回答1: If your URL looks like this: http

FQL Query for facebook

白昼怎懂夜的黑 提交于 2019-12-08 08:09:44
问题 Iam getting all my friends as an array using $graph_url = "https://api.facebook.com/method/fql.query?access_token=" . $access_token . "&query=SELECT+uid,name,work.position.name+FROM+user+WHERE+uid+IN+ (SELECT+uid2+FROM+friend+WHERE+uid1+=+me())&format=json"; And I want to put a condition to fetch the friends whose work position's name is 'dev'.I had try with FQL like $graph_url = "https://api.facebook.com/method/fql.query?access_token=" . $access_token . "&query=SELECT+uid,name,work.position

get shared links on facebook newsfeed

怎甘沉沦 提交于 2019-12-08 07:34:09
问题 I want to retrieve all the links shared on my wall using graph/fql, is there a way to get these I am using fql query using friend list but that is not working, taking too long to respond. 回答1: In addition to genesis' post, you may want to look for links in messages as links posted directly as statuses on your wall do not have a 'link' field. You will have to extract the links yourself however which may require knowledge of regex or blind trust of solutions posted here. 回答2: <?php $json =

FQL for returning all album names and object id's of the albums for ALL friends of a user

心不动则不痛 提交于 2019-12-08 05:44:35
问题 looking for fql query to grab all albums of all friends, extra points for complete js example using FB.Data.query and jQuery to spit out results as they come in. thanks!! 回答1: You need the friends_photos permission and then use: Javascrip: $("#friends-albums").click(function() { FB.api( { method: 'fql.query', query: 'SELECT aid,owner,name FROM album WHERE owner IN (SELECT uid2 FROM friend WHERE uid1 = me()) LIMIT 25' }, function(resp) { $.each(resp, function(k,v) { console.log(v.name) }) } );