I have this problem in my code and I can not solve, since it works in version 2.7, but 3.4 already of this message.
In my code I have methods: Method 1
def getFacebookPageFeedData(page_id, access_token, num_statuses):
parameters = "/?access_token=%s" % (access_token, num_statuses)
Method 2
def scrapeFacebookPageFeedStatus(page_id, access_token):
In this second method I have:
statuses = getFacebookPageFeedData(page_id, access_token, 100)
But every time I run the code, this error is displayed:
parameters = "/?access_token=%s" % (access_token, num_statuses)
TypeError: not all arguments converted during string formatting
What should I do to the version 3.4 this parameter passing through?
%s, and you're interpolating two objects. Did you read the error message and look at the code it points out?