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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:57:29+00:00 2026-05-23T18:57:29+00:00

I create an application which appears as a tab on fan page. The administrator

  • 0

I create an application which appears as a tab on fan page. The administrator of the fan page give me the permission manage_pages and then the tab of my application is added to his fan page.

The problem is that I didn’t find any example code on how to use this permission with the PHP SDK. I looked in the file base_facebook.php of the SDK, and I guess that I should using the function getApiUrl, but I’m not sure and probably I don’t know how using this function.

  • 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-23T18:57:30+00:00Added an answer on May 23, 2026 at 6:57 pm

    Now that you have the manage_pages permission, take the access token, pass it into a method like the one I’ve created below to get an access token to manage the page. Each page has its own access token that you need to use once you have the manage_pages permission.

    function get_page_access_token($page_id, $access_token, $user_id) {
        $data = file_get_contents('https://graph.beta.facebook.com/'.$user_id.'/accounts?access_token='.$access_token);
        $pages = json_decode($data,true);
        foreach($pages['data'] as $page) {
          if($page['id'] == $page_id) {
            return $page['access_token']; 
          }   
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create application which would display spatial data on Map. I'm thinking
I want to create an application which will have a client and server components.
I want to create an application which main window has canvas (or something where
Is it possible to create a Silverlight application which can be used to provide
I have an AJAX application which has used CSS divs to create panels on
I need to create a flash projector application which can be interacted with, but
I have a window application which uses SP classes to create a site. I
I have an application which has to live as a service, I create an
I would like to create a UIBarButtonItem on my iPhone application which has two
I am attempting to write a VB.net application which will allow users to create

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.