facebook-fql

How to use fql.multiquery with C# SDK

我的未来我决定 提交于 2019-12-25 08:48:00
问题 I am using the facebook-c#-sdk with VB. my code: dim facebook As New FacebookApp() dim queries as string=" ""2011-4-13"" : ""SELECT metric, value FROM insights WHERE object_id=173249789387842 AND metric='page_active_users' AND end_time=end_time_date('2011-4-13') AND period=period('day')"",""2011-4-14"" : ""SELECT metric, value FROM insights WHERE object_id=173249789387842 AND metric='page_active_users' AND end_time=end_time_date('2011-4-14') AND period=period('day')""" dim oFQLResult As

Home feed get specific links

China☆狼群 提交于 2019-12-25 07:48:46
问题 So I want to get linked typed post from users home stream But I want it to have specific url like "where link url = example.com" As a result I will have a data of my friends who had shared that link. First I tried querying the home with https://graph.facebook.com/me/home?q=example (worked but partly, only old posts) Then I did: friends_id = [Get all ids] [foreach friends_id as id] make facebook api call to that id get all links that user had shared [foreach links as link] filter all of them

getting facebook friends list who have installed an app

时间秒杀一切 提交于 2019-12-25 05:35:40
问题 It's possible to know the facebook friends that they have installed a my fb app? I have tried some ways directly using the online facebook developer tool but I have not been able to find a solution. I have tried both Graph API and FQL 回答1: Using FQL: SELECT uid, name, is_app_user FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) AND is_app_user=1 来源: https://stackoverflow.com/questions/14480748/getting-facebook-friends-list-who-have-installed-an-app

Facebook javascript login using ajax-jquery

若如初见. 提交于 2019-12-25 04:08:57
问题 I am trying to create fb javascript loging using ajax, php. It works and fetch the required data from facebook. But once user click on login then page gets reloaded twice after login completes and beofre showing data. Here is my code. can anyone point out where is the bug or any link? <?php session_start(); $appId = '669340023079549'; $appSecret = '390c04c60d19f38e113ea44f268aca44'; // Facebook App Secret $return_url = 'http://yoursite.com/connect_script/'; //path to script folder

How do I get a list of friends who clicked “Like” on an external page?

走远了吗. 提交于 2019-12-25 04:07:00
问题 PART A - There are many many questions like this, but none of them seem to provide a working solution. I want to get a list of friends who clicked the Facebook "Like" button on an external site. NOTE: This is NOT for a Facebook page. In this case, I know I can query the page_fan table. To get the list of Facebook page-likes for example, I can use the url_like table. I guess I just want a way to invert this table. I know I cannot get a list of ALL people that liked a link due to privacy

How do I query links shared by Facebook Pages?

蹲街弑〆低调 提交于 2019-12-25 04:06:41
问题 I can get a user's page/likes list using the graph /me/likes. But how can I return a list of links shared by these Pages? For example, let's say a user likes the Facebook Platform Page. I can pull this id ( 19292868552 ) using the /me/likes graph api. But how can I pull the links that the Facebook Platform Page has shared on their page? For a regular user you would do something like this: Sample FQL: SELECT link_id, title, summary, url FROM link WHERE owner IN (19292868552); But for Facebook

Graph api and equivalent FQL method give different results?

人走茶凉 提交于 2019-12-25 03:48:25
问题 1. When I used this method, I get a list of events that I'm attending. https://graph.facebook.com/me/events?access_token=... You can try it yourself, scroll to the middle of the page and click the link Source: http://developers.facebook.com/docs/reference/api/ 2. When I use this method, I get no results. https://api.facebook.com/method/fql.query?query=SELECT+eid+from+event_member+WHERE+uid+%3D+me%28%29+&access_token=...&format=json The second one is a FQL query SELECT eid FROM event_member

FQL query response randomly omits some results

混江龙づ霸主 提交于 2019-12-25 02:38:12
问题 I'm trying to make a simple "only status updates, nothing else" app (since FB doesn't seem too interested in this sort of thing). However, my queries seem to omit some results: "select status_id,uid,time,message from status where uid in (select uid2 from friend where uid1= $my_id) ORDER BY time DESC LIMIT 25", for instance, when I last tested it, only returned 21 results (and yes, I've got enough friends who have made enough updates that there are definitely more than 25 historical statuses).

user_likes permission not required BUG?

我是研究僧i 提交于 2019-12-24 17:53:11
问题 Facebook says: To read the page_fan table you need any valid access_token if it is public (visible to anyone on Facebook). user_likes permissions if querying the current user. friends_likes permissions if querying a user's friend. I just ran this query in the Graph Explorer: SELECT page_id FROM page_fan WHERE uid=me() AND page_id=105557426145540 ... however I did not request user_likes permission and it (correctly) said that I have liked this page. Is this a bug? 回答1: Igy: go to your profile,

Facebook FQL: I want to get all the posts that a user wrote on friends timelines

那年仲夏 提交于 2019-12-24 17:34:26
问题 I only want the posts( no likes or comments). Anyone can help with an idea? 回答1: This isn't possible in FQL, consider using the regular Graph API and pagination on the following endpoint with read_stream permission friend_id/feed?fields=message 来源: https://stackoverflow.com/questions/16179767/facebook-fql-i-want-to-get-all-the-posts-that-a-user-wrote-on-friends-timelines