facebook

How to get friend's mobile number using Facebook?

How do I get the mobile number of a friend using the REST Api? I have HTC Sense on my HTC Legend phone, and somehow they can grab the phone numbers from FB, as I got a list of contacts with mobile and birthday taken from FB. I am wondering how they did it? ...

How to Fetch user events using Oauth in Facebook.

I am trying to fetch user events from facebook but I am having some problem witht he request. I can access their profile image and their UID but for some reason when I try to access the events I get the following error: { "error": { "type": "QueryParseException", "message": "An active access token must be used to query inf...

Facebook's sharer.php - default view

I'm using sharer.php to share an item to the user's wall. The facebook sharer has 2 views: Post to profile (default view) : And when you click on "send as a Message instead you get : What I'm trying to do is to have the 2nd view (send a message) as the default one. So when the user clicks 'Share this', it would show him directly ...

How to make a div float in and scroll with the center of page?

So, I work on a Facebook FBML App. What I want is simple. Just have a div shows in the center of the page, and scroll with the page. i.e. always in the center. It would be easy with normal JS. I just use the pageYOffset However, in Facebook using FBJS, I am not sure what I should use. It doesn't have getPageYOffset().. and I tried ...

what is the max width of a facebook page?

i read it was going to be changed to 520px in early 2010, but i keep seeing pages that are new that are the older 760px width - is it safe to build at the wider width still or should we be building at 520px? ...

Blogger Template not saving after Facebook like changes

I've add the facebook Like button to http://www.goldfishview.com/ and that works great. Its powered by Blogger. Now I want to move it to the end of my posts instead of a the beginning. I move the facebook iframe and the preview looks great, but once I save the template it reverts back to were it was. I've tried in Chrome and Firefox. In ...

Just-in-time invocation of Facebook login window from UIWebView

I have an app that presents a UIWebView pointing to my own server. I have a Facebook Like button on some pages inside the UIWebView. I have it working now, but the login screen is way too big for the phone screen. I would like to present a nicer login dialog such as the one in the Facebook iPhone API, and then continue back to the web...

Open new window AND change current page in Facebook

I'm trying to work out a Facebook-friendly way to do the following: 1) Click on a link 2) Open a URL in a new window 3) Go to a Facebook app URL Both actions need to happen on the same click. Outside of Facebook, I'd just open a new window with an onclick with javascript. Facebook doesn't allow that (shocking). I've also tried to o...

How to use Facebooks Graph-API from a Servlet

Hi everyone, I need to access Facebook from a J2EE-App (serverside). I first had a look at this project: http://code.google.com/p/facebook-java-api/ , but as I need to create Facebook-Events and invite people this does not help. So I guess I need to use the Graph API, but Igot no clue on how to perform those HTTP POST requests needed -...

How do i redirect to a GET request from a POST request on GAE

Hello everyone, i am writing an FBML app on facebook hosted in GAE. Facebook will talk to your hosted app only vai POST (im sure this is the cause, but please do correct me if i'm wrong). So im faced with the issue that inside of my POST method, i need to redirect to facebook OAuth authroize URL. But i can only send a GET request. How ca...

Kohana - Facebook app URL

Hi Guys, I'm developing my first facebook app on kohana 2.3.x at the moment and I noticed that a usual app url should look like this: http://apps.facebook.com/{my_app}/{controller}/{method} But in my app it shows the real url. http://mydomain.com/{controller}/{method} Any idea how to fix that in Kohana? Thanks in advance! ...

Facebook Canvas iFrame App - Authorizing users with new OAuth protocol

Hi, I'm developing a new Facebook Canvas application within an iFrame and trying to authorize users. The new OAuth api recommends I do a redirect to the following to authorize a user in my app: https://graph.facebook.com/oauth/authorize? client_id=...& redirect_uri=http://www.example.com/oauth_redirect However this produces a ...

Facebook 'like' button - ASPX Master Pages

How do I add a FaceBook 'like' button to my master pages, does it need to be different for each page? ...

Should I Abandon Adobe Flash for HTML5 and <canvas> ?

I'm currently looking into developing Facebook applications and was planning on using Flash as the basis of my application, I have test built some simple PHP Facebook applications and I know enough about action-script 3 to start me on my way, but the API for Facebook development in AS looks far more tedious than the PHP one. my question...

Facebook XFBML IFrame App

Hi Guys, I started creating an application utilizing FBML but quickly realized its limits as far as external sources like javascript and so forth. I had just finished the app and now I am looking to convert it to XFBML so I can use external javascripts. I am having an issue with the login function. It allows a user to login when I go...

How to find memory leak from ASPX app having a DLL

Any tips How to figure out where is memory leak in my Facebook app, its ASPX using Facebook toolkit DLL and I am afraid the bug may be in that CS library. The problem is that after one week uptime, server is running out of memory and needs to be rebooted, there are quite many users and I cannot run debugger on this "production server",...

Facebook access_token: how do I get it once the user accepted my app?

When a user visits my site which contains a facebook app the first time, it requires him to allow it and he gets promted to do that, then I get the code which I can convert to an access_token. So far so good. But how do I get the token once the user has already visited the site? As long as this token form the first time is active everyt...

Using Facebook graph to get the fans of a fan page?

I have a fan page located at http://www.facebook.com/shop4tronix. I can access info on this page by going to: http://graph.facebook.com/shop4tronix However, I want a list of all the fans of my page returned. I figured something like this would work: http://graph.facebook.com/shop4tronix/fans But it doesn't. Is there any way to get ...

Fatal error: Call to undefined method Facebook::require_add

I am trying to set up a basic Facebook application using PHP and an external .swf this line $user_id = $facebook->require_login(); creates this error: Fatal error: Call to undefined method Facebook::require_add() in C:\httpdocs\facebook_application\index.php on line 10 I cannot find the cause of this error... ...

How do you post Facebook status without the user being logged in?

I have a website developed in php that I would like users to authorize access to Facebook, and then publish actions as their Facebook status similar to Nike Plus. The previous answers on this in SO seem outdated or not quite detailed enough for me, and Facebook's documentation seems centered around making apps in Facebook (which assume ...