Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8591105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:26:59+00:00 2026-06-11T23:26:59+00:00

there is Facebook OAuth2 module in Tornado , but i dont get the idea

  • 0

there is Facebook OAuth2 module in Tornado, but i dont get the idea behind it:
the example will get the “stream” from my wall, but because i want to see how to post on the wal using Tornado, i found a another Python module, but this one dont use the OAuth, but requires another key: a Token, and when i go to Facebook and generate it, it give me two application: the one that i created from Tornado, and the second one is “Graph API Explorer” that allowed me to generate a long key in “Extended Permission”, but i still cant post on my Facebook Wall.

Update: here is the code iused with the Python-Facebook module:

import facebook

graph=facebook.GraphAPI("____")
profile = graph.get_object("me")
graph.put_object("me", "feed", message="I am writing on my wall!")
print profile

and gives me this error:

facebook.GraphAPIError: Error validating access token: This may be because the user logged out or may be due to a system error.

Update2: it worked, it seems that i must wait a certain time to validate the save the Token in their database?

so my question is still: what is the difference between the Token and the OAuth Acces in Tornado. because am planning to use a notification everytime the application updates to Facebook Users (posting the update in the page’s wall to be seen by the users of that page)

Update3: it seems that Facebook dont allow to post more than one post by a period of time, else i got an error:

Traceback (most recent call last):
File "C:\Users\toto\Desktop\tooooooooooorfacebook.py", line 5, in <module>
graph.put_object("me", "feed", message="this is a test")
File "C:\Python27\lib\site-packages\facebook.py", line 140, in put_object
post_args=data)
File "C:\Python27\lib\site-packages\facebook.py", line 298, in request
raise GraphAPIError(response)
facebook.GraphAPIError: (#506) Duplicate status message
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:27:01+00:00Added an answer on June 11, 2026 at 11:27 pm

    am sorry for asking it, now i think it got the difference:

    since there is time limit to the Token, so it will be a hard task to generate it everytime by the Admin, this what Tornado do, it asks for the Token for every access, so it will get the Refreshed one.

    self.facebook_request("/me/home", self._on_stream, access_token=self.current_user["access_token"])
    

    so it gets everytime the Token.

    thank you again and sorry again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway to get the Facebook ID of a user without forcing them
I try to get 60 days facebook access token from server side request. After
Is there a way to get cookies for specific domain (Facebook) and delete all
There are some question on the StackOverflow about facebook & email, but after reading
Hello i'm trying to use facebook server-side authenticaion to get the access token but
there is an facebook application, you can see it there: http://www.facebook.com/tdmtravelclub?v=app_197602066931325&app_data=wlbb%3D1 You have to
Is there any open source similar to Facebook's share/status update widget or I have
Is there any way to change the Facebook album privacy settings with graph api
Is there any way to insert facebook like into pop image of fancybox?
Is there a way to crawl all facebook fan pages and collect some information?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.