skip to Main Content

How to decode a text file – Twitter API

I have this code here and it work perfectly. # encoding=utf8 #Import the necessary methods from tweepy library import sys from tweepy import OAuthHandler from tweepy import Stream from tweepy.streaming import StreamListener reload(sys) sys.setdefaultencoding('utf8') #Variables that contains the user credentials…

VIEW QUESTION

Facebook API query on /me with access token and fields only returns status=True. What am I doing wrong?

The following python code: # user profile information args = { 'access_token':access_token, 'fields':'id,name', } print 'ACCESSED', urllib.urlopen('https://graph.facebook.com/me', urllib.urlencode(args)).read() Prints the following: ACCESSED {"success":true} The token is valid, no error, the fields are valid. Why is it not returning the fields…

VIEW QUESTION
Back To Top
Search