Questions tagged [facebook-php-sdk]

The Facebook PHP-SDK provides Facebook Platform support to your PHP - based web apps.

This library helps you add Facebook Login and Graph API support (targeted posting, ad management, photo upload etc.) to your Website.

Documentation facebook-php-sdk

3679 questions
271
votes
18 answers

Composer install error - requires ext_curl when it's actually enabled

I'm trying to install Facebook PHP SDK with Composer. This is what I get $ composer install Loading composer repositories with package information Installing dependencies (including require-dev) Your requirements could not be resolved to an…
Michal Artazov
  • 4,368
  • 8
  • 25
  • 38
60
votes
7 answers

How to extend access token validity since offline_access deprecation

Since the offline_access Permission is deprecated in Facebook's Authentication flow, we have problem getting the so called long lived access tokens without that permission. In Facebook's document about the deprecation it says, that server side OAuth…
38
votes
2 answers

Facebook Page/Post insights with costs

Edit: I've managed to get this far in the documentation: https://developers.facebook.com/docs/graph-api/reference/v2.5/promotion-info However there's nothing linking to the {promotion-info-id} parameter in the docs that I could find. I'll accept an…
Ignas
  • 1,965
  • 2
  • 17
  • 44
36
votes
3 answers

Error Invalid Scopes: offline_access, publish_stream, when I try to connect with Facebook API

I got this error when I try to connect with Facebook API Invalid Scopes: offline_access, publish_stream. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid…
34
votes
1 answer

Weird url appended "#_=_"

Possible Duplicate: Play Framework appending #= to redirect after Facebook auth via OAuth2? Has anyone else seen this happen? I am building a Facebook canvas app using the Facebook PHP SDK, and some Javascript. Now when I take the user through…
bool.dev
  • 17,508
  • 5
  • 69
  • 93
28
votes
6 answers

Object with ID '203618703567212' does not exist, cannot be loaded due to missing permissions, or does not support this operation

After the facebook have updated the Graph API and it's request I am facing this error Unsupported get request. Object with ID '203618703567212' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please…
Ahtisham Ashraf
  • 684
  • 1
  • 6
  • 12
26
votes
2 answers

Facebook Auth Dialog: Developer warning concerning the use of "display" type "popup"

starting today we receive developer warnings in the auth dialog with the following message: You are using a display type of 'popup' in a large browser window or tab. For a better user experience, show this dialog with our JavaScript SDK without…
25
votes
11 answers

Getting list of Facebook friends with latest API

I'm using the most recent version of the Facebook SDK (which lets to connect to something called the 'graph API' though I'm not sure). I've adapted Facebook's example code to let me connect to Facebook and that works... but I can't get a list of my…
Eric
  • 5,104
  • 10
  • 41
  • 70
25
votes
3 answers

Facebook SDK error during login attempt: No URL set

I'm getting the following error message Facebook SDK returned an error: No URL set! Fatal error: Uncaught exception 'Facebook\Exceptions\FacebookSDKException' with message 'No URL set!' in …
stochazesthai
  • 617
  • 1
  • 7
  • 20
24
votes
9 answers

CSRF state token does not match one provided FB PHP SDK 3.1.1 Oauth 2.0

My server logs show a "CSRF state token does not match one provided" error which seems to happen for almost every user. However, the users are created and/or authenticated and I am able to retrieve the user info. I am using a Linux server with…
23
votes
3 answers

passing custom parameters to facebook fan page tab

I'm unable to get custom parameters send to my facebook fan page tab. I'm using php and is passing like this: http://www.facebook.com/pages/{page-name}/?sk=APP_ID&pass=1 but I'm unable to read the parameter pass Sreejith
sreejith
  • 779
  • 3
  • 11
  • 20
21
votes
0 answers

facebook feed not loading after jquery minified version update

I have an artist page on my website and I am fetching particular artist feed from facebook widget. But I have recently updated jQuery minified version to the latest and it stopped working. This problem is occurring on Firefox Mozilla. My html
20
votes
3 answers

Facebook Messenger Chatbot how do I collect the users geo location that they send?

In Facebook Messenger there is an icon allowing the user to send their geo coordinates. Is this available on the Facebook Messenger platform yet i.e. if a user sends me their location does my Chatbot have access to it? If so how is it done because…
Lee Woodman
  • 1,319
  • 2
  • 16
  • 30
20
votes
4 answers

Face recognition via facebook API

Currently, if I have a facebook friend whom I've tagged in a picture that I've uploaded, when I upload a picture with his face on it, facebook automatically suggests his user as a tag. Is it possible to emulate this same behavior via the facebook…
19
votes
6 answers

Facebook Graph API not returning email

I have the following code: $fb = new Facebook([ 'app_id' => $appId, 'app_secret' => $appSecret, 'default_graph_version' => 'v2.9', ]); $oAuth2Client = $fb->getOAuth2Client(); $tokenMetaData =…
Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231
1
2 3
99 100