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

Is it necessary to use the sdk in order to retrieve page likes using graph API? #1063

Open RoseanneC opened 5 years ago

RoseanneC commented 5 years ago

This is a question rather than an issue so hope this is ok.

On the site I'm working on we want to display the number of likes for a page. I have implemented this using this php-graph-sdk and it works perfectly. However with this site, any third part plugins go through a review process and the reviewer has said to me that they use PHPCS to find any errors and that they can see 28 errors to address...

I'm wondering if it is possible to implement the functionality I need - which is just retrieving page likes without using the sdk? This does need to be implemented in php rather than js in order to have the fb app secret more secure and so that we can take measures to reduce the chances of rate limiting.