PHP Classes

facebook still warns to upgrade to v2.* graph API

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  facebook still warns to upgrade to...  >  (Un) Subscribe thread alerts  
Subject:facebook still warns to upgrade to...
Summary:Version 20150408. But Facebook warns to upgrade to V2.x
Messages:3
Author:sootsnoot
Date:2015-04-14 07:48:32
 

  1. facebook still warns to upgrade to...   Reply   Report abuse  
Picture of sootsnoot sootsnoot - 2015-04-14 07:48:32
Downloaded 20150408.
Make the call:
$success = $client->CallAPI('https://graph.facebook.com/v2.3/me',
'GET',
array(),
array('FailOnAccessError'=>true),
$user);

But the Facebook permission window warns:
You must upgrade this app to Graph API v2.x
v1.0 will be deprecated on April 30, 2015
Learn how to upgrade

As far as I can tell from the "Learn how to upgrade" link, there should be nothing more to do given that I specified v2.3 in the url for the graph API call. I get the user information okay, but I'm concerned that when April 30 arrives, it will stop working.

Any ideas how to debug this?

  2. Re: facebook still warns to upgrade to...   Reply   Report abuse  
Picture of sootsnoot sootsnoot - 2015-04-14 08:16:51 - In reply to message 1 from sootsnoot
I can't reproduce this reliably. It did not happen when I switched browsers from Chrome to Firefox. Then I cleared cache and cookies in Chrome, and the problem went away there, too. So it looks like it's not a problem in the class at all. Sorry for the noise in the forum!

  3. Re: facebook still warns to upgrade to...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-04-14 17:52:43 - In reply to message 1 from sootsnoot
You were probably using old tokens for Graph API v1.0.

You can still use the original Graph API URLs and you will be upgraded automatically to 2.0.

The only thing is that if you require certain permissions, your application needs to go through review.