facebook-fql

fql result count

时光总嘲笑我的痴心妄想 提交于 2019-11-29 15:17:50
how to find fql result count? FQL doesn't support a COUNT function. Get the results, and just enumerate them. See here: http://blogs.x2line.com/al/archive/2007/10/07/3287.aspx I think it's a decision taken by design. It would be potentially very expensive to allow COUNT over huge tables like Facebook ones. I've seen they have tables to store specific counts so you can query them already calculated. 来源: https://stackoverflow.com/questions/2841569/fql-result-count

Facebook Graph API Get All Events For Latitude and Longitude

风流意气都作罢 提交于 2019-11-29 12:57:57
I'm trying to get All public events for given location. Here is what I'm using now SELECT+name,+pic_cover,start_time,+end_time,+location,+description,venue++FROM+event+WHERE+eid++in(SELECT+eid+FROM+event_member+WHERE+uid+IN+(SELECT+page_id+FROM+place+WHERE+distance(latitude,+longitude,+"40.1811",+"44.5136")+<+50000+limit+0,15000))+ORDER+BY+start_time+desc+limit+0,1500 But there are huge count of events with that location which didn't returning with that FQL query. Is there any chance to get all events for given location or it may be by City ? I'm using Python , but if you have some example

Facebook friends email FQL

旧巷老猫 提交于 2019-11-29 12:47:26
I have this FQL: $femail = $facebook->api(array( 'method' => 'fql.query', 'locale' => 'en_US', 'query' => 'SELECT email FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1='.$user_id.') AND uid = '.$friend_id.' ORDER BY name ASC', )); Here is the print_r result: Array ( [0] => Array ( [email] => ) ) I want to get friend's email address, but this query results in empty email values. Does I miss something in query? Does it even possible to get friends email? I tested with my partner, she gave permission to the app to give out email address. In general, you CAN'T get the email address of

Facebook FQL find all events that take place at a certain venue

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 12:38:21
I am currently making an app that lists events in a city. I only want events that happen in certain venues to be included. Since the events are all created by many different promoters pages which change very often I thought the easiest way is to search for events whose venue matches my desired venue. How should I use FQL to query this or is it possible? I was thinking something along the lines of: SELECT eid,name,description FROM event WHERE venue.name='myVenue' but it wont work (I know the syntax is probably a bit off) If anybody has any idea how to write this query please help. Thank you so

facebook graph api..get friends of friends

别来无恙 提交于 2019-11-29 12:27:14
问题 I am using the FB graph api to get a list of my friends' friends using: https://graph.facebook.com/<id>/friends?access_token=<token> Now the weird thing is that this works for some of my friends and does not work for some others. Could somebody tell me why this is happening and a possible fix? In cases where it does not work, I get the following message: "Can't lookup all friends of YYYYYY. Can only lookup for the logged in user (XXXXX), or friends of the logged in user with the appropriate

How to get User id by username in Facebook Graph API v2.1

霸气de小男生 提交于 2019-11-29 11:34:33
we are developing a web app and were getting the user ids by using the username via FQL. Unfortunately, Graph API v2.1 does not support FQL anymore. I haven't found a way how to reference the username to find the user id in the documentation. Is there a solution? Or is that not possible with the Graph API. I know that I can query the user ID using the name, but with the username, it would be better in our scenario. This is intentional for privacy reasons. If you would be able to get the (real) User ID with the unique username, there would be no need to invent App Scoped ID at all. If you make

Create and Configure Facebook Apps via API

微笑、不失礼 提交于 2019-11-29 11:18:52
I'm looking for a solution to create and configure Facebook Apps via the Facebook APIs. It doens't matter if its Graph API / FQL or REST API but I couldn't find any way to do this. You didn't find because this is not possible. Facebook decided not to support app management and creation using the API, in order to avoid applications created or edited by bots. Only a few actions are possible using the API: Migration (like migrating to OAuth2, ...) Restriction (Geographical, age...) User ban (add/remove) Test User Creation/edition/deletion See http://developers.facebook.com/docs/reference/api

how can I get all comments from a url in facebook? [closed]

删除回忆录丶 提交于 2019-11-29 09:54:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I'm trying to get all the comments of a url that was added to facebook. is this possible? 回答1: It is possible to get all comments (from Comments social plugin) associated with URL by issuing next request to Graph

Hashtag search in Facebook API

[亡魂溺海] 提交于 2019-11-29 06:59:53
I am trying to find in Facebook API if they provide the HashTag search. I meant I search in Facebook Query language and searched in Facebook Tool Explorer. Any Idea ? Since April 30th and the introduction of Facebook api v2.0, public Post search is no longer available and will return : { "error": { "message": "(#11) Post search has been deprecated", "type": "OAuthException", "code": 11 } } According to Facebook changelog v1.0 will continue to work until April 30th, 2015. As the search endpoint is back in the v2 doc , there is hope that they will reconsider the deprecation. The search endpoint

get list of facebook users who are using specific application using FQL

喜你入骨 提交于 2019-11-29 02:18:26
I am trying to fetch following case using FQL If few users have authorized "Application A" then is it possible to know that currently how many users are using that "Application A" ( users those are not friends of each other) So far i tried following FQL , but following query gives only information of those users who are friends of each other and using the same application , but what about other users who are not friends ? SELECT uid, name, pic_square FROM user WHERE is_app_user=1 AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) Igy You can't get a listing of your application's users from