Reputation: 13
I want to be able to search for any user using facebook API v3.3 in python 3.
I have written a function that can only return my details and that's fine, but now I want to search for any user and I am not succeeding so far, it seems as if in V3.3 I can only search for places and not users
def search_friend():
graph = facebook.GraphAPI(token)
find_user = graph.search(q='Durban north beach',type='place')
print(json.dumps(find_user, indent=4))
Upvotes: 0
Views: 285
Reputation: 5820
You can not search for users any more, that part of the search functionality has been removed a while ago.
Plus you would not be able to get any user info in the first place, unless the user in question logged in to your app first, and granted it permission to access at least their basic profile info.
Upvotes: 1