PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, February 21, 2022

[FIXED] Is Facebook no longer supporting the legacy canvas apps?

 February 21, 2022     facebook, facebook-canvas, facebook-php-sdk     No comments   

Issue

I have an app that I wrote a couple years ago that uses Canvas/FBML and relies on fb_sig and other parameters passed to my canvas application. As of about a week ago, I am only getting the signed_request parameter passed to my application instead of the fb_sig and other variables that used to come for a canvas request.

My application 'edit' page under 'Advanced' shows that there is a Migration feature labeled "signed_request for Canvas", but I have that disabled and am still getting the signed_request parameter for calls to my Canvas/FBML app.

These are the parameters that used to get passed to my app: https://developers.facebook.com/docs/authentication/fb_sig/

Does anyone know how I can get this fixed and working with the old code? Thanks!


Solution

Yeah. I got the same problem and updated all of my apps yesterday.

In fact, you need to follow the headlines here: http://developers.facebook.com/blog/post/534/ and download the latest libraries.

Basic:

$fb = new Facebook(array(
      'appId'  => APP_ID,
      'secret' => APP_SECRET_KEY,
    ));
$user_id = $fb->getUser();

And then you need to replace all old facebook calls (like $facebook->api_client) by a call to the "new" Graph API (http://developers.facebook.com/docs/reference/api/).

You need also to don't longer use the facebook $_POST parameters, like fb_sig_user because they don't exist anymore.

Hope this will help you.



Answered By - F2000
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing