Files
2012-02-21 01:15:00 -05:00

1 line
5.9 KiB
JSON

[{"user_id": 13817, "stars": [], "topic_id": 9279, "date_created": 1298752119.0862839, "message": "I am using django-social-auth to allow users to connect to their facebook account. I would like the user to be able to post messages to their wall on actions performed in the site. To do this I would use the Facebook SDK python library. How do I get the user's Facebook access token one they have authorized the connection?", "group_id": 81, "id": 215486}, {"user_id": 13817, "stars": [], "topic_id": 9279, "date_created": 1298752133.3711929, "message": "Is there something super simple I am missing here?", "group_id": 81, "id": 215488}, {"user_id": 15666, "stars": [], "topic_id": 9279, "date_created": 1298766300.2662771, "message": "On GitHub, in the /examples/oauth/ folder of the Facebook Python library there is a facebookoauth.py and in the LoginHandler class you can see how they're handling the login. Should be able to strip the access tokens out after looking at it for a few.", "group_id": 81, "id": 216030}, {"user_id": 1822, "stars": [], "topic_id": 9279, "date_created": 1298777223.0427561, "message": "you can do a quick inspect of it in the admin", "group_id": 81, "id": 216344}, {"user_id": 13817, "stars": [], "topic_id": 9279, "date_created": 1298776850.2733631, "message": "I'm looking at https://github.com/omab/django-social-auth and don't see any \"/examples/oauth/\" folder? Is this in one of the forks?", "group_id": 81, "id": 216329}, {"user_id": 1822, "stars": [], "topic_id": 9279, "date_created": 1298777039.6838219, "message": "there is a model that stores an association between a facebook user and a django user", "group_id": 81, "id": 216332}, {"user_id": 13817, "stars": [], "topic_id": 9279, "date_created": 1298777148.7592649, "message": "I was just looking in https://github.com/omab/django-social-auth/blob/master/social_auth/backends/facebook.py and on lines 59 to 83 they get the access token.", "group_id": 81, "id": 216336}, {"user_id": 13817, "stars": [], "topic_id": 9279, "date_created": 1298777186.1801751, "message": "Awesome, thanks.", "group_id": 81, "id": 216341}, {"user_id": 1822, "stars": [], "topic_id": 9279, "date_created": 1298777110.7200201, "message": "if you have a variable called \"user\" holding your django user, you can get it via:\nsa = user.social_auth.get()", "group_id": 81, "id": 216335}, {"user_id": 1822, "stars": [], "topic_id": 9279, "date_created": 1298777153.6513331, "message": "on it is a text field called extra_data, which (if you have latest version) contains a json dictionary that includes the token, expiration date etc", "group_id": 81, "id": 216337}, {"user_id": 13817, "stars": [{"date_created": 1298790452.7692189, "user_id": 141}], "topic_id": 9279, "date_created": 1298777848.5422649, "message": "Found my issue :) The \"extra_data\" field was empty because I had set SOCIAL_AUTH_EXTRA_DATA = False :-/", "group_id": 81, "id": 216364}, {"user_id": 13817, "stars": [], "topic_id": 9279, "date_created": 1298778572.078887, "message": "Awesome, sorted :) Thanks for the direction @ptone", "group_id": 81, "id": 216383}, {"user_id": 15666, "stars": [], "topic_id": 9279, "date_created": 1298793254.375772, "message": "Oh. Sorry. Your topic was django-social-auth on github but you mentioned the Facebook python sdk. But I'm glad you got it. I used this on a project over the summer. ;)", "group_id": 81, "id": 216789}, {"user_id": 13817, "stars": [], "topic_id": 9279, "date_created": 1298818121.024585, "message": "Yeah, after @ptone made it all clear for me it's been pretty easy to setup. Have Facebook and Twitter working and the system post's messages to their streams.", "group_id": 81, "id": 217307}, {"user_id": 14517, "stars": [], "topic_id": 9279, "date_created": 1302208898.506484, "message": "hi, could you tell me how did you get extra_data please? I am new to django. Thanks a lot!", "group_id": 81, "id": 580330}, {"user_id": 719, "stars": [], "topic_id": 9279, "date_created": 1302217846.6483221, "message": "@zheli It's a field on the UserSocialAuth model class. If you did \"sa = user.social_auth.get()\" it should be \"sa.extra_data\"", "group_id": 81, "id": 582207}, {"user_id": 14517, "stars": [], "topic_id": 9279, "date_created": 1302262649.789139, "message": "wow, thanks! didn't know it's that simple :O", "group_id": 81, "id": 588730}, {"user_id": 1930, "stars": [], "topic_id": 9279, "date_created": 1302270480.3480799, "message": "In use, does anyone get feedback from users for the \"warning [twitter,facebook,google] takes your sercurity seriously - [app] wants access to your [twitter,facebook,google] credentials. Allow?\" - I just about instinctively punch \"no\" to messages like this.", "group_id": 81, "id": 589898}, {"user_id": 30578, "stars": [], "topic_id": 9279, "date_created": 1303421920.419492, "message": "gfvfvbgbgbbggb", "group_id": 81, "id": 775946}, {"user_id": 14309, "stars": [], "topic_id": 9279, "date_created": 1303422221.088923, "message": "You can request additional permissions by redirecting the user to a url like this https://www.facebook.com/dialog/oauth?client_id=YOUR-APP-ID&redirect_uri=YOUR-SITE-URL-TO-HANDLE-TOKEN&scope=email,offline_access&response_type=token", "group_id": 81, "id": 775978}, {"user_id": 14309, "stars": [], "topic_id": 9279, "date_created": 1303422285.929956, "message": "once you get the new token, use it like this", "group_id": 81, "id": 775985}, {"user_id": 14309, "stars": [], "topic_id": 9279, "date_created": 1303422330.2546329, "message": "graph.put_object('me','feed',message=\"this will be published\")", "group_id": 81, "id": 776001}, {"user_id": 14309, "stars": [], "topic_id": 9279, "date_created": 1303422298.29598, "message": "graph = facebook.GraphAPI(TOKEN)", "group_id": 81, "id": 775988}, {"user_id": 14309, "stars": [], "topic_id": 9279, "date_created": 1303422418.3249309, "message": "You'll also require the \"publish_stream\" permission, mention it among the scope parameters like email and offline_access are in the url above", "group_id": 81, "id": 776010}]