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 3996340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:16:03+00:00 2026-05-20T07:16:03+00:00

I want to make a script that lets me post to my facebook fan

  • 0

I want to make a script that lets me post to my facebook fan page (which I’m an admin of)

As far as I’ve seen, Most graph api examples are about making facebook apps in python and make them communicate with python, which is quite different from what I want.

Also The graph api requires the oauth token, which the documentation claims it’s obtained by doing:

https://www.facebook.com/dialog/oauth?
client_id=YOUR_APP_ID&redirect_uri=YOUR_URL

I think this implies:

a) I HAVE to create a facebook app for this, which I didn’t think it was necessary (after all it’s something that would require only my standard credentials and wouldn’t be used by other people), but it is fine. I have an app created for this task.

b) I need an URL, which I don’t have, because it’s just a script.

Any ideas on where I should look for some info?

  • 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-05-20T07:16:04+00:00Added an answer on May 20, 2026 at 7:16 am

    First You need to get your Facebook_App_Id and Facebook_App_Secret, from facebook which you will get when you register your app.

    Then you include the needed urls.

    redirect_client_url = 'http://your-redirect-url'
    access_token_url = 'https://graph.facebook.com/oauth/access_token?client_id='+consumer_key+'&redirect_uri='+red   irect_client_url+'&client_secret='+consumer_secret+'&code='
    scope = 'publish_stream,offline_access,user_birthday,email'
    authorize_url = 'https://graph.facebook.com/oauth/authorize?client_id='+consumer_key+'&redirect_uri='+redirect_client_url+'&scope='+scope+'&display=touch'
    user_info_url = 'https://graph.facebook.com/me?access_token='
    

    Your consumer key and consumer secret are the Facebook app id and facebook app secret respectively.

    You would basically get the access_token following the Oauth2.0 guidelines and store the access_token and fan page idsomewhere in your database. https://github.com/simplegeo/python-oauth2 is a good example on how to get the oauth token. Then when you try to post use the access token by using something like this.

    post_data = {'access_token':access_token, 'message':'hey this is a test!'}
    request_path = str(facebook_id)+'/feed'
    post_data = urllib.urlencode(post_data)
    response = urllib2.urlopen('https://graph.facebook.com/%s' % request_path, post_data)
    

    This should work for posting to a user’s wall. But i am sure posting to a facebook fan page should be something very similar.

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

Sidebar

Related Questions

I want to make a python script that tests the bandwidth of a connection.
I want to make a little script that make the mouse moves until the
I want to make sure people can't type the name of a PHP script
I want to make an etag that matches what Apache produces. How does apache
I want to make a table in SqlServer that will add, on insert, a
I want to make an entity that has an autogenerated primary key, but also
I want to make sure that a set of functions have the same signature
I want to make a JavaScript application that's not open source, and thus I
I've made this script that lets you navigate through multiple divs with jQuery, but
I am trying to create a little php script that can make my life

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.