facebook-fql

How can I get list of Facebook places inside bounds

六眼飞鱼酱① 提交于 2019-12-23 04:25:17
问题 I need to receive list of facebook places inside of given bounds (defined by NE and WS coordinates) I call the following fql.query from javascript application: FB.api({ method: "fql.query", query: "SELECT name,description,geometry,latitude,longitude,checkin_count,display_subtext FROM place WHERE latitude < '" + bounds.getNorthEast().lat() + "' and longitude < '" + bounds.getNorthEast().lng() + "' and latitude > '" + bounds.getSouthWest().lat() + "' and longitude > '" + bounds.getSouthWest()

Is FQL buggy? having trouble retrieving the entire social stream on my wall

廉价感情. 提交于 2019-12-23 03:50:52
问题 I try to use FQL to return all message on my social stream using this statement: SELECT created_time, message FROM stream WHERE source_id = [USER'S FB ID] limit 10000 It traces all the way back to the very 1st post on my wall but some how some of the posts in the middle are missing (compare with what I can retrieve by clicking the 'Older post..' link on the bottom of my profile page ) and it doesn't seem to have a particular pattern. Any idea? 回答1: FQL has many many problems like this. This

Facebook API - comment count via FQL

丶灬走出姿态 提交于 2019-12-23 02:52:40
问题 I'm trying to display Facebook comment counts in <div id="comments"> It has to be via Facebook Query Language (FQL). This post is almost exactly what I need: Facebook Graph Api url comments and shares count doesn't work anymore But how do I display the comment_count (from the query) into a div ? i.e. how do I process that data? So far, I have: $(function(){ $.ajax({ url: 'https://graph.facebook.com/fql?q=SELECT%20comment_count%20FROM%20link_stat%20WHERE%20url=%27e', dataType: 'jsonp', success

FQL NOT IN Equivalent operator like <> , EXCEPT, !=

喜夏-厌秋 提交于 2019-12-23 02:16:30
问题 I'm trying to develop this code: $users = $facebook->api(array( 'method' => 'fql.query', 'query' => "SELECT uid, last_name, pic_big" + " FROM user WHERE uid IN (" + " SELECT uid" + " FROM page_fan" + " WHERE page_id='411133928921438'" + " AND uid IN (" + " SELECT uid2 FROM friend WHERE uid1 = me()" + " )" + ")" )); The idea is that i don't want to use the operator IN but NOT IN, but FQL doesn't support operators like NOT IN, EXCEPT... How can i do it with FQL?... 回答1: There is no NOT IN

Cannot get page like for some users

流过昼夜 提交于 2019-12-22 11:22:06
问题 I've developed a PHP app which just need to get if the user has liked a certain page. I login the user this way: $this->_facebook = new Facebook(array( 'appId' => "123", 'secret' => "346", )); $this->_facebookUser = $this->_facebook->getUser(); $this->_facebook->api('/me'); and then $checkIfUserLikePage = $this->_facebook->api(array( "method" => "fql.query", "query" => "select uid from page_fan where uid=me() and page_id=" . $pageid, )); This mostly works but for some users does not, it

Facebook : Get List of Online Friends Using Graph api

萝らか妹 提交于 2019-12-22 11:18:40
问题 I want to Get list of users online without Facebook SDK.My fql Query is as below $fql = "SELECT uid, name, pic_square, online_presence FROM user WHERE online_presence IN ('active', 'idle') AND uid IN ( SELECT uid2 FROM friend WHERE uid1 = $user )"; And my graph URl is https://graph.facebook.com/fql?q=SELECT uid, name, pic_square, online_presence FROM user WHERE online_presence IN ('active', 'idle') AND uid IN (SELECT uid2 FROM friend WHERE uid1 = 1234)&access_token=xxxxxxtokenxxxxx&method=GET

How to retrieve ALL Facebook photos a person is tagged in

左心房为你撑大大i 提交于 2019-12-22 10:55:36
问题 I know you can append limit and offset values to the graph.facebook.com/id/photos API call to paginate through photos. But large limits don't seem to work well, photos end up missing. I read here that limit=0 gives you all photos, but again photos will be missing. So what's the biggest limit you can use reliably? What's the proper way to efficiently retrieve ALL photos? Is there documentation on the limits of limit? 回答1: Here's my experience with the Facebook API... If you set a limit, you

Facebook ID integers being returned oddly

北慕城南 提交于 2019-12-22 10:48:57
问题 I'm making FQL calls using the following url and then making a curl call. $url = 'https://api.facebook.com/method/fql.query?access_token='.$access_token.'&query='.rawurlencode($query).'&format=JSON'; and I then pass the returned data through a json_decode call I've got this query: SELECT name,page_id,page_url FROM page WHERE page_id IN (SELECT page_id FROM page_admin WHERE uid= $uid ) which returns a list of the names and pages for which the specified UID is an administrator. On some PHP

FQL event pic_cover returns null

懵懂的女人 提交于 2019-12-22 08:52:56
问题 I am trying to fetch the cover picture for a public event on Facebook, but the pic_cover field returns null. Here is the event: https://www.facebook.com/events/545127275518406/ Here is my FQL query: SELECT pic_cover FROM event WHERE eid=545127275518406 That query returns: { "data": [ { "pic_cover": null } ] } Another public event (https://www.facebook.com/events/133752506800219/) using the same query (with substituted eid ) returns: { "data": [ { "pic_cover": { "cover_id": 431180503630072,

FB Graph / FQL: Current_location of friends is sometimes reading Null when FB page shows a location

≡放荡痞女 提交于 2019-12-22 05:58:19
问题 I am attempting to pull the current location of all of a user's friends on facebook, and am running into a curious problem wherein some of those friends are reading out NULL when I can see on their actual Facebook pages that it says "Lives in , ." The difficult part of this error is that it only happens on probably ~30% of cases. On the remaining cases, it pulls all of the correct information, which tells me that the permissions are probably set up correctly. To be specific, the FQL code I am