python - Facebook status update using django -
python - Facebook status update using django -
i have used python-social-auth social authentication in django application. going post facebook status application.
at first have created facebook app https://developers.facebook.com/. here steps have followed ,
create new app display name , namespace given. category selected games create app. app settings -> add together platform -> website -> site url = test1.com:8000 -> save changes. i have made application , live features available general public.then have added ,
social_auth_facebook_key='****************' social_auth_facebook_secret='**************************'
and
social_auth_facebook_scope = [ 'publish_actions' ]
to settings.py .
when run app , start facebook authentication displays next popup,
and when click on play button redirects django app's homepage , post facebook status,
here code posting facebook status ,
social_user = request.user.social_auth.filter( provider='facebook',)[0] graph = facebook.graphapi(social_user.extra_data['access_token']) graph.put_object("me", "feed", message="here status messgae")
but when user [other facebook account] tries authenticate app displaying popup ,
in first case have posted status, in sec case [ message in sec popup shows app doesn't have access users wall.]
this error getting sec case ,
graphapierror @ / (#200) user hasn't authorized application perform action.
my question that , why app not able post on others wall ?
is there bad configuration (or missed something) did while creating facebook app ?
or else have add together in settings.py.
the app settings fine. actually, facebook made important changes , introduced v2.0 (learn more here)
so on (you can check warning in first dialog)-
if app asks more than public_profile
, email
, user_friends
require review facebook before app can used people other app's developers.
only testers/developers of app can test app other permissions before reviewed facebook.
you can check out review documentation more details.
python django facebook facebook-graph-api
Comments
Post a Comment