facebook

Graph API: How to grab current user's information?

I'm trying to get some basic information about a user in a PHP script (id and name). I have tried the following methods: $retrieve = curl_init("https://graph.facebook.com/me?access_token=$accesstoken"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($retrieve, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); ...

Get Facebook page's feed without page's postings.

I can get a page's wall feed by making a simple javascript api call to: FB.api("/PAGE_ID/feed", { limit:6 }, function(response){} This gets the last 6 Posts on the page. I'd like to be able to select the last 6 posts by people who are not the page, however. Is there an undocumented (or documented!) parameter or other way to accomplish...

How's the current state of Facebook's session and access_token?

Now I can remember more, that whenever we get back a Facebook session or access_token, it should have a life time, and before we get back a user id, the library is supposed to have verified the user id is real by doing MD5, etc. How do session and access_token work currently? Is there infinite session any more? Do they normally expire...

Anyone Know the Lifespan of a Facebook API Access Token?

what is the lifespan of an access token in the FB oAuth API? Not the extended offline permissioning, just a normal access token? ...

How come Facebook's Graph API issue a cookie for "access_token", "secret", "session_key", "sig"... so many fields?

The following is what Facebook gives as a cookie to a website that uses Facebook connect. It issues one cookie with the name fbs____<appID>_____, and can be splitted using the & character: (numbers changed... but they are in similar form) Array ( [0] => "access_token=32480239450325|2.39F_lt3098asddASDL__.3600.1287892800-123456789|...

Facebook app beginners guide

I'm looking to write a facebook app that can hold some state. Basically what I want is something where using this app the user can issue questions to their friends (sort of like a survey but more complex interface). I have never written a facebook app so looking for a good place to start reading. Thanks in advance :) ...

Possible to authenticate facebook from unix console?

I'm playing around with an embedded device, running a linux kernel. It has web access via a proxy. My question is, is it possible to login via the unix console? I can retrieve the login page using wget http://m.facebook.com, but I'm not sure where to go from there. Thanks in advance. ...

Facebook API and Json with PHP,how to?

Hi friends, https://graph.facebook.com/search?q=India&amp;type=post i am using the above api of Facebook and i am getting following Output { "data": [ { "id": "501585456_163489377008878", "from": { "name": "Ian Robinson", "id": "501585456" }, "message": "\"Media subdu...

Facebook post on page with PHP SDK

Hi there. I'd like to post on page - throught my site. . I didn't find anything that could help me in documentation. Also none of google results gave mi answer. function post_facebook($data=null){ $result = ""; require_once (ROOT. "/apps/configuration/models/ConfigurationItem.php"); require_once (ROOT . "/compo...

facebook python-sdk post_to_wall attachment

Hi I am using the python-sdk (http://github.com/facebook/python-sdk.git) on google appengine. I am runnig the "newsfeed" example. In facebook.py i had to import urllib2 and then change file = urllib.urlopen("https://graph.facebook.com/" + path + "?" + urllib.urlencode(args), post_data) to file = urllib...

Facebook Like Box - monitoring clicks

Is it possible to somehow monitor who "Likes" my Facebook page, by intercepting the clicks in the Facebook Like Box? http://developers.facebook.com/docs/reference/plugins/like-box I would like to find out if the user who comes to my site already likes it, and enable some additional functionality based on this (for example, less advert...

Adobe Facebook API Facebook.login VS Facebook.ui popups

I'm currently building an application using the Adobe Facebook API and I've run into an issue where for the login method the Facebook login popup displays but when doing a Facebook share/post the popup is blocked. This code works fine and displays me a Facebook login popup without question (Firefox): var permissions:Array = ['publish_s...

Does OmniAuth provide simple hooks to the Facebook Graph API?

I am working on integrating Omniauth with my new Facebook application, and I am looking through the rather sparse documentation to understand if it gives simple ways to access the graph API... I am moving from Koala which was pretty simple. Has anyone out there used Omniauth for this yet? I want to get photos from the users' albums, ...

How do I get the list of mutual friends on Facebook using their API?

I am trying to get a list of mutual friends of myself and another user but none of the API I found in the documentation works. Either I get some weird permission errors that I can only get my friends list and no other user or I get the following error: Fatal error: Call to a member function friends_getMutualFriends() on a non-object in ...

Facebook Application post to wall

Hello there, I'm looking for a simple way to add a post to a user's wall when this one just allowed my application. I have the publish_stream & status_update enabled in the below code. 'req_perms' => 'email,publish_stream,status_update' Now I'm just looking how I could make a simple Wall post like "'username' is now using xxx applic...

Android: Draggable view to show another view (similar to Facebook)

Hey everyone, For those of you who have used the Facebook app, it has an interesting way of showing more information on the home activity by having a draggable view at the bottom of the screen that, when dragged up, shows Facebook notifications. Dragging the same view back down hides the notifications. Note that this will work either ...

Exception while trying to update multiple status messages

Hello, I am trying to set status msgs for users from my application. While doing that I get the following exception for random users in my list. PHP Fatal error: Uncaught exception 'FacebookRestClientException' with message 'An unknown error occurred' in /public/facebookapi_php5_restlib.php:3065 Stack trace: #0 /public/facebookapi_p...

Can you publish a personal feed to Facebook?

Somewhere in the Facebook APIs, is there an ability to publish a stream of events that will only be seen by a specific user in his feed (unless he shares them?) We want to tailor the experience of each user separately. ...

Accessing header variables with Actionscript 3

Hi guys, I would like to know if it is at all possible for AS3 to grab header information and process it? I am trying to avoid having to use PHP to get the information, then store it in a DB, give it to flash, then go and delete it again, or something alike. Basically the flash is waiting for three variables that get sent through the...

Android - Can't get dialog to display

I'm fairly new to Android and I'm trying to integrate the Facebook API for Android but I can't get the dialog to display on screen despite not seeing any errors or warnings via the debugger. I've tried two approaches and both failed. The first is the standard Facebook SDK approach where I call String[] PERMISSIONS = new String[] {"pu...