facebook

Retrieving comment count from fb:comments widget (Facebook)

I've tried using both the JavaScript and PHP SDKs, but I can't solve this simple problem. My FQL looks like: SELECT count FROM comments_info WHERE xid="..." When I attempt the request through PHP, I get the following error: Uncaught Exception: 604: No valid app_id PHP: $facebook = new Facebook(array( 'appId' => '...', 'se...

What are the differences between Login mechanism with Facebook Graph API and REST API?

If a website uses Facebook Connect, it seems like the new Facebook Graph API way of logging in is that it will give an fbs___appID___ as a cookie, with access_token inside, and there are also the expires, session_key, and sig. Why is a session_key and sig needed? Isn't the access_token by itself enough? Is the session_key suppose to li...

How can I invite other Facebook users to my iPhone app with extras?

If I want to get information about a user's friends in an iPhone app that integrates Facebook SDK, how do I ask the user to invite their friends to use the app and once the friend accepts the invite to ask those people to provide the "user_relationship_details" permission? In other words, what code or methods do I use? ...

Programatically download a file to memory php

Hi I would like to know how to download a file to a variable (or memory) with php. I have tried using file_get_contents and a few RSS feed php libraries with no output (even with var_dump). This is the url that I am trying to access: http://www.facebook.com/feeds/friends_status.php?id=MY_USER_ID&key=SECRET_KEY&format=rss20 MY...

Facebook uses all Javascript... why?

I noticed that like Google Email, FB's source code shows nothing but Javascript. Why do they use JS to write the page? ...

After Facebook signs a user in, what login name to store in the app's DB?

After Facebook signs in for a user, what is a proper Login name and email to use to store this user into the app's Database? Is there any docs on it? I haven't seen any yet. Is it the same for new JS SDK and old JS SDK? ...

If our website sees the Facebook signed in user has user id 678678678 in the cookie, how do we know this cookie is not faked?

I think if we make calls to Facebook using REST or Graph API, we will know if it is fake because it will come back saying fake session / auth_token / access_token. But what if we are showing our own DB info, such as the user's "most preferred product list", then we don't make any call to Facebook but show our DB's data. How do we know...

joomla rss url from the syndicate module is invalid

i am using lyftten blogie for my blog in my joomla site. i want to have rss for my blog and enabled the joomla syndication module for the blog menu. when the feed is clicked, it is working okay. but when i want to use the rss link from this blog in my facebook rss application, it says that it is invalid rss. what is the problem? the lin...

iOS and Facebook Graph API: Inconsistent authorize issues

I'm using the official FBConnect library for iOS and trying to get it working in my iPad app. Here's what's strange: when my friend logs in using the call to authorize:permissions:delegate, everything works fine: the dialog asks for his authorization to connect to Facebook, the fbDidLogin delegate method gets called, all is well. Howeve...

IFrame Facebook App Bring User to the Top of the Page

Hey, I currently have an iframe for a facebook application and I am using FB.Canvas.setAutoResize(); to resize it properly. The problem is when a user scrolls down and clicks on one of the lower links, it does not a way to bring the user back to the top. Is there a function or way of bring a user back to the top of the page? ...

What is the most efficient way to get a list of a Facebook user's friends' names in the Facebook iOS SDK?

I want to use the Graph API. And I want to load them into a UITableView. Also loading entire user details is slow... Is there a way that I can make it faster? One more thing: Is there a way that I can load a page on Facebook in the login window that is provided by the Facebook iOS SDK after the user logs in? Pretty much I want to load a...

How to add an Facebook Like button that does not show how poorly your site is liked?

I've added an Facebook Like button, but as my site is still very small I believe it is not a good idea to show that bubble-box telling everyone that this page only has 3 likes. Then, it's better visitors don't see how bad it performs so they're not blended and can decide on their own if it's cool or not. This is how I've added that butt...

Does this count as an app "User"?

I know that when a user visits your app's canvas page e.g. http://apps.facebook.com/YOUR_APP/ this counts them as a "User" and thus, your "User" counter increments. But what about if a person clicks on the Facebook's Javascript SDK Login button on your website without using the canvas page? This one: If they authorize the login and...

How much info can you pull out of facebook?

We're interested in incorporating a lot of the facebook info in our application. So for example we want to display your wall's content as part of our UI combined with other stuff etc. With facebook connect how much data can we pull from facebook? Is everything available programatically, including wall feeds, profiles, pictures, etc? Do...

How do I make the same Facebook object available to all my code in my iOS Facebook SDK project?

I've tried passing in the Facebook object which I named facebook as an argument into classes that rely on it. However, is there a way to use it in a sort of global way so that way I don't have to keep on passing it around between objects? ...

Facebook Graph API - unable to get offline access token working

I have created a facebook application, and successfully got an offline access enabled token. I authorized the application for my profile, however when I try to get some info using: https://graph.facebook.com/alex.koltun?access_token=nnnnnnnnn|hhhhhhhhhhhhh-nnnnnnnnnnnnn|bbbbbbbbbbbbbbbbbbbbbb I am getting the following error response: ...

How do I get user email using Facebook Graph API in GAE Python?

I'm using Facebook Graph API on Google App Engine. I was able to fetch all the basic info from an user. However when I tried to fetch any user info that requires permission, email for exemple, it always appears as None. I've followed the whole tutorial available at the developers blog. Here's my code: class User(db.Model): id = db....

Facebook "Like" produces "There was an internal error when updating the Page."

I added a like button to my blog a few months ago and things have been working perfectly. Suddenly I added a new post this morning, and for whatever reason, the like button is now broken. Everytime I click "Like" I receive this error: There was an internal error when updating the Page. There is no additional information. I used F...

Facebook API: How to update the status?

How can I update my facebook tatus messages through the API? There are a lot of examples around the net but all of they seem to be deprecated with the New Facebook API. Regards! ...

Graph API and iOS

How can I use/implement the new Graph API from facebook in iOS programming (objective C)? Also parsing the JSON file returned by the API? I can't seem to find any examples out there. Facebook resources doesn't give too many details on iOS development. ...