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

  • SEARCH
  • Home
  • 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 8833137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:42:29+00:00 2026-06-14T08:42:29+00:00

I create app in facebook and page in my profile. In Select how your

  • 0

I create app in facebook and page in my profile. In “Select how your app integrates with Facebook” section I don’t select any option because I want only post text to facebook page (maybe this is problem?).
I have this code:

FACEBOOK_APP_ID = 'myappid'
FACEBOOK_APP_SECRET = 'myappsecret'
FACEBOOK_PROFILE_ID = 'myprofileid'

oauth_args = dict(client_id     = FACEBOOK_APP_ID,
                  client_secret = FACEBOOK_APP_SECRET,
                  scope         = 'publish_stream',
                  grant_type    = 'client_credentials'
                  )

oauth_response = urllib.urlopen('https://graph.facebook.com/oauth/access_token?' + urllib.urlencode(oauth_args)).read()

oauth_response looks good

but when I run:

resp = urllib.urlopen('https://graph.facebook.com/me/accounts?'+oauth_response).read()

I get error:

{"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}}

What am I doing wrong? I want to post on page wall some text when, for example, I click button on my website (Django).

UPDATE:

Ok, I get the pages data in json. I parsing it and I get page_access_token, but when I call this:

attach = {
  "name": 'Hello world',
  "link": 'http://linktosite',
  "caption": 'test post',
  "description": 'some test'
}

facebook_graph = facebook.GraphAPI(page_access_token)
try:
    response = facebook_graph.put_wall_post('', attachment=attach)
except facebook.GraphAPIError as e:
    print e

I get error: “The target user has not authorized this action”

  • 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-14T08:42:30+00:00Added an answer on June 14, 2026 at 8:42 am

    This question is basically asking about the same problem, and the answer seems to be what you’re looking for: (OAuthException – #2500) An active access token must be used to query information about the current user

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

Sidebar

Related Questions

I want to create a FB app for a client's Facebook Page. How do
I want to create a Facebook app that can operates inside IFrame / FB
I am looking to create a Facebook App and the data I want to
I want to create login and password fields same as in facebook app for
I have a Facebook app and I need to create a Facebook page for
On this page Step 1: Create a Facebook App To create a Facebook app,
I have a facebook app page, and a separate facebook business profile page. The
When you create a Facebook Connect app/site you automatically get a Facebook app page
Im trying to create a facebook app with a canvas page. When i try
I have created a Facebook App and a Facebook Page for a company. What

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.