real-time-updates

Graph Checkin method returns empty data

有些话、适合烂在心里 提交于 2019-12-13 22:01:31
问题 I'm trying to get to work the Checkin method, but currently I only get empty data: { "data": [ ]} Whether using this http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fcheckins or using https://graph.facebook.com/me/checkins&access_token=ACCESS_TOKEN I only get no data. I've checked in several locations, I has been tagged also in photos taken and uploaded using location; but no luck. The main goal is to get RTU working with checkin events working...but, if I can not get it to

Facebook Realtime Updates - Dispute - Response

夙愿已清 提交于 2019-12-13 02:22:43
问题 Noobish question: Are you supposed to respond to realtime updates (RTUs) somehow? Keep getting RTUs on the same dispute which FB has already refunded. So, should one echo something in the RTU callback? Just been through all the documentation I can find (again) and can't seem to find anything on response. 回答1: Yes, you need to return a 200. The content type or response body do not matter. Anything else results in Facebook retrying the callback until a 200 is received, so you'll get lots of

Facebook Real-time Updates: (#2200) callback verification failed, code 2200

左心房为你撑大大i 提交于 2019-12-11 18:43:39
问题 I am trying to get realtime updates from facebook for my application as documented in https://developers.facebook.com/docs/reference/api/realtime/. I am struggling now when it comes back to the Subscription Verification . I have set up a callback server which accepts both GET and POST requests. I verified that the server works by making curl requests to it. However, I stil get this error when attempting to create a subscription issuing the POSt request below {"error":{"message":"(#2200)

Facebook Real-time Updates - get updates for friends

爱⌒轻易说出口 提交于 2019-12-11 13:19:53
问题 I am using the facebook real-time updates API to get updates for my users' friends. I wonder which fields of the users' friend the update-notifications include and which for which fields a subscription can be posted Specifically I am requesting the following fields for my users' friends: 'bio', 'birthday', 'education', 'email', 'events', 'feed', 'first_name', 'gender', 'hometown', 'id', 'interested_in', 'languages', 'last_name', 'link', 'locale', 'location', 'middle_name', 'name', 'picture',

Is it possible to subscribe to real-time updates for user online_presence?

℡╲_俬逩灬. 提交于 2019-12-11 03:06:14
问题 My app has a search where you can find users based on various filters. I recently added an indicator so you could see whether or not a user was online. I made this work by getting the user_online_presence permission, then after the results were filtered, making an FQL request with the users access_token, which I have stored in my database. Now, I want to make it so I can actually filter the search based on whether or not a user is signed in. So somehow, I need to have each user's online

real time update include_values is not supported

谁都会走 提交于 2019-12-10 19:15:40
问题 I wanted to update the "callback_url" (https://graph.facebook.com/subscriptions) but the problem is that I can not add the "include_values" and it is a very big problem because my entire program works with { "error": { "message": "(#100) include_values is not supported", "type": "OAuthException", "code": 100 } } example facebook callback with "include_values" {"object":"user","entry":[{"id":"44368442315","time":1346984937,"changes":[{"field":"feed","value":{"item":"like","verb":"add","parent

JavaScript Real Time Calculation

点点圈 提交于 2019-12-08 05:19:09
问题 I have built a table with custom inputs numbers with jeditable. The Input type is gone once you put the value I need to find a JavaScript Real Time Calculation which automatically makes the amount of my values. I have found 2 interesting examples very suitable for my case but there is the possibility to achieve it the same without using the form and inputs? First example Second example 回答1: Yes, it is. As you know a div element can be accessed by document.getElementById('div_id') and its

realtime plotting pandas dataframe

戏子无情 提交于 2019-12-07 23:22:38
问题 I am new to matplotlib and trying to display a real time plot of the last hour's data for three variables that I'm downloading from an api via my function read_API(). The data is in a pandas dataframe with a DateTimeIndex. For example: In: dframe.head() Out: A B C timestamp 2017-05-11 16:21:55 0.724931 0.361333 0.517720 2017-05-11 16:22:25 0.725386 0.360833 0.518632 2017-05-11 16:22:55 0.725057 0.361333 0.521157 2017-05-11 16:23:25 0.724402 0.362133 0.520002 The simplified code is: import

Angularfire - Firebase query / sync first x items in document

蹲街弑〆低调 提交于 2019-12-02 19:14:45
问题 I am just getting into using firebase. I have a document with 6 records indexed by id. I would like to query and sync the first 3 items in the list. var metals = new Firebase("https://<dbname>.firebaseio.com/metals").limit(3); $scope.metals = $firebase(metals); This provides the last 3 items in the list. Not what I wanted. So to get the first 3 items , I thought that this would work, but it breaks... var metals = new Firebase("https://<dbname>.firebaseio.com/metals").startAt(1).endAt(3);

Angularfire - Firebase query / sync first x items in document

梦想的初衷 提交于 2019-12-02 08:23:06
I am just getting into using firebase. I have a document with 6 records indexed by id. I would like to query and sync the first 3 items in the list. var metals = new Firebase("https://<dbname>.firebaseio.com/metals").limit(3); $scope.metals = $firebase(metals); This provides the last 3 items in the list. Not what I wanted. So to get the first 3 items , I thought that this would work, but it breaks... var metals = new Firebase("https://<dbname>.firebaseio.com/metals").startAt(1).endAt(3); $scope.metals = $firebase(metals); My data structure: { "metals" : [ null, { "id" : 1, "metal" : "Aluminium