There is a supported version of the Facebook Graph SDK compatible with PHP 7.3+ and PHP 8. Should we use it?

Created on 5 February 2022, about 3 years ago
Updated 7 February 2025, 13 days ago

Should we use https://packagist.org/packages/nickdnk/graph-sdk

For connecting a Facebook user account with a Drupal user account we are successfully doing that with only league/oauth2-facebook: #3258724: Message Error: Call to undefined method Facebook\Facebook::getAuthorizationUrl()

But once we get to actually doing something with our Facebook account, like posting to a page, that library does not provide anything. Wanting a place to put in common functions, we started looking into defining our own lightweight Facebook API wrapper— and found nickdnk/graph-sdk, a continuation of the abandoned Facebook-maintained SDK this project previously used.

That said this project is rather a mess and it's not clear how closely we should follow previous practices— doPost() method for instance seems like it was never ever used, anywhere, anyhow, not social_post or social_api or anything.

Anyhow, undoubtedly there's lots of useful stuff in the graph SDK, not sure it's worth the overhead given the unofficial maintenance status and not having some capabilities we will need to use and stash somewhere, such as getting the (infinite-lasting) page token.

Thoughts?

(Working on this with Keegan.)

🌱 Plan
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States mlncn Minneapolis, MN, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024