Can somebody help me out with why this is happening? I have a python 3, virtualenv based environment, and I am writing some scripts with Facebook SDK.
When I write print statement before importing facebook, the print is happening only once.
When I write print statement after importing facebook, the print is happening twice, even though the print is written only once.
Rename your file from
facebook.py to something else. As it is, it is importing itself rather than the module.