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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:49:23+00:00 2026-06-13T10:49:23+00:00

I am quite new in Facebook application development. I was playing the all day

  • 0

I am quite new in Facebook application development. I was playing the all day with “how to post a message on the wall of a page?”. I finally succeeded but each message got “via Graph API Explorer”. I tried to find how to change it to my application name without success. I tried to see if I could force the value of application in the api command but it did not take it into account. Maybe I miss something 🙁 If someone can help, that would be great!


I am still quite confused. Let me try to explain what I want to do: I would like to automatically publish on a page (as the page) some event that are defined on a website (in a kind of agenda). What I miss, I think, is how everything is working together on Facebook side:
1. the login process: as the application will run in a cron, this should not display a login dialog box.
2. the access token: application or page one?
3. the permissions: from my understanding, I need manage_pages (and publish_stream) but not clear how this should be set.

Thx for any clarification and maybe a clear example :o)

  • 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-13T10:49:24+00:00Added an answer on June 13, 2026 at 10:49 am

    OK I think I have finally found the way to do it. I needed a page access code and not an application access code. The token must be generated outside the application as a long live one.

    • Get a code using:

    https://www.facebook.com/dialog/oauth?client_id={app_id}&redirect_uri={my_url}&scope=manage_pages,publish_stream

    app_id is your application ID
    my_url is your application URL
    scope is the permission you want to be granted

    In the redirected URL, you will have a code parameter. Copy it.

    • Generate the user access code using:

    https://graph.facebook.com/oauth/access_token?client_id={app_id}&redirect_uri={my_url}&client_secret={app_secret}&code={code}

    app_secret is your application secret key
    code is the code from step 1

    You will get as output the user access token. This one is a short live one.

    • convert the short live to a long live user access token using:

    https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id={app_id}&client_secret={app_secret}&fb_exchange_token={short live access token}

    Replace the “short live access token” by the one you got on step 2
    You will get as output the infinite user access token.

    • Get the page access token (this one will be infinite access token as
      the user access token is now an infinite access token too):

    https://graph.facebook.com/me/accounts?access_token={infinite user access token}

    Replace the “infinite user access token” with the value you got on step 3.

    This command will list all the pages you administer. The output contains the page access token you need in field “access_token”. You can so use this token in any API command in your application.

    The best of the best is to do all those steps via a server side program (PHP for me) as the application secret key should remain “secret”.

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

Sidebar

Related Questions

I'm really new to Facebook application development, and I'm quite confused about application permissions
I am trying to post some content to Facebook wall through my Android application.
Scenario: Quite new to DI and Ninject but would love to master it so
I've been working a little bit on a Facebook application, but when I registered
I am quite new to Android dev, but not Java dev, so doing the
I'm new to web development. Reading the Facebook Graph API documentation, I found it
I'm brand new to Facebook development, and I'm puzzling over the FB Requests documentation,
Quite new to coding for android but this issue has me tearing my hair
I'm new to Facebook app development and I ran into a stupid issue: I
I noticed a long time ago (when facebook updated their application after the new

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.