facebook-fql

Retrieve group events with Facebook Graph API.

I'm a little confused trying to adapt to the new facebook Graph API. Whereas before I would have used events.get, I'm not entirely sure what to use now! I can't seem to get a list of a group's events through fql, nor through the Graph API itself. Any pointers? Should I keep using REST? ...

From FQL we want to get users current location in php

I want to get my friends which belongs to my city from facebook and for this i use current_location.city. But its not working... please help me. Thanks ...

Facebook emails always return null through FQL and RestFB

Hello stackers, I'm trying to convert friend pages into fan pages (most businesses have created friend pages by mistake) and am trying to email everyone on a friend list about the move. I've tried FQL "SELECT email FROM user WHERE uid=xxxx" Creating groups (not good for 5000 friend pages) Restfb: Connection myFriends = facebookClien...

FQL: Facebook application php

Hello I have implemented the following $fql = "SELECT uid2 FROM friend WHERE uid1=" . $uid; $param = array( 'method' => 'fql.query', 'query' => $fql, 'callback' => '' ); $fqlResult = $facebook->api($param); Now I need to fetch elements from $fqlResult. How should I do this? ...

fql result count

how to find fql result count? ...

FQL or Facebook API: Get only my events created

Guys.. i have this query: select eid from event where creator = 100000956216009 Return this error: error: 604 Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://wiki.developers.facebook.com/index.php/FQL_Tables How i can get all My Creat...

Is there a way to get photo tags and new friendship type events by querying the FQL stream table?

When you look at your stream on the Facebook website, you see events such as "FriendX was tagged in an album", "FriendY is attending EventZ", and "FriendK and FriendL are now friends". I've tried various "vague" queries on the stream table, and so far I have been unable to get these types of events. Is this possible, or do I need to quer...

Father's day coming up! - Can I get the profile of a Facebook user's father?

I'd like to get the Facebook profile ID of a Facebook user's father. Basically I want to display a picture of the user's father and say 'how about buying an X for Dad'. Is this possible with the graph (or REST) API ? Edit: It looks like this needs to be an FQL query and can't be done directly with the other APIs. I'm still trying to f...

Handling big user IDs returned by FQL in PHP

I'm using FQL to retrieve a list of users from Facebook. For consistency I get the result as JSON. This causes a problem - since the returned JSON encodes the user IDs as numbers, json_decode() converts these numbers to floating point values, because some are too big to fit in an int; of course, I need these IDs as strings. Since json_...

Get user email using facebook toolkit

Hi! I try to get user's emails, I got extemded permissions, this is my code: string email_address = ""; var response = MainForm.stFacebookService.Api.Fql.Query(String.Format("SELECT email FROM user WHERE uid = {0}", "1495548076")); XDocument xml = XDocument.Parse(response); XNamespace fbns = XName...

Graph API - Get events by owner/creator

Is there a way with the Facebook Graph API to get a list of all events created by a single profile? Our client creates a bunch of events and we want to pull a list of them all. I said that they would just have to make sure they set themselves to be attending the event, because then I can easily pull the list of events that profileId is a...

Get links that friends have "liked" on facebook

I was wondering how to build a FQL query where i could receive links/urls of my app that an user's friends have liked. I got the link table which looks good but there i need an object id, which i dunno how to retrieve for my urls. ...

How to query the like count of a facebook object such as a album or photo via fql?

Hi, Here is a tricky question, how do you get the like count of a facebook object such as an album or a photo? I know that facebook has a fql table called link_stat that allow you to get the like count for an external url, but it does not seem to work if the object is within facebook. If you access the likes via the opengraph api on a pa...

make user attend event through sdk

I was wondering if it's possible to make a user attend an event through the sdk (probably fql). I've been looking at the wiki for FQL info as well as the graph api. But both look like they only support fetching info and not changing... Any suggestions? I would like to build this feature into an application.... ...

Get the ID of user that like my page.

Hello I would like to know if there is any API feature that can tell me which users liked my application page. I know that it is possible to check if a user is a fan of any given Page using page.isFan verification or to get the number of fans. But is it possible to get the fans' User ID? If so, is it possible to get that data ordered...

Problem while executing Facebook query

Hi , I am trying to run a FQL for the first time. This is the code I have included in my index.php file: <?php $query="SELECT message FROM status WHERE uid = 544337058";echo $query; ?> <?php include_once ('facebook.php'); $api_key = 'XXXXXXXXXXXXXXX'; $secret = 'XXXXXXXXXXXXXXXXX'; global $facebook; ...

facebook api - fql - exact difference between modified and modified_major

Hi there. I have found the Facebook API's very limited. Here is what I'm looking at. It is so vague it is ridiculous. Maybe they want to keep it that way so they can change it at any time? Anyywayy, I'm wondering specifically whether comment additions to albums or album photos are included in modified or modified_major. Is modified_majo...

Facebook: get all the likes associated with a status update

This seems obvious, but I can't find a way to do it. Using stream.get will get all the statuses for a person, but under "likes" for that status, there are only 4 likes listed (when the post in question has 25 likes). So then I took a look at using FQL -- querying the "stream" gets the same four likes, nothing beyond that. I had high ho...

Error accessing Facebook API

Since today my app throws this error: Thanks for helping! Warning: fopen() [function.fopen]: php_network_getaddresses: getaddrinfo failed: Temporärer Fehler bei der Namensauflösung in /var/www/modules/facebook/classes/facebookapi_php5_restlib.php on line 3663 Warning: fopen(http://api.facebook.com/restserver.php?method=facebook.fql.qu...

Query number of users that like a page in facebook?

If I put a facebook like button on a webpage, can I use FQL to query the number of users that 'liked' the page? ...