facebook-fql

FQL stream doesn't return the number of posts as defined by limit

徘徊边缘 提交于 2019-12-02 03:43:21
问题 I tried "SELECT post_id, actor_id, target_id, message, likes FROM stream WHERE source_id = me() LIMIT 100" , which returns me 81 instead of 100 posts, then I tried "SELECT post_id, actor_id, target_id, message, likes FROM stream WHERE source_id = me() LIMIT 50" , and expecting it returns 50 posts since the first query returns 81, but the result only contains 43 post. Wondering how LIMIT work. Besides, the created_time doesn't really works for me, "SELECT post_id, actor_id, target_id, message,

Facebook FQL Query with Ruby

跟風遠走 提交于 2019-12-02 03:27:28
问题 I'm trying to do a simple GET with ruby to the Facebook fql.query method without success. The url is basically structured like this: https://api.facebook.com/method/fql.query?query=SELECT total_count FROM link_stat WHERE url = "http://twitter.com/"&format=json I've read in a few posts here on StackOverflow about how to make those requests, but even tho I keep getting: /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or service not known (SocketError) On the first line of

Facebook FQL Query with Ruby

旧时模样 提交于 2019-12-02 02:39:46
I'm trying to do a simple GET with ruby to the Facebook fql.query method without success. The url is basically structured like this: https://api.facebook.com/method/fql.query?query=SELECT total_count FROM link_stat WHERE url = "http://twitter.com/"&format=json I've read in a few posts here on StackOverflow about how to make those requests, but even tho I keep getting: /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or service not known (SocketError) On the first line of http_get function. def http_get(domain,path,params) return Net::HTTP.get(domain, "#{path}?".concat

Facebook account delink or deauthorize facebook app and check status of linking from facebook app

时光怂恿深爱的人放手 提交于 2019-12-02 02:36:52
My website application having feature login with Facebook login. And for which my app is present on Facebook. Login with facebook is working fine. But application have feature of linking and unlinking facebook account to Facebook app. How to check FB account is linked with specific FB app or not? And how to unlink FB account from specific FB app if linked (On that user's request )? ("Linked" means we select "Allow" to FB app on request) With the new Graph there is a documented way to deauthorize (I've tested it in the Graph API explorer and it works). Send an HTTP Delete command to "me

Display FQL results in DataGridView using C# (WinForms)

99封情书 提交于 2019-12-02 02:01:01
I have my FQL query and i have my access token. But how do i display FQL results in GRID VIEW using C# and ASP.NET? FQL: SELECT uid, username, first_name, last_name, friend_count, pic_big FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) This is what i have tried: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Facebook; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1()

What Facebook Privacy setting limit if the app of my friend can access my album?

眉间皱痕 提交于 2019-12-01 23:32:59
问题 I am using the Graph API Explorer with permission "friends_photos" and able to access some of my friends' albums, but some are not. e.g. /johndoe?fields=albums Since my friends are not aware of my app, so I guess they should have some settings applied so I cannot access their albums even I have the "friends_photos" permission used. I am able to access their albums using the web interface. Where is the settings? 回答1: It should work perfectly unless a user has disallowed the apps to access a

What Facebook Privacy setting limit if the app of my friend can access my album?

假装没事ソ 提交于 2019-12-01 22:02:06
I am using the Graph API Explorer with permission "friends_photos" and able to access some of my friends' albums, but some are not. e.g. /johndoe?fields=albums Since my friends are not aware of my app, so I guess they should have some settings applied so I cannot access their albums even I have the "friends_photos" permission used. I am able to access their albums using the web interface. Where is the settings? It should work perfectly unless a user has disallowed the apps to access a particular category of his/her personal information. People on Facebook who can see your info can bring it

Fan count for a Facebook Fan Page

我怕爱的太早我们不能终老 提交于 2019-12-01 14:59:11
问题 I needed to pull the fan count for particular fan pages on Facebook. After digging through the API, I couldn't find a way to do this with the API "proper." Instead I fell back to a FQL query, and it worked quite well. select fan_count from page where page_id = <FAN_PAGE_ID> What did I miss about the Facebook API. Is this the only way to capture a fan count for a page? In general, how often do you use FQL for your requests as opposed to the exposed API methods? 回答1: https://graph.facebook.com

Facebook API real-time friends' online presence update

和自甴很熟 提交于 2019-12-01 14:04:25
问题 I'm currently developing an app in facebook which has a list of my friends and shows their online presence. To get this, I used: $fql = "SELECT uid, name, online_presence, status FROM user WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1 = '".$this->user_id."')"; $active = $this->facebook->api(array( 'method' => 'fql.query', 'query' =>$fql )); But since I'm only getting this information (status, online presence) at the time when I open my app, it'll not change until I reload my app. My

Facebook API real-time friends' online presence update

蓝咒 提交于 2019-12-01 13:50:38
I'm currently developing an app in facebook which has a list of my friends and shows their online presence. To get this, I used: $fql = "SELECT uid, name, online_presence, status FROM user WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1 = '".$this->user_id."')"; $active = $this->facebook->api(array( 'method' => 'fql.query', 'query' =>$fql )); But since I'm only getting this information (status, online presence) at the time when I open my app, it'll not change until I reload my app. My question is, how can I get a real-time update of status-change or online-presence change by my friends?