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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:42:51+00:00 2026-05-25T06:42:51+00:00

We developed a facebook application as tab application using FBML. Now Facebook had deprecated

  • 0

We developed a facebook application as tab application using FBML. Now Facebook had deprecated the fbml and we are converting our application to iframe. For this the user can create a FB page and add the application to their facebook page. We are taking the user’s facebook page id and check in the DB with this page id and showing the data for that particular user. In the FBML tab application we are getting the facebook page id as a request($REQUEST[‘page_id’]). This seems to no longer work.

  1. When we convert the application to IFRAME tab application, FB is not providing the page id. We are not using GRAPH API and there is any authentication before viewing the application. I had read from a forum that facebook signed request, we will get the page id and used the following code and not getting any data.

    $sgrequest = $_REQUEST['signed_request'];
    $requestVal = parse_signed_request($sgrequest,$secret);
    print_r($requestVal);
    $_REQUEST['signed_request']['app_data']
    
    function parse_signed_request($signed_request, $secret) {
    list($encoded_sig, $payload) = explode('.', $signed_request, 2);
    // decode the data
    $sig = base64_url_decode($encoded_sig);
    $data = json_decode(base64_url_decode($payload), true);
    
     if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') {
       error_log('Unknown algorithm. Expected HMAC-SHA256');
       return null;
     }
    
     // check sig
     $expected_sig = hash_hmac('vctly987', $payload, $secret, $raw = true);
     if ($sig !== $expected_sig) {
       error_log('Bad Signed JSON signature!');
       return null;
     }
    
     return $data;
    

    }

    function base64_url_decode($input) {
    return base64_decode(strtr($input, ‘-_’, ‘+/’));
    }

  2. Is there any other way to get the page id of the fan page through javascript or any other method?

  • 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-25T06:42:52+00:00Added an answer on May 25, 2026 at 6:42 am

    have you tried printing out $requestVal[page][id] after parsing the signed request?

    according to the documentation, the signed request contains an array called ‘page’ that contains the key ‘id’. This stores the value of the page’s id number.

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

Sidebar

Related Questions

I've developed a Facebook application using the Facebook C# SDK. Interestingly, whenever the user
I want to switch an image under Facebook page's tab (static FBML application), but
We have a strange issue with running an Facebook IFrame application (using MVC 2).
I have developed a Facebook application that runs inside an iframe in the Facebook
I'm developing a Facebook application using their Graph API. I have previously developed an
I have developed a face book iframe application in .net c#.First time when user
I developed an application which uses we can login to facebook and the logged
how to develop new facebook application (login , add photos ) using the api
I want to develop a Facebook connect application that can operate both inside a
I am working on a Facebook game which is developed using Zend framework. Right

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.