Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

PHP 8 Support? #1217

Open
realdo-msk opened this issue Dec 7, 2020 · 30 comments
Open

PHP 8 Support? #1217

realdo-msk opened this issue Dec 7, 2020 · 30 comments

Comments

@realdo-msk
Copy link

Hello.
Is there any plans for compatibility with php 8 in the near future?

@limonte
Copy link

limonte commented Dec 13, 2020

This project is in https://github.com/facebookarchive

The latest commit was 2 years ago and nobody is answering issues. So, the most probable answer is "no".

@fd6130
Copy link

fd6130 commented Dec 15, 2020

Oh my god.. any forks repo that still active and maintaining?

@holtkamp
Copy link

You might want to +1 #1212

@martinbean
Copy link

So if this is “archived”, what is the official PHP SDK for Facebook?

@fd6130
Copy link

fd6130 commented Feb 11, 2021

So if this is “archived”, what is the official PHP SDK for Facebook?

The facebook developer page lead us to here... so i think this is the official PHP SDK but "archived".

@martinbean
Copy link

I swear this is like the fourth time I’ve seen a PHP SDK created and archived. Surely engineers at Facebook have heard of versioning? The Graph API itself is versioned…

@JimmyBanks
Copy link

So does Facebook want us removing Facebook login systems for our PHP websites, or what is going on with this library being archived?

@JimmyBanks
Copy link

I swear this is like the fourth time I’ve seen a PHP SDK created and archived. Surely engineers at Facebook have heard of versioning? The Graph API itself is versioned…

Do you recall if they "archived" with no replacement prior to reintroducing a replacement?

@fd6130
Copy link

fd6130 commented Feb 22, 2021

So does Facebook want us removing Facebook login systems for our PHP websites, or what is going on with this library being archived?

We still can use this library for PHP websites but i think they won't maintain it anymore since it is "archived". Hope someone will fork this repo and continue the maintainance.

@hemberger
Copy link

Since there seems to not be any officially supported PHP SDK for Facebook, I've migrated to https://github.com/thephpleague/oauth2-facebook, which has been updated recently to include PHP 8 support. Works fine, and the migration was pretty painless.

@lesterchan
Copy link

Thanks @hemberger, I also migrated. Quite straightforward.

@martinbean
Copy link

Hope someone will fork this repo and continue the maintainance.

@fd6130 I sincerely fail to believe that Facebook has the resources to maintain a PHP version of its API’s SDK. It’s not like PHP is a fringe or barely-used language on the web…

@bcastagna
Copy link

Any news on this issue ? I cant believe what I'm reading that FB just doesnt care anymore about this SDK ?!

@limonte
Copy link

limonte commented Mar 2, 2021

I can't believe everybody is complaining about FB and nobody can fork the repo and add the PHP 8 support 😆

@vincentcastagna
Copy link

I can't believe Facebook still point to this SDK in their official documentation while its not maintained nor secure anymore.

@bcastagna
Copy link

@limonte I cannot see a single reason why you would say something this stupid. It's FACEBOOK SDK, not an opensource project, it's their responsibility to provide us developers with tools so we can access their products.

@limonte
Copy link

limonte commented Mar 2, 2021

@limonte I cannot see a single reason why you would say something this stupid. It's FACEBOOK SDK, not an opensource project, it's their responsibility to provide us developers with tools so we can access their products.

@bcastagna please avoid abusive language and read the project's licence: https://github.com/facebookarchive/php-graph-sdk/blob/5.x/LICENSE

I also recommend reading Facebook's Open Source Code of Conduct which you're violating with your language: https://engineering.fb.com/codeofconduct/

@bcastagna
Copy link

@limonte My "abusive" language was the fair response to your ironic notice, which was clearly passive-agressive and brought nothing constructive to solve the issue.
Yes, Licence-wise, perhaps, you are right, but it's just stupid when you own the biggest social niet-work of the world of not providing tools for developers to integrate your social network into their apps. It's stupid and counter-productive. Period.

@JimmyBanks
Copy link

JimmyBanks commented Mar 2, 2021

@limonte Based on your first reply it should be you who volunteers to fork and maintain this repo.

If that isn't the case, then your comments are intentionally trolling and not productive to the issue at hand, please refrain from continuing.

@fd6130
Copy link

fd6130 commented Mar 3, 2021

I can't believe everybody is complaining about FB and nobody can fork the repo and add the PHP 8 support

Even though this is a sarcasm but i think this is too over for almost half of the users who really doesn't know how to add PHP 8 support to this sdk.

You're the one saying but even you didn't add PHP 8 support as well. Leave it be if you are not using this sdk, php or not going to help on this sdk.

@bobmagicii
Copy link

bobmagicii commented Mar 30, 2021

fwiw it works fine on php8 at least what little bit we used for facebook sign in. when you do composer anything just add --ignore-platform-reqs.

bcastagna is not wrong, its facebooks job to handle this other than the fact we all know they've bait and switched us now on the long game (suggested reading: history of facebook's use of php and development of hack lang). we just ended up removing facebook auth from our app and pressed on.

@spekulatius
Copy link

I tend to agree it's on FB to provide an SDK, if they want people to use their APIs. If this one will not be maintained anymore, at least provide a clearly described option/path to change. Guessing around isn't ideal.

@martinbean
Copy link

Any chance of an official response, @gfosco? You seem to be the contributor with the highest number of commits that’s still at Facebook.

@gfosco
Copy link
Contributor

gfosco commented Apr 22, 2021

I don't work there any longer, sorry. I kept it alive as long as I could.

@martinbean
Copy link

Thanks for replying, @gfosco. Do you have a contact who could look at this? It seems a bit strange that Facebook don’t have the capacity to consistently maintain an SDK for perhaps the most popular web programming language on the web.

@spekulatius
Copy link

For those looking for an alternative: I've successfully implemented my required functionality using facebook-php-business-sdk and it's graph API. I can't promise it will work for you, but might be worth looking at.

@bobmagicii
Copy link

someone should do this as a joke at their f8 event and then walk out with the 100,000 for having fixed probably the previously most widely used social media library for php.

image

@rajatvarlani
Copy link

You can check the software at the link https://wordpress.org/plugins/super-socializer, if you want to integrate Facebook login with your website. It's compatible with PHP 8 and it offers social login with 23 other social networks, like - Google, Linkedin, Twitter, Vkontakte, Line, Windows Live (Microsoft), Yahoo, WordPress, Dribbble, Kakao, Spotify, Github, Twitch, Instagram, Steam, Dropbox, Foursquare, Disqus, Reddit, Stack Overflow, Discord, Mail.ru and Amazon.

@martinbean
Copy link

if you want to integrate Facebook login with your website.

@rajatvarlani We don’t. We want an SDK for Facebook’s entire Graph API that is supported for more than five minutes.

@stanislav-janu
Copy link

Hi guys, I created a refactored project for PHP 8.0+. Let's check https://github.com/janu-software/facebook-php-sdk
You can contribute.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests