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
11
votes
4 answers

Post from app does not appear in user's timeline

Since Facebook made Timeline now public, the my app post using stream publish does not appear in user's Timeline, only in News Feed. Is there's anything we should do about this or anything new on publish stream or feed post regarding the new…
11
votes
6 answers

Facebook (FB.login) not requesting my permissions

so after updating to the php 3.0 sdk and what not, my FB.login() function no longer asks for the permissions I set it to ask. Any one else getting this? Here's some code for you: window.fbAsyncInit = function() { FB.init({ appId: 'xxx', …
Johny
  • 111
  • 1
  • 1
  • 3
11
votes
3 answers

Getting "(#100) Pages Public Content Access requires either app secret proof or an app token" issue when calling Facebook API?

I am developing an app that syncs with users Facebook account and fetches Facebook page information. Initially, app asks for Login with Facebook and gets page list. After getting pages I am calling API to get posts associated with each page. Once I…
Nilesh Bhagate
  • 191
  • 1
  • 1
  • 11
11
votes
2 answers

Facebook Logout from my website in Laravel

When I click on logout... I get this exception in console: FB.logout() called without an access token. Question: I already have Access token saved in Session and I have access to it in Client side also. I already checked this answer and could not…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
11
votes
3 answers

Reading data from Facebook graphObject

A user has accepted my Facebook app. I can now access some of their data. It is returned as a graphObject, which contains something like: Facebook\GraphObject Object ( [backingData:protected] => Array ( [id] => 11111 [first_name] => Bob [gender] =>…
user1322720
11
votes
1 answer

Facebook PHP API post to wall falls under "Recent Posts by Others"

I want to post a message to the wall of a Facebook Page. I am the admin of the app and the page used in this code, I already gave permissions needed for my app to be able to post on my page, it works when I use only the field "message", like…
Flames
  • 123
  • 1
  • 1
  • 6
11
votes
4 answers

Graph API new feed post object-Attachment not showing

I'm having a strange problem with the graph API, the below code used to work for me adding a post to a users news feed with a thumbnail of the attached photo (referenced in 'object_attachement' parameter). However now the post is created as expected…
Shaun Bohannon
  • 491
  • 1
  • 4
  • 11
10
votes
1 answer

CurlException: 28: connect() timed out?

Today I was trying to make application on Facebook using PHPSDK and I saw ocassionaly displayed exception from library saying CurlException: 28: connect() timed out! So, to check if it's my code bug I downloaded latest library PHPSDK from github.…
10
votes
2 answers

Facebook API: How to post to own application wall without login

I want to post to my own application wall a text with a script but without to login first because it should be done automatically. How could I do that? I tried already: $fb = new Facebook(array( 'appId' => 'appid', 'secret' => 'appsecret', …
Poru
  • 8,254
  • 22
  • 65
  • 89
10
votes
3 answers

Laravel Socialite error: "An active access token must be used to query information about the current user."

I'm using Socialite to authenticate my users via Facebook. However, I can't get it to work. I followed this tutorial, but I get the following error: I looked everywhere and tried whatever, but I can't get it to work. Here's my code: In…
Markinson
  • 2,077
  • 4
  • 28
  • 56
10
votes
2 answers

I upgraded to FQL to Graph API - am I using it correctly?

I used the FQL until a few days ago to retrieve Facebook data, but I noticed that it will be discontinued in about 1 year so I upgraded to Graph API. But am I using it correctly? Will this method work still next year? I am still using a…
user1227914
  • 3,446
  • 10
  • 42
  • 76
10
votes
4 answers

Get latest Facebook posts of page with PHP SDK

The following code is inside a file called facebook_posts.php which I call from my index file like so: . However, where this code is put, there is no response. So neither…
Bram Vanroy
  • 27,032
  • 24
  • 137
  • 239
10
votes
7 answers

Error: Class 'Facebook\FacebookSession' not found with the facebook PHP SDK

I am having a hard time with facebook's SDK documentation. I downloaded the SDK from Github and added it into my PHP project. Here is the file system:    ├── Facebook    │   ├── FacebookAuthorizationException.php    │   ├──…
Paul Fournel
  • 10,807
  • 9
  • 40
  • 68
10
votes
1 answer

How do I integrate Facebook SDK login with cakephp 2.x?

There seems to be very few to no up to date resources on integration of Facebook login with the cakephp Auth component online. I have found the following resources: Old Bakery Article using cakephp 1.3? and an older version of Facebook SDK Cakephp…
10
votes
2 answers

Opengraph displaying as One to One - Without Object Title

In my facebook app i have given the necessary meta tags for the open graph url. When i publish a story using open graph, the story is published on the wall as One to One - Without Object Title mode. When i view it in open graph settings, the One to…