python - No POST responses from real time callbacks -


basic idea of i'm doing. want grab users' likes , print them in cli application (python script listens get/post messages using twisted framework).

i have done oauth via inline canvas html:
<a target='_top' href="https://www.facebook.com/dialog/oauth/?client_id=1111111111111&redirect_uri=https://apps.facebook.com/xxxxxxx/&scope=user_likes">grant permissions</a>

right seems well?

okay i've gone real time subscriptions section within facebook app section , added

see image* :http://i.stack.imgur.com/l2i3t.png , when run test, python code returns result, see*: http://i.stack.imgur.com/9d2ek.png

so i'm stuck though. because expect happen when like callback show in callback script. i'm printing given render_post , render_get , responses come out fine, example

get {'hub.verify_token': ['test'], 'hub.challenge': ['73678294'], 'hub.mode': ['subscribe']} {'hub.verify_token': ['test'], 'hub.challenge': ['2038003566'], 'hub.mode': ['subscribe']} 

but when go off , something, either myself or test user (with oauth completed) there's no post value. nothing @ all!

i figure there's i'm missing here. i'm expecting see

{   "data": [     {       "category": "author",        "name": "iain m. banks",        "id": "111960934488822",        "created_time": "2013-04-22t13:21:42+0000"     },      {       "category": "movie",        "name": "the life of brian",        "id": "110881634936650",        "created_time": "2012-12-17t07:48:24+0000"     }   ],    "paging": {     "next": "https://graph.facebook.com/111111111/likes?limit=2&offset=2&__after_id=110881698346650"   } } 

in post can proceed rest of code. hope can clear me! thank in advance!

*you need @ least 10 reputation post images

the field likes corresponds user/likes

all pages user has liked.

the user object supports following connections

this object supports real-time updates following connections: feed, friends, activities, interests, music, books, movies, television, likes, checkins.

https://developers.facebook.com/docs/reference/api/user/

so liking something may not want. ensure object liked page. facebook post callback.

in addition ensure seeing post variables, occur in request.args , not request

http://twistedmatrix.com/documents/10.1.0/web/howto/web-in-60/handling-posts.html


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -