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 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...
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...
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...
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...
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...
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...
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...
<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...
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");
...
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...
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 ...
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...
$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??
...
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...
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?
...
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 ...
//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...
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.
...
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??
...