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.95k forks source link

PHP 8 Support? #1217

Open realdo-msk opened 3 years ago

realdo-msk commented 3 years ago

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

limonte commented 3 years ago

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 commented 3 years ago

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

holtkamp commented 3 years ago

You might want to +1 https://github.com/facebookarchive/php-graph-sdk/pull/1212

martinbean commented 3 years ago

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

fd6130 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

JimmyBanks commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Thanks @hemberger, I also migrated. Quite straightforward.

martinbean commented 3 years ago

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 commented 3 years ago

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

limonte commented 3 years ago

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

vincentcastagna commented 3 years ago

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

bcastagna commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

martinbean commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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.