facebook-fql

How to get picture of user who has commented on my facebook post?

瘦欲@ 提交于 2019-12-13 05:08:55
问题 I have post_id of the status which user share by iOS app, Now with graph api, I'm getting comment info and like info: POST_ID?fields=likes.fields(pic_square,name),comments With above, I'm able to fetch most of the details, but not profile pic of user who commented on post. check details which I'm getting:- { "id": "POST_ID", "updated_time": "2014-03-25T07:07:14+0000", "likes": { "data": [ { "pic_square": "https://fbcdn-profile-a.akamaihd.net/static- ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif", "name

R: How to convert the output-list from a FQL-query into a data.frame?

我与影子孤独终老i 提交于 2019-12-13 04:44:08
问题 I wonder how to transform a list generated by a FQL-query into a structured data frame. I use Rfacebook to ask FQL-queries like: getFQL("SELECT name, friends_count, sex, languages FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()), token) This provides me with a list as output, which looks like: [[1]] [[1]]$name [1] "Peter Fuller" [[1]]$friend_count [1] 186 [[1]]$sex [1] "male" [[1]]$languages list() [[2]] [[2]]$name [1] "Max Tester" [[2]]$friend_count [1] NULL [[2]]$languages [

FQL get last 50 photos query returns error

妖精的绣舞 提交于 2019-12-13 04:13:33
问题 How can i get the last 50 photos uploaded by all my friends ? I try to run this query in FQL: SELECT pid, src FROM photo WHERE owner IN (SELECT uid1 FROM friend WHERE uid2=me()) OR pid IN ( SELECT pid FROM photo_tag WHERE subject in (SELECT uid1 FROM friend WHERE uid2=me()) ) ORDER BY created DESC LIMIT 50 OFFSET 0 I need to get last 50 photos from all my friends or that my friends where tagged in... when i run it in the API Explorer i get an error: { "error": "Request failed" } I know i have

How to extend expiry of a long-live token in facebook graph api

烈酒焚心 提交于 2019-12-13 03:34:35
问题 I am having a issue here, I have a long-live access token, I dont want this token to expire after 60 days, I Understand that to extend the life time of a long-live token we need to fire a query below using shot-live token.. GET /oauth/access_token? grant_type=fb_exchange_token& client_id={app-id}& client_secret={app-secret}& fb_exchange_token={short-lived-token} But short lived token expires in hours .. So i cant use the same short-live token again to request for extending life span of long

facebook graph api - missing fields

青春壹個敷衍的年華 提交于 2019-12-13 01:48:52
问题 I'm trying to make a facebook application which deals mostly with posts in facebook groups. So, when i access the feed from my app, some fields are missing. When i access the same post over facebook, those fields are visible. Eg: A photo uploaded by a user is not visible when accessed via graph. It hides the photo field. Later i found that whatever photos that specific user uploaded, I couldn't access it via graph api. Does anyone know the reason? Does it have something to do with permissions

Facebook API get friend albums not working for some friends

走远了吗. 提交于 2019-12-12 18:13:17
问题 I'm using the following FQL query 'select src,src_big from photo where aid in(select aid from album where owner=' + contactId + ' and type="profile")' But it works for about 50% of my friends, and the rest - it doesn't. Its not a permissions problem because the behavior persists per friend, if it works for a friend - it always works for him. Is this a Facebook thing, where a user can choose to prevent apps from getting his photos? (like what happens when some friends are missing from /me

iOS Facebook SDK searching for users with Graph search

自闭症网瘾萝莉.ら 提交于 2019-12-12 16:28:15
问题 I am new to Graph Search, and I want to search for a user with an email address. Is that possible? Right now, I only know how to search with their name, like this: https://graph.facebook.com/search?q=chandler+de+angelis&type=user&access_token={access_token} I have an email address, and I need to check if there is a Facebook account with the same email address. How can I accomplish this? 回答1: The answer to this is from Facebook themselves. In post at https://developers.facebook.com/bugs

Get latitude/longitude of friend's current_location using Graph FQL

一世执手 提交于 2019-12-12 08:10:39
问题 I'm trying to get the latitude/longitude of all of a user's friends using a single API call. I believe I need to write a multi-query FQL statement, but I can't get the syntax correct. I believe the two queries need to be something like the following: '"friends":"SELECT uid,current_location FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"' '"location":"SELECT location FROM page WHERE id IN (SELECT current_location_id FROM #friends)"'; My problem is that somehow I need to get

FB Realtime API not/inconsistently notifying for certain connections (music, movies, books, tv)

人走茶凉 提交于 2019-12-12 07:39:49
问题 I'm currently running into an issue with Facebook's realtime API. I wish to subscribe to a number of things on a users profile, including their "Likes" in the Music, Books, TV and Movies categories. I get the correct information when I query via FQL and the Graph, but Facebook is not pinging my notification endpoint when those entries change on a users profile. The subscription and verification are fine. Here is the active subscription from Facebook from my App: ["object"]=> string(4) "user"

Facebook FQL comment username = anonymous user

旧巷老猫 提交于 2019-12-12 05:38:57
问题 When quering the FQL comment table like this: SELECT post_fbid, fromid, username, time, text FROM comment WHERE post_id = id I am getting the results but username for every comment is "Anonymous User". Does anyone know why this is happening and has a solution maybe? Thanks 回答1: username The user name that a user entered when they posted a comment. In these cases, the fromid returned will be 0. Note that user names for valid users are not returned here. I honestly don't understand what this