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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:13:58+00:00 2026-05-24T07:13:58+00:00

I used the graph api in order to connect the user and publish an

  • 0

I used the graph api in order to connect the user and publish an event on its wall.

But if I am connected as a page, I get this error message : “You need to be connected as a user and not as a page to run this app”

But I which I could publish my event on a fan page.

Here is my TOKEN_URL

How shoud I do to be able to publish on my fan page.
How can I enable that ?

  • 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-24T07:13:58+00:00Added an answer on May 24, 2026 at 7:13 am

    To publish “on behalf” of a Page, you need to use a Page access token. To get a Page access token, first get an access token for a user with the manage_pages and publish_stream permissions:

    https://graph.facebook.com/oauth/authorize?client_id=YOUR_APP_ID&
    redirect_uri=YOUR_REDIRECT&scope=manage_pages,publish_stream&type=user_agent
    

    Then, using the access token you get as a result, do a GET of:

    https://graph.facebook.com/me/accounts?access_token=ACCESS_TOKEN_FROM_STEP_1
    

    Here, you’ll find the list of the Pages the user is an admin of. Here you can grab the access token for one of these Pages. Now calls you make will be made on behalf of the Page. Now anything you try to post will be posted as the Page. If you are trying to create events, you may also need the create_event permission.

    To see how this works, you can test this out using these URLs in your browser or in the Graph API Explorer.

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

Sidebar

Related Questions

have anyone used FQL of graph API in iOS? I am trying to get
I'm starting to use the Graph API to get my notifications, and in the
I have a chrome extension that uses the facebook Graph API Because its a
What is actually the advantage/disadvantage of each method? I've used the graph API before
I'm trying to use the Facebook Graph API to get all the events I'm
Facebook recently made access to the user's notifications using the Graph API possible. Using
I created a business page on Facebook and using the graph api Im trying
Never used a cache like this before. The problem is that I want to
I used jQuery to set hover callbacks for elements on my page. I'm now
When used like this: import static com.showboy.Myclass; public class Anotherclass{} what's the difference between

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.