facebook-connect

Developing Facebook Connect Javascript API on localhost

I'm trying to write some javascript functions to integrate with the Facebook stream. However they only seem to work if you are developing them directly on the live server so that Facebook can access the xd_receiver.htm file that they ask me to place at www.mydomain.com/xd_receiver.htm. However you all can probably agree that it's really ...

How to logout facebook connect user with Facebook Developer Toolkit?

How to logout or disconnect facebook user in facebok connect session? I'm using facebook developer toolkit. After using "connectSession.Logout();" method "connectSession.IsConnected()" is still returning "true". Have I done something wrong? EDIT: Now, I know that you can't logout user just from facebook connect site. User can be logged...

Shibboleth + Facebook

Hi, I am developing a Facebook application to be used in a university (which already has a Shibboleth idProvider and many serviceProviders running). How do I integrate shibboleth into facebook? This is what I want to do: - For someone who is NOT a student, he can only see/use the public data/services. - For students, he can login using...

Facebook connect FBJS misssing accented characters

I use FBJS FB.Connect.streamPublish. The content of 'What's on your mind?' field is filled by my code and includes accented characters. On IE it appears fine. On FireFox the accented character do not show. alert (message) on the message shows that it does include the missing character but it does not show up on FB dialog. Any advice on...

Facebook Connect : auth_token parameter

I am implementing a facebook connect based application, and when I use $facebook->require_login() I am redirected to the application page, after being presented with a login page on facebook. Now, when the application page loads, a "auth_token" parameter is appended to the end, e.g: http://example.com/some_path/?auth_token=892a70ff0e...

Getting a new session key after Facebook offline_access permission

I have a mobile application that I'm using with Facebook connect. I'm having trouble getting an offline_access session key after a user has granted extended permissions. Here's the user flow: User goes to my site for the first time I send them to m.facebook.com/tos.php? and pass my api key and secret The user logs in using Facebook...

Having trouble importing middleware classes in App Engine / Django

Trying to get facebook connect to work on app engine, and so I'm following these instructions: http://www.slideshare.net/mrtrosen/lab305-django-facebook-connect-integration-example One of the steps requires me to add to my middleware_classes, and so I've added the following to settings.py (copied from slide 18 in the presentation above...

Can I impersonate/auto login an account with Facebook Connect?

I'm using the .net facebook api to integrate a web app with facebook. I would like to allow users authenticated to my site to be able to post photos/videos/posts to a facebook page that I control. In some cases I don't want this to be posted through their facebook account, but instead via some generic account that I'll set up. Is there a...

facebook PermissionDialog

<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <script type="text/javascript"> FB.init('cef61789d5df166ac00c9fe13007c110', "xd_receiver.htm"); FB.Connect.showPermissionDialog("offline_access"); </script> After a user login i am using the above code to get the Dia...

facebook api permission check failing

if($facebook->api_client->users_hasAppPermission("status_update")) echo 'yes'; else echo 'no'; Dont understand,its always printing the string 'NO' even if i allow status update permission I tried with JS too FB.Facebook.apiClient.users_hasAppPermission('status_update', function(result) { if(result) alert("yes"); ...

unable to post status to facebook

require_once 'facebook.php'; $facebook = new Facebook($appapikey, $appsecret); if($facebook->api_client->users_hasAppPermission("status_update")) $facebook->api_client->users_setStatus("Hi there"); I am unable to post status to facebook, the above says nothing :( I already gave status update permission to my app. help please...

Facebook API - can't access any info.

I can login but the script below is not printing my status. What can I do to make it work? require_once 'facebook.php'; $facebook = new Facebook($appapikey, $appsecret); ?> <script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <script type="text/javascript"> FB.init('<?php ...

convert partial to string from active record

HI friends, I have a situation where i have to convert a partial into string from Active-Record. Here is the code: Facebooker::Session.create(Facebooker.api_key, Facebooker.secret_key).send_email( facebook_user_id, "MAIL_SUBJECT", (:partial=>"some/partial") ) This is being called from a model. T...

One shot fql query - facebook api

$status = $facebook->api_client->fql_query("SELECT message,time FROM status WHERE uid in (SELECT uid2 FROM friend WHERE uid1=".$user.")"); echo "<pre>"; print_r($status); echo "</pre>"; above query returns all statuses, i want only last 2 status messages. I have to make it with fql only. can anyone show me how its done?? ...

create.event array expected error

Hi, I am trying to create a Facebook event using RESTful API Events.create method with the following parameters: event_info = {"name":event_name, "category":event_category, "subcategory":event_subcategory, "host":event_host, "city":event_city, "location":event_locati...

How do i ensure facebook offline access session key is still valid

I can get the offline access session key from PHP API but how do i know whether its still valid or not before i log him automatically? require_once 'config.php'; $facebook->api_client->user = "1294711371"; $facebook->api_client->session_key = "827446297c301f2cc6b581ce-1294711371"; is there any function available? ...

External Facbook connect site using multi friend invite, looses existing cakephp session

I have a facebook connect site. I am able to "login" to my site with the facebook api & fbml. I would like to give my users the ability to invite friends. I am using the multi invite and the form shows up fine. My problem is once the user either invites or cancels on the page, the request back to my application from facebook, causes ...

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...

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. ...

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?? ...