0
import facebook
token = 'meu token'
graph = facebook.GraphAPI(token)
graph.put_object("me", "feed", message="Hello, World!")
Friends,
I’m using Ubuntu and Python 2.7 and 3.5.2
The following error occurs:
"Graph = facebook.Graphapi(ACCESS_TOKEN) Attributeerror: module 'facebook' has no attribute 'Graphapi"
I’ve searched right here on Stack Overflow but no answer solved my problem.
I installed the Facebook-SDK from here:
http://facebook-sdk.readthedocs.io/en/latest/install.html
Any suggestions?
Try to download a ready-made code and build your app from it.
– CypherPotato
import facebook -> in interactive mode not errors
– Ed S
from facebook import Graphapi -> also no errors occur
– Ed S
@Cypherpotato, any hint of code?
– Ed S
Try to overload the function
GraphAPI
:facebook.GraphAPI(access_token='your_token', version='2.2')
– CypherPotato
@Cypherpotato, I did but the mistake was the same!
– Ed S
Ed, http://answall.com/questions/142790/login-no-facebook-com-python . It’s not like posting but it’s related. However using sdk is indicated
– Miguel