Guys,
I am trying to install facebook sdk and import it to my code.
But getting errors like
import facebook ImportError: No module named 'facebook'
My code
import os import sys import json import facebook import requests from flask import Flask, request app = Flask(__name__) @app.route('/', methods=['GET']) def verify(): return request.args["hub.challenge"], 200
trying uninstall and install
08:13 ~ $ pip uninstall facebook-sdk Uninstalling facebook-sdk-1.0.0: /home/khsadigov/.local/lib/python2.7/site-packages/facebook/__init__.py /home/khsadigov/.local/lib/python2.7/site-packages/facebook/__init__.pyc /home/khsadigov/.local/lib/python2.7/site-packages/facebook/version.py /home/khsadigov/.local/lib/python2.7/site-packages/facebook/version.pyc /home/khsadigov/.local/lib/python2.7/site-packages/facebook_sdk-1.0.0.dist-info/DESCRIPTION.rst /home/khsadigov/.local/lib/python2.7/site-packages/facebook_sdk-1.0.0.dist-info/INSTALLER /home/khsadigov/.local/lib/python2.7/site-packages/facebook_sdk-1.0.0.dist-info/METADATA /home/khsadigov/.local/lib/python2.7/site-packages/facebook_sdk-1.0.0.dist-info/RECORD /home/khsadigov/.local/lib/python2.7/site-packages/facebook_sdk-1.0.0.dist-info/WHEEL /home/khsadigov/.local/lib/python2.7/site-packages/facebook_sdk-1.0.0.dist-info/metadata.json /home/khsadigov/.local/lib/python2.7/site-packages/facebook_sdk-1.0.0.dist-info/top_level.txt Proceed (y/n)? y Successfully uninstalled facebook-sdk-1.0.0 08:13 ~ $ pip install facebook-sdk Requirement already satisfied (use --upgrade to upgrade): facebook-sdk in /usr/local/lib/python2.7/dist-packages