facebook

pyfacebook stream.publish not publishing all details

Hi, Trying to publish a stream to facebook using py facebook. The stream publishes a single attachment perfectly i.e media or name or href , e.t.c But when it comes to appending all the attachments in one line it breaks down and just publishes the message. attachment = [media,description] etc does not work. message = "Test Message...

problem with facebook api - Keeps redirecting

I created an application with a name and connect URL on facebook. I put below code in test.php here (test.php): include_once 'facebook.php'; $fb = new Facebook('api_key', 'secret'); $user = $fb->require_login(); echo $fb->api_client->user; echo $fb->api_client->session_key; when I go to that page, it takes me to facebook login,...

How to set focus on fb:swf tags in Facebook app?

My code is as follows: <input id="input" type="text" onfocus="Focus('Input')" /> <input id="text" type="text" /> <fb:swf id="game" onfocus="Focus('Game')" swfsrc="http://ventoline.com/frozenbubble/preloaderbustamove.swf" width="640" height="480" /> <script type="text/javascript"> function Focus(msg){ new Dialog...

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

How put a pop up permission prompt instead of fb:prompt-permission ?

Hi, I'm making a flash game which will be up on facebook, I'm using python/django on the backend but to talk to fb. I use the facebook-flash-api. The problem is when I ask for extended permission from the user, using fbml. I get a link which I have to click and get the permission. How can I make sure a popup appears instead of the link. ...

Facebook login issue, going to facebook home after permissions

I'm using the following code to authorize the application and then ask for permission because could not find a simple way to authorize it simply after logging in. But then the user gets directed to their homepage instead of the application homepage. Was wondering where am I going wrong with it. <fb:if-is-app-user> <fb:else> <fb:re...

facebook permissions : How to check if the user has already allowed publish_stream for your app

Hi, wanted to know how to check if the user has already allowed your application to publish on his stream ( to avoid the momentarily popup menu). Currently I'm simply using this javascript <script> <!-- Facebook.showPermissionDialog('publish_stream,read_stream'); //--> </script> ...

Help needed - fql query in facebook api

I want to get my friends picture and their last status message with time. message,time FROM status pic_square FROM user $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>"; ab...

PHP simple poll query

I am starting to learn the ins and outs of PHP and have hit a roadblock. I am making a very simple poll application. Instead of vote-ins, this application would vote-out. What I mean is, the option with the maximum number of votes gets voted-out/eliminated from the poll. I will create a timer for the vote counts, say, 1 day. Now I am no...

How to get User.hasAppPermission

For starters I hope facebook API burns in hell, in other news. I'm trying to get a uid for which I need a session for a session I need to pass call_id sig. Which I have no clue how to get. I'm following http://wiki.developers.facebook.com/index.php/Users.hasAppPermission which does not give a single example code with it. Can someon...

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

Retrieve Database Value Without Page Load AJAX/PHP/Facebook Style

Hi all, I am wondering if anyone could show, or explain with examples, how facebook checks its database for new messages? It seems to do it periodically, without loading the page. What would be the best way to achieve this in a PHP/MySQL/Jquery script? Any help is always appreciated! Cheers, Lea ...

Help with fql.multiQuery

I'm playing around with the Facebook API's fql.multiQuery method. I'm just using the API Test Console, and trying to get a successful response but can't seem to figure out exactly what it wants. Here's the text I'm entering into the "queries" field: {"tags" : "select subject from photo_tag where subject != 601599551 and pid in ( selec...

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

facebook-flash-api getting username without PHP

Hi, trying to get the name of the user in Flash (not FLEX) without the PHP. Currently I have the session, the uid. But from here could not move forward towards getting the name. Would really appreciate if someone could help out. var fbook:Facebook; var api_key:String="xxxx"; var secret_key:String="xxxxx"; var fb_session:FacebookSessi...

What is the use of infinite session in facebook?

A session token is given to the user when he starts running a facebook application, as long as this token is not stolen, other people cannot impersonate him. To increase security, a new token is also generated again when it has expired or has been cleared. So what is the problem here? Why do people want infinite session token in faceboo...

How to use external JavaScript file in Facebook application development?

How can I use the external JavaScript in Facebook application development? Actually I want to use the Ajax tab feature in my application. ...

Facebook sharer

When I use the sharer fuction to share a page (e.g. http://www.facebook.com/sharer.php?u=http%3A//www.mysite.com&amp;t=My title), it seems don't refresh the meta tag when thouse change. It is a problem for me because the page I want to share is dynamic. Any idea please? Thanks ... ...