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
1
vote
2 answers

Facebook user similarity?

I am trying to build a Recommendation system that could use the information from facebook. Well on the process I am trying to find the similarity between a user and his friends. That way I could consider only n similar friends information as a…
1
vote
0 answers

Facebook App - Publish to friends News Feed

I'm in the middle of building a Facebook App, I want the app to publish a predefined message to: 1) A user's news feed ( i.e. any user who has used the app ) 2) If possible to the user's friend's news feeds or even their wall. At the moment, I…
Stephen
  • 4,715
  • 8
  • 53
  • 78
1
vote
1 answer

Facebook Event Search - Access Token

A while ago I had written some code that searched Facebook events using the api. I've been trying to revive that code but have been unsuccessful. The main difficulty I see is that is that searching for public events now seems to require an access…
Ryan C
  • 1,003
  • 1
  • 14
  • 26
1
vote
2 answers

Facebook Signed in request / fangate not working. Undefined index/offset errors

I'm creating a facebook tab page and I would like to use fan gating. I've used fan gating before and have had no problems, but this was like 4 months ago. And I'm using the same PHP but this time I'm getting problems. See below the basic code for my…
Joshc
  • 3,825
  • 16
  • 79
  • 121
1
vote
1 answer

Unable to logout of Facebook using FB PHP SDK

I'm using the FB PHP SDK to get a user's FB access token etc. After I'm done getting all my info, I am attempting to logout the user, but it doesn't work. For debugging purposes, I'm doing this: $facebook = new Facebook(array( 'appId' =>…
Ayush
  • 41,754
  • 51
  • 164
  • 239
1
vote
0 answers

Error accesing user token OAuthException: An active access token must be used to query information about the current user

I have been looking for this error but I still have not found anything that prevents it from happening, the thing is that it only happens sometimes and also i get another error on my error´s log There exists a cookie that we wanted to clear that we…
1
vote
2 answers

Facebook - Publish Checkins using PHP SDK/JavaScript SDK

I'm trying to publish checkin using Facebook Graph API. I've gone through Facebook API documentation (checkins) and also have the publish_checkins permission. However, my checkin is not getting published. May I know is there anything wrong or am I…
Mysophobe
  • 622
  • 2
  • 10
  • 33
1
vote
1 answer

Post content to FB using graph API

Okay, So, I've been dabbling with the Graph API for a couple of days now. I know how to post a simple message to a user's wall. But, I need to post multiple links to a user's wall. And apparently, that's not possible using my previous method. I'm so…
Lance
  • 4,736
  • 16
  • 53
  • 90
1
vote
1 answer

Detect if user has "read" an article with Open Graph

Okay so I read this post "http://facebook.stackoverflow.com/questions/10373897/deleting-a-previosly-posted-article-with-opengraph-or-check-if-said-article-has" but I'm using the news.reads action type. So on the website when a user logs in with…
markb
  • 1,100
  • 1
  • 15
  • 40
1
vote
1 answer

cannot get user_id with get_user()

i am using the facebook php sdk in conjunction with codeigniter. the problem i have now is that i seem to be unable to get the user_id via get_user() it will always return 0. this is my code:
1
vote
1 answer

Posting to user feed > image is missing

My app is posting to the users Facebook feed. Everything works fine, but the picture is missing. I cannot figure out why. This is the array used by the $facebook->api method: Array ( [message] => MyText [link] => MyLink [name] => MyName …
user1090047
1
vote
1 answer

Facebook connect php - staying logged in

I'm trying to use facebook connect with php, and it's important that the user will stay logged in to my site even after the session is destroyed. I've run the with_js_sdk.php example from the SDK. In this case the user has to log in again on every…
Moshe Shaham
  • 15,448
  • 22
  • 74
  • 114
1
vote
1 answer

Retrieve top 10 friends of user on Facebook (get their UIDs) PHP, Facebook API

How do I get a user's top 10 friends' uids, and wrap each uid with specified string? From: Get list of top friends for facebook app, I see this: $statuses = $facebook->api('/me/statuses'); foreach($statuses['data'] as $status){ // processing likes…
Mafia
  • 792
  • 2
  • 19
  • 39
1
vote
1 answer

How do I post to a Facebook timeline?

I have an app which uses the Facebook PHP SDK. It used to be a simple matter to post to a user's Facebook wall. I would do the authentication, and then something like: $ret_obj = $Facebook->api('/me/feed', 'POST', …
Sharon
  • 3,471
  • 13
  • 60
  • 93
1
vote
0 answers

PHP - Validating oauth_token without making api call

I'm writing a PHP class for vBulletin for Facebook connect. I need a way of validating an oauth token without making an cURL request to Facebook for validation checks. It has to perform some string-format validation but cannot be tied to just…
1 2 3
99
100