php-graph-sdk | Facebook SDK for PHP | REST library
kandi X-RAY | php-graph-sdk Summary
kandi X-RAY | php-graph-sdk Summary
The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a Facebook error exception .
- Add a Facebook Request .
- Send Facebook Request .
- Create HTTP client .
- Upload a chunk to the given endpoint .
- Convert raw data to a graph node
- Get host name
- Send request .
- Remove parameters from url
- Request an access token .
php-graph-sdk Key Features
php-graph-sdk Examples and Code Snippets
Community Discussions
Trending Discussions on php-graph-sdk
QUESTION
I've an issue with php-graph-sdk, I've those functions
...ANSWER
Answered 2021-Jul-08 at 14:05Finally I've solved my issue by switching samesite to Lax by adding that in config.php
ini_set('session.cookie_samesite','Lax');
QUESTION
I am trying to migrate from php-graph-sdk to oauth2-facebook as the first one does not seem to be maintained anymore (no activity on github for 3 years), and the second one seemed easy to use.
For a full web scenario where the user clicks on a Facebook Login button and gets authenticated, everything works fine: when logged out, the library allows me to generate a url for the Login with Facebook button, and the callback allows to generate a token based on the code received.
For a mobile <--> web scenario, things start to break: I am using the Facebook Android and iOS SDK to get an accessToken that I pass to my php script. Then I try to use this accessToken to retrieve the user profile:
...ANSWER
Answered 2021-Jul-08 at 12:47QUESTION
I would like to get images from my Instagram account to my web page. So I try to use FB php sdk and get accessToken first according this documentation. But it returns null. I don't know what is wrong with the code.
...ANSWER
Answered 2020-Nov-12 at 21:12If I've understood the docs correctly, if you want to get an access token dynamically, according to https://developers.facebook.com/docs/facebook-login/web, you need enable fb-login for your app
- https://developers.facebook.com/apps/
- select your app
- add fb-login & follow the tips.
Otherwise you should just be able to get an access token for your app from the web interface and use that over and over.
See also : https://developers.facebook.com/docs/facebook-login/access-tokens#apptokens
There's also:
https://developers.facebook.com/tools/explorer/?method=GET&path=me%3Ffields%3Did%2Cname&version=v9.0
Which enables you to generate an access token, and test out a call to the graph api, AND allows you to export code you can copy/paste:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-graph-sdk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page