facebook

facebook api - How to expire current session ??

//file test.php require_once 'config.php'; if($fb->get_loggedin_user()) { // step1 do something //step2 expire session } else { //FB coonect login button } I need to expire session after i am done with the step1 in the above code. But $facebook->get_loggedin_user() always returns a user id and never goes int...

What is Facebook's new OAuth Wrap Framework? Should I worry about it if I am using OAuth?

I have just implemented OAuth as a signup mechanism complementing the standard signup we have. Recently, Facebook seems to have started using OAuth WRAP. What is new in OAuth WRAP? What are the pros and cons and is it supported widely? ...

How do I check multiple permissions at the same time on facebook connect?

FB.Connect.showPermissionDialog('status_update,offline_access', function(perms) { if(!perms) return callback(false); else return callback(true); }); How do I check multiple permissions at the same time? The above code works only for status_update and its not checking offline access. ...

Polling Functionality inside profile page and users wall in Facebook

Hi, I have visited page "http://www.facebook.com/FamilyGuy". They are providing poll features on their wall. There are radio buttons with some options. If i click on a particular option the response is shown in the form of graph their only. There is another way also . If i click on become a fan. Then this form is posted on my wall. ...

Seting User Agent param in PHP Simple HTML DOM Parser

Is there any way to include the user agent string along with the request send by PHP Simple HTML DOM Parser? ...

How to supress logout dialog box - facebook connect

FB.Connect.logoutAndRedirect("fb.php"); when i call the above it shows a confirmation dialog before logs me out. How can i modify the code so it doesnt show the dialog box. Is there a way around?? ...

Facebook.notifications.send not working with FBJS

Hi, I know the notification.send is about to be deprecated but I still wanted to try it out. I'm using javascript on client side and want to send notifications from the client side. I'm using Facebook.notifications.send('uid','message','user_to_user' Doesn't return me any results also tried. Facebook.notifications_send('uid','messa...

What Facebook API call should I make in order to find new friends by First and Last name?

What Facebook API call should I make in order to find new friends by First and Last name? The functionality that I'm trying to achieve is similar to Find Friends page, but I have to do that programmatically. Many thanks in advance. Sincerely, Roman ...

How to create IM chat client for Facebook in android?

I would like to create my own chat client for facebook IM in Android. I created xmpp jabber protocol in java but i dont know the host name and port number of Facebook IM server. Can any one let me know the Facebook's IM server host name and port number to communicate. ...

How to supress logout dialog box - FB connect

FB.Connect.logoutAndRedirect("fb.php"); when i call the above it shows a confirmation dialog before logs me out. How can i modify the code so it doesnt show the dialog box? or i just wanted to show different text on the dialog box. Is there a way around?? ...

Facebook .net toolkit v3 getAlbums gives error

Having a problem when using the getAlbums method... I have passed in the correct long uid to the method but it gave me an error: Input string incorrect exception stuff. I sure that I passed in the correct facebook user id. Does anyone has the same issue? ...

Greasemonkey script causes page to be locked and grow per click instead of navigating

Each time I click a link if this is loaded into my Greasemonkey script the page grows on links that would be in the same domain with the greasemonkey target instead of the page navigating to the link target. var GM_JQ = document.createElement('script'); GM_JQ.src = 'http://jquery.com/src/jquery-latest.js'; GM_JQ.type = 'text/javascript'...

Combine 2 fields returned in FQL for a 3rd query

I want to combine the results of status_id returned from status table http://wiki.developers.facebook.com/index.php/Status%5F%28FQL%29 and comments from stream http://wiki.developers.facebook.com/index.php/stream%5F%28FQL) to retrieve comments for a user (in a single multiqery maybe) Something along the lines of: query1:Select status_i...

Connecting to a facebook account permantly with PHP. (Need to check for new notes, photos, videos , etc)

Since I've seen some pretty fun things done with social networking apis (The twitter image encoding project for example) I decided to try and make a CMS/Blog completely administered via a facebook page or group. How can I: Connect to a facebook account when the cms is installing and have it persistently connected (no need to re-auth)...

Does Facebook have some sort of API that I can make a client?

For example...I would like to make a "client". First, people post to my client, and then to Facebook. (I want to make a client so that I can store posts) ...

Documentation of FacebookRestClientException

Using the Facebook REST API PHP client library, it seems wise to wrap calls in try{} thus: require('facebook.php'); $fb = new Facebook($fbApiKey, $fbSecret); try { $result = $fb->api_client->some_api_method(...); } catch (FacebookRestClientException $e) { // now what? } But I'm not sure what to do with the exception, e.g. to f...

Do I need a live site to test Facebook Connect?

I am trying to integrate facebook connect with nmy social network site, currently users create and login with there own account on my site but I am wanting to allow users to basicly create a new account on my site but use the facebook connect to login, I think it will be pretty easy on my site the way I have my user database setup, I hav...

Start Facebook session on iPhone, resume in PHP

A user logs into a Facebook session in my iPhone app, and then I call a PHP page on my server that needs to use that session to access the user's Facebook account. Is it possible to start the session in the PHP page and be authenticated automatically? Perhaps by passing in the session key and secret from the iPhone app? ...

Help with facebook connect on a PHP site

I have about 90% of the PHP code done for a really nice facebook connect integration with my social network but I am having 1 huge problem. This code below is supposed to show a facebook connect button on the page but instead it show nothing at all. <body onload="initFB();"> <fb:login-button length="long" background="light" size="medi...

How to get (and use) extended permissions in Facebook with Python/Django

I'm trying to write a simple app that lets a user grant my code permission to write to her page's Facebook stream. As I understand it, it should be as easy as: Have the user click on a button that launches a popup containing the a page in my Facebook app. In that page, they click on something that grants stream_publish to my app and a...