facebook-fql

mySQL query returning Resource id #5

我怕爱的太早我们不能终老 提交于 2019-11-30 05:54:38
问题 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

How to handle the big int facebook uid returned by FQL?

荒凉一梦 提交于 2019-11-30 04:08:17
I've a problem in handling the big userid's of facebook and properly storing them into my database.. As the fql.query REST api is going to be deprecated ,I'm using the GRAPH API for getting the results of the FQL. I want to get the list of my friends with sex,relationship_status . The query i executed is $allFriends = $facebook->api("/fql ?q=SELECT+uid,+name,+sex,+relationship_status+FROM+user+where+uid+in+ (SELECT+uid2+FROM+friend+WHERE+uid1+=$fbuid)" ); I tried the above in the Graph API explorer and the result is something like this, { "data": [ { "uid": 100003082853071, "name": "Sam jones"

Getting a High Resolution picture from Facebook API

浪尽此生 提交于 2019-11-30 04:06:25
问题 Facebook FQL API for Photos states the maximum resolution for a photo returned from the API is 960x960: The Photo object has an equivalent src connection. Using photo_src FQL, you can retrieve images with the following dimensions: 960, 720, 480, 320, 180, 130, 75 pixels. However, some images are uploaded at a higher resolution. Sometimes even much higher. When browsing Facebook regularly, you can see these pictures and view their full size. However, I can't seem to find any way to get the

Facebook FQL Query Event_member “Inviter” and “Inviter_type”

北城以北 提交于 2019-11-30 03:59:44
问题 In the description of the FQL event_member page, it says that the column inviter should inform us about the ID of the user or page who invited a UID at the event, and inviter_type should inform us about whether the inviter was a user or a page. I have tried these functions on both public events and an event that I have created myself, but it always fails. "inviter": null and "inviter_type": "" for every user. Is this a bug, an old function that works no more, or a new function that does not

Is there an API to retrieve Facebook recent activity?

只谈情不闲聊 提交于 2019-11-30 02:39:54
问题 I know there's a Graph api url for getting the recent wall feeds: https://graph.facebook.com/me/feed?access_token=... But how do I get the Recent Activity? Is there any way? FQL (not Graph API) can work too. I don't really care which way I get it. I'm trying to get the RECENT ACTIVITY, which appears as part of the wall. It has same IDs like the standard wall entries have, but they aren't returned in the /me/feed request, because they are treated differently on facebook, and I'm trying to find

Getting Facebook Events using fql

蹲街弑〆低调 提交于 2019-11-29 23:52:50
问题 Trying to retrieve facebook events through fql using the query below. I am unable to get venue details other than "id". fql?q=SELECT name,description, pic_small,pic_big, eid,venue,location from event WHERE eid in (SELECT eid FROM event_member WHERE uid = me()) output : { "data": [ { "name": "HappyHour", "description": "Let's have fun !!!", "pic_small": "http://profile.ak.fbcdn.net/static-ak/rsrc.php/v2/yy/r/XcB-JGXohjk.png", "pic_big": "http://profile.ak.fbcdn.net/static-ak/rsrc.php/v2/yn/r

How to determine if a Facebook user has uploaded a profile picture or its default?

▼魔方 西西 提交于 2019-11-29 21:21:02
问题 Is there a way to know if a user uploaded an image to the profile or it has the default user picture of Facebook via FQL or somthing else? 回答1: You can use the Python script below (as not mentioned any programming language) to make it work. urllib.urlopen('https://graph.facebook.com/<PROFILE_ID>/picture?access_token=%s' % access_token).geturl() This will provide you a Facebook profile photo URL. If that URL contains <PROFILE_ID> then it uploads an image. Else the default Facebook image is

Facebook API: best way to get like, share, comment count for a page/group post?

旧城冷巷雨未停 提交于 2019-11-29 20:30:47
What's the best way to get the like, share, comment count for a post? I'm trying via FQL but it doesn't seem to give any data when the URL is a FB post URL: SELECT like_count, comment_count, share_count FROM link_stat WHERE url="https://www.facebook.com/Macklemore/posts/10153256675935268" When I get the post info via the Graph API Explorer: 386050065267_10153256675935268 It gives me the like count and share count and I can get the comment count via 386050065267_10153256675935268/comments?summary=true { "id": "386050065267_10153256675935268", "from": { "category": "Musician/band", "name":

FQL Error 102 Requires user session on a repeated query

一世执手 提交于 2019-11-29 15:46:04
问题 I have a fully functional FQL query, but when it is triggered for the second time i get an error code 102: Requires user session On my app i have an Autocomplete Search for Friends. I am using jquery ui autocomplete with a dynamic source using AJAX. This is my PHP Function: function fb_buscarAmigosAutocomplete($term='',$app_user=false){ $facebook = new Facebook(array( 'appId' => APP_ID, 'secret'=> APP_SECRET )); $term=trim(strtolower($term)); //Buscar usuarios try{ $fql = " SELECT uid,name

Facebook JavaScript SDK for FQL with additional parameter

天涯浪子 提交于 2019-11-29 15:40:36
问题 Facebook deprecated FB.Data.waitOn and FB.Data.query and they recommend we use FB.api instead. More info: http://developers.facebook.com/blog/post/561/ This sounds easy enough, but I can't seem to pass additional parameters with my FQL request without getting an error from Facebook. For example, I can successfully do this: FB.api({ method: 'fql.query', query: 'select page_id, name, pic, page_url from page where page_id=' + some_page_id }, function(response){ console.log(response); }); But I'd