facebook-fql

GET Facebook Page Fans

你。 提交于 2019-12-20 17:36:41
问题 I'm trying to get a list of all my Facebook Page Fans. All I can get from FQL is the total amount of fans for my facebook page. I can't know WHO my fans are? I have tried this: https://graph.facebook.com/somepage Anyone with an idea of how to know WHO my fans are? I.e. list the User IDs of all my fans for a specific page? I also know that I can get more information about my fanpage using FQL and "insights", from there I can get "page_active_users" and so forth, but not a list of all my fans?

How can I get all photos in one post using Graph API?

断了今生、忘了曾经 提交于 2019-12-20 10:36:21
问题 { "id": "11882030_4952296803730", "from": { "name": "xxx", "id": "11882030" }, "message": "test", "picture": "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-ash4/408410_4952294483672_298434229_s.jpg", "link": "https://www.facebook.com/photo.php?fbid=4952294483672&set=pcb.4952296803730&type=1&relevant_count=2", "icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yx/r/og8V99JVf8G.gif", "actions": [ { "name": "Comment", "link": "https://www.facebook.com/11882030/posts/4952296803730" }, { "name"

Determine Object_ID of a URL to use with the Facebook Open Graph

ε祈祈猫儿з 提交于 2019-12-20 10:14:24
问题 I am trying to learn how to use the Facebook Open Graph API and have a question on how to determine the object_id of my site. I need this object_id so that I can do other queries, such as I want to get a list of users who have liked my site within a given time period. Based on other Stackoverflow questions I have seen that I should be able to run this query to get the object_id select id from object_url where url in ('www.bubbasgameroom.com', 'bubbasgameroom.com') When I run that query it

Problem while executing Facebook query

我与影子孤独终老i 提交于 2019-12-20 06:34:17
问题 I am trying to run a FQL for the first time. This is the code I have included in my index.php file: <?php $query="SELECT message FROM status WHERE uid = 544337058";echo $query; ?> <?php include_once ('facebook.php'); $api_key = 'XXXXXXXXXXXXXXX'; $secret = 'XXXXXXXXXXXXXXXXX'; global $facebook; $facebook = new Facebook($api_key, $secret); $result = $facebook->api_client->fql_query($query); ?> <?php echo $result?> I have logged into facebook from a different tab and just trying to read my own

FQL returns “Requires valid signature”

你说的曾经没有我的故事 提交于 2019-12-20 06:27:07
问题 I am having a wierd problem, things that worked before stopped working today, maybe it was bad before but now after the oAUTH 2 change, I am having troubles with a near production app this is what I try $params = array('method'=>'fql.query','query' => 'SELECT uid2 FROM friend WHERE uid1 = me()'); $result = $facebook->api($params); I get: Exception: 104: Requires valid signature or more elaborated : $config = array( 'appId' => 'XXXXXXXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX', );

FQL Multiquery writing join queries

孤人 提交于 2019-12-20 06:19:50
问题 Simply put. I need help building an FQL multi query request that will do the following: Grab the UIDs in from the logged in user's friends list then, Use those IDs to grab all comments and messages (from stream) from the last two weeks Finally, join those results with there usernames Heres the queries I have so far: [1] GRAB_UIDs : SELECT uid2 FROM friend WHERE uid1 = me() [2] GRAB_STREAM (missing the 2 week part and possibly wrong altogether): SELECT type, created_time, post_id, comments,

Get facebook user if only logged in facebook php sdk

醉酒当歌 提交于 2019-12-20 06:15:23
问题 I want to get current loggedin facebook user in php sdk. Here is what i have tried: $facebook = new \Facebook(array( 'appId' => 'XXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXX', )); $user = $facebook->getUser(); var_dump($user); if ($user) { $logoutUrl = $facebook->getLogoutUrl(); echo $logoutUrl; } else { $loginUrl = $facebook->getLoginUrl(); echo $loginUrl; } When I load the page with above code, I get the loginUrl even though I am logged in facebook. Only when i load $loginUrl in the

get facebook likes count in iphone-sdk

天涯浪子 提交于 2019-12-20 04:13:55
问题 I don't want to show Like button... I just want to get the Number of count that has been liked for particular link... Just Cont.. No like button No dialogue Nothing 回答1: Just do a simple url request to the Graph API: http://graph.facebook.com/[FULL URL] Example: http://graph.facebook.com/http://www.stackoverflow.com Edit: (an example with "LIKES") http://graph.facebook.com/http://www.imdb.com/title/tt0117500/ Awesome, isn't it? 回答2: Just wanted to mention that if your URL has any question

FQL to get user's open graph video.watches activity

南笙酒味 提交于 2019-12-20 03:23:31
问题 What table is needed in the FQL to get all of a user's video.watches activity? I can find no documentation about what table this information is stored in. An example would also be helpful. 回答1: This data is not available via FQL, it is currently only available via the Graph API. Once you have the user_actions.video and/or friends_actions.video you access the watch activity via the /video.watches endpoint. For example, if you have the user_actions.video permission for the user and want to get

Display FQL results in DataGridView using C# (WinForms)

随声附和 提交于 2019-12-20 03:19:22
问题 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;