facebook-fql

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

一曲冷凌霜 提交于 2019-11-28 05:43:13
问题 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

Facebook mutual friends and FQL 4999/5000 record limit

我与影子孤独终老i 提交于 2019-11-28 05:34:06
I'm trying to select all mutual friends' connections with PHP/FQL. Using my UID (540 friends), which means >12,000 connections, of which >6500 are unique. So this code should return all the connections but Facebook apparently has a 4999/5000 row limit on FQL queries. // select mutual unique friends $unique_connections = $facebook->api_client->fql_query(" SELECT uid1, uid2 FROM friend WHERE uid1 IN (SELECT uid2 FROM friend WHERE uid1=$uid) AND uid2 IN (SELECT uid2 FROM friend WHERE uid1=$uid) "); I know the numbers above because the original code I wrote loops through my friend list and sends a

Graph API how get facebook page members/likes

二次信任 提交于 2019-11-28 05:01:55
Facebook like check I've found an interesting app . This fb-app get all likes from any fanpage and sort it by mass and country! My question: how do these app get the data from the graph api ? First: get the fanpage-object no access token needed https://graph.facebook.com/cocacola/ { "about": "The Coca-Cola Facebook Page is a collection of your stories showing how people from around the world have helped make Coke into what it is today.", "checkins": 146, "description": "Created in 1886 in Atlanta, Georgia, by Dr. John S. Pemberton, Coca-Cola was first offered as a fountain beverage at Jacob's

Create and Configure Facebook Apps via API

江枫思渺然 提交于 2019-11-28 05:00:09
问题 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. 回答1: 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

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

余生长醉 提交于 2019-11-28 04:56:54
问题 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. 回答1: This is intentional for privacy reasons. If you would be able to get the

Get Facebook “Like” count for every page on my domain

谁说胖子不能爱 提交于 2019-11-28 03:19:50
I have integrated the Facebook "Like" button into a lot of pages in my site. I want to display the most "Liked" pages on my site in a list, but I can't figure out how to get that data from Facebook in one request. So far, I have been able to get the "Like" count for individual pages using the following FQL query: SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="http://www.mysite.com/some-page" However, getting the count for each page on my site one at a time is not really feasible. Aside from having a large number of pages, new pages are being created

mySQL query returning Resource id #5

拥有回忆 提交于 2019-11-28 01:45:45
I've searched about possible solutions to this. and I've tried looping as well as trying the variants of mysql_fetch_assoc and mysql_fetch_array but I'm still getting the Resource id #5: 0: error. Here's my code which I think generates the error. <?php mysqlc(); $email = GetSQLValueString($_SESSION['user'], "text"); $query = sprintf("SELECT * FROM newmember WHERE email = %s",$email); $res = mysql_query($query) or die('Query failed: ' . mysql_error() . "<br />\n$sql"); $row = mysql_fetch_assoc($res); ?> "Resource id #5: 0" is not an error. It means that you tried to echo $res instead of trying

Hashtag search in Facebook API

瘦欲@ 提交于 2019-11-28 00:36:24
问题 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 ? 回答1: 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

Facebook FQL: Get checkins within range

你说的曾经没有我的故事 提交于 2019-11-28 00:20:33
Is there a way to use FQL to select all my friends Checkins that are in range of a specified location? I can use FQL to return my friends checkin coords: https://api.facebook.com/method/fql.query?access_token={0}&query=SELECT coords FROM checkin WHERE author_uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) but how can I add to the above query to do something like... Where coords Within 10 miles of [(New York City, NY) | (long, lat) | (user.current_location)] Any help would be greatly appreciated. Thanks in advance. EDIT (3/9 3:05pm est): I'm mainly just looking for an end result - doesn't

How to use Facebook graph API to retrieve fan photos uploaded to wall of fan page?

六月ゝ 毕业季﹏ 提交于 2019-11-27 22:29:47
I am creating an external photo gallery using PHP and the Facebook graph API. It pulls thumbnails as well as the large image from albums on our Facebook Fan Page. Everything works perfect, except I'm only able to retrieve photos that an ADMIN posts to our page. (graph.facebook.com/myalbumid/photos) Is there a way to use graph api to load publicy uploaded photos from fans? I want to retrieve the pictures from the "Photos from" album, but trying to get the ID for the graph query is not like other albums... it looks like this: http://www.facebook.com/media/set/?set=o.116860675007039 Another note: