facebook-fql

Facebook Graph to show Event Attendees

北城余情 提交于 2019-12-08 04:21:55
问题 I am looking to display the attendees for a given facebook event on a PHP page. Ideally it would be that graphical display with people's pictures displaying. I believe this could be done using the facebook graph API, but the following is giving me an error requiring signature: https://api.facebook.com/method/fql.query?query=SELECT uid FROM event_member WHERE eid = ... AND rsvp_status = 'attending' Also, how would I even get the eid? Can it simply be parsed off the end of an event page link?

Facebook query language - long query

送分小仙女□ 提交于 2019-12-08 04:00:38
问题 I need to run quite long query using FQL. The only way I found in facebook docs is passing it using GET method. Unfortunetely as far as I know, most web servers doesn't accept urls beyond some specified length. So the question is - what's the max url length facebook can handle? Is there any way to send the FQL query via POST so the limit can be avoided? 回答1: At the front end, Facebook servers run a LAMP (Linux, Apache, MySQL, and PHP) stack with Memcache (source: see here) With the Apache

How to check if someone shared my page's post? Using Facebook API

此生再无相见时 提交于 2019-12-08 03:12:02
问题 I have the read_stream access from user, I want to award him some points if he shares one of my pages' post. Now I have Claim Point button so I can crawl his posts, and I want to check if he has shared my page's post (using Share link of Facebook, near Comment and Like ). I had an Idea, if someone shares others' post it appears as a link, so I tried to match the link with my page's link, but if its a Facebook link (or post like status, note) then url form below FQL returns null . Same happens

How do I get the Facebook Server Time?

空扰寡人 提交于 2019-12-08 02:43:04
问题 I have created a facebook iframe app using Flash on the client and .net on the server. I am using fluorineFX to communicate between the two. I need to get the exact facebook server time from my server. This is for authenticating the user on my server so I don't want to get the time from the client and then pass it to the server. This is the only interaction I need with Facebook from my server, all other interaction is handled by the client using the old rest API. What is the best way to do

FQL query for finding public event

柔情痞子 提交于 2019-12-08 00:47:50
问题 I would like to execute an FQL query for retrieving all the public events in a specific area (using longitude,latitude and maximum distance or simply location name). Do you know if it's possible? Apparently, somebody is able to do it, somehow: http://elmcity.info/fb_events?location=tokyo 回答1: It is possible indeed to receive events using location based "search" To do so you'll need the longitude and latitude coordinates of the location you want to search and a access_token with user_events

How to write FQL to fetch news feeds

旧街凉风 提交于 2019-12-07 20:56:17
问题 I have to fetch all data which is on News Feeds (public wall). What query should I write ? I wrote "SELECT likes,message FROM stream WHERE source_id = %lld limit 50 " query but it is returning my wall value. I want to fetch all data which is on my wall as well as on public (News Feed). Thanks in advance 回答1: You need to use the filter_key to select the type of feed to use. The type you are after would probably be newsfeed , so the query could be something like this: SELECT post_id, actor_id,

Facebook Javascript, How to detect if user is a fan of my facebook page? While on my site?

馋奶兔 提交于 2019-12-07 17:23:25
问题 I have the following JS code. The code's purpose is to first get the users facebook id, and then using FQL check that id against my page ID and make sure the user is a fan. The problem I am running into is that the only time the code actually works is if i login with my own personal facebook profile. I think its because my profile and the FB.init appid are somehow linked? Can someone take a look at this code and show me where I am going wrong? My goal again is to use JS to first get the users

Facebook app hosted on Google App Engine

不打扰是莪最后的温柔 提交于 2019-12-07 15:20:15
问题 I am new to Facebook apps, I have an app already up and running on GAE (using python). I want to integrate it with Facebook so I can access some of the users' data to help me personalize the app (data like the liked pages, interests, where they are from etc..). And also to share the app's outputs to be seen by friends. I thought I would go for the Facebook app option on https://developers.facebook.com/ I don't know where to start from, there are some tutorials (most of them are very old, some

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

喜你入骨 提交于 2019-12-07 15:15:29
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? FQL has many many problems like this. This is almost certainly a bug. There are many bugs about flq related to this. For example: http://bugs.developers

Check if a Facebook user likes a page using fql

北慕城南 提交于 2019-12-07 12:42:02
问题 I want to check whether the loggedIn user has liked a specified page or not. Below is my code. $fql_pageid = "SELECT url,site,id FROM object_url WHERE url IN('http://developers.facebook.com/')"; $api_pageid = $facebook->api(array( 'method' => 'fql.query', 'query' => $fql_pageid )); $pageid = $api_pageid[0]["id"]; //get id of the specified page $fql_like = 'SELECT object_id FROM like WHERE user_id=me()'; $api_like = $facebook->api(array( 'method' => 'fql.query', 'query' => $fql_like )); When I