facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.96k forks source link

Support for Graph API 2.11, 2.12 and 3.x versions #1139

Open lbeier opened 5 years ago

lbeier commented 5 years ago

Hi, all.

The latest SDK version is 5.7, which supports the Graph API 2.10. The version 2.10 of Graph API will be deprecated on November 7, 2019.

Is there a plan to support 2.11 or 2.12? If yes, is there an expected timeline? And what about 3.x? Can we expect the SDK to support this API version?

Thanks!

spryka commented 5 years ago

we need 4.x support

dencorg commented 4 years ago

Hello Any updates regarding this issue? The (messy) alternative option is to manually change the DEFAULT_GRAPH_VERSION in Facebook\Facebook.php file I believe.

Thanks

nebkam commented 4 years ago

@dencorg You don't have to manually change it to have global effect. Since it's just a default and it can be overriden by a constructor parameter:

$facebook = new Facebook([
    'app_id' => '***',
    'app_secret' => '***',
    'default_graph_version' => 'v2.12'
]);

And you're right - editing files in vendor folder is messy :)