facebook-fql

FQL Your statement is not indexable, but fine in console

烂漫一生 提交于 2019-12-11 10:44:05
问题 I'm using this query for FQL: SELECT pid, object_id, caption, like_info, comment_info, src, src_small, src_big, images FROM photo WHERE album_object_id="10151088306597851" ORDER BY like_info DESC which works fine in the console, check: https://developers.facebook.com/tools/explorer?method=GET&path=fql%3Fq%3DSELECT%20pid%2C%20object_id%2C%20caption%2C%20like_info%2C%20comment_info%2C%20src%2C%20src_small%2C%20src_big%2C%20images%20FROM%20photo%20WHERE%20album_object_id%3D%2210151088306597851

Facebook FQL photo_tag table not returning all appropriate photos

浪子不回头ぞ 提交于 2019-12-11 09:21:46
问题 I'm trying to run a query that returns all the latest tags that happened on my friends photos. Here is my query: String query = "SELECT subject, created FROM photo_tag WHERE subject IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY created DESC LIMIT 200"; This is supposed to return the latest 200 tags performed. Unfortunately, after looking at my news feed, here are the first few results I get (formatted by SUBJECT at CREATED_TIME) 522274044 at Sun Sep 25 20:01:03 AEST 2011 522274044

FQL Multiquery Returned Info

白昼怎懂夜的黑 提交于 2019-12-11 09:05:58
问题 I'm trying to use an FQL Multiquery to obtain my most recent Facebook question and options with one query using an http request. So far the query I tried to use is: SELECT name, votes FROM question_option WHERE question_id IN (SELECT id, question FROM question WHERE owner = me() ORDER BY created_time DESC LIMIT 1) Unfortunately this only returns the name and votes from the outer query and not the question text from the inner one. Is there a way to retrieve all 3 without making 2 queries? 回答1:

Get a List of All Friends on Facebook Using JS SDK and FQL

你离开我真会死。 提交于 2019-12-11 07:44:48
问题 I am trying to get a list of all friends of the current user using my Facebook application: Here is my code for your reference: var meID = <?php echo $data['user_id']; ?>; var queryOnFriends = "SELECT uid, name, online_presence, status FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = " + meID + ")"; var queryOnFriends1 = "SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=" + meID + ")"; var queryOnFriends2 = "SELECT uid2 FROM friend WHERE uid1 = me()";

Facebook timeline “pinned” post how to get via graph API

半世苍凉 提交于 2019-12-11 07:36:08
问题 The graph or FQL (which has the same data) do not list the relevant property in any of the tables that I've checked. The order of posts in the "stream" does not change with items being pinned . To clarify just in case, I am asking about the new timeline feature where you can click "edit" on a post and then select "Pin to top" . I have to be able to find the pinned post via API or FQL or RSS or any other reasonably reliable way, and I don't need to make a post pinned - just to query for it.

Facebook: FQL get all checkins me() is tagged in

邮差的信 提交于 2019-12-11 07:35:27
问题 I want to get all the checkins a user is tagged in (note: I am not interested in his own checkins). I tried the following, which is a little illogical and of course does not work, but you'll get what I am trying to do: SELECT message FROM checkin WHERE tagged_uids IN (SELECT uid FROM user WHERE uid = me()) Any ideas? 回答1: You're thinking of IN backwards. The query you're looking for is: SELECT message FROM checkin WHERE me() IN tagged_uids However , tagged_uids is not indexable, so you'll

How to get Facebook Share Count and Comment Count on Version 2.7

半城伤御伤魂 提交于 2019-12-11 06:19:59
问题 What is my Issued? Im not getting result/output, using my php code? (first issued) How to input my Access Token on my php code? (Second Issued) When i enter this URL from browser: https://graph.facebook.com/v2.1/?id=http://google.com Im getting result JSON: { "share": { "comment_count": 0, "share_count": 44100483 }, "og_object": { "id": "1485280808235339", "description": "Honoring our veterans #GoogleDoodle", "title": "Google", "type": "website", "updated_time": "2017-11-11T21:40:44+0000" },

FQL Photo Query

别来无恙 提交于 2019-12-11 04:53:56
问题 I am attempting to query the Photo table through FQL using this query: SELECT owner FROM photo WHERE pid="XXXX" For some reason, no matter what pid I choose, I get an empty set response: Facebook responded with HTTP status code 200 and response body: [] I am using RestFB. 回答1: Do you have permissions to access the users photos? user_photos and/or friends_photos Provides access to the photos the user has uploaded, and photos the user has been tagged in. https://developers.facebook.com/docs

Retrieve all comments with FQL by application ID

[亡魂溺海] 提交于 2019-12-11 04:39:33
问题 We use the facebook comment plugin to have comments on our site. To moderate those, we use this tool: https://developers.facebook.com/tools/comments However, we want to build our own tool to moderate those comments, and integrate it to our existing software. I can't find a proper way of doing this. the only way I found out now after hours of research is this FQL query: select post_fbid, fromid, object_id, text, time from comment where object_id in (select comments_fbid from link_stat where

New Facebook API fetching newsfeed and its comments

China☆狼群 提交于 2019-12-11 04:33:35
问题 is there a way to get newsfeed and its comments with the new changes facebook making on july, 2013 - https://developers.facebook.com/roadmap/ What im trying to do? i want to fetch latest newsfeed with comments (if any comments on it) with one api call , even if its group api call. Old Way of doing it: 1) fetching from stream table with comments field (comment field is deprecated now) 2) fetching from graph with comments field (which is removed also now) Quick Links new changes with quick doc: