facebook

Is there a way to convert a Facebook access token to a session key?

While trying to use Facebook's mobile authentication, I realized that they don't set any session key cookies now, and only deal with access tokens. From what I've gathered, access tokens are how the new OAuth2 system works, making session keys somewhat deprecated. Is my only choice to update the code to use access tokens, or is there a w...

What is xid in facebook comment api?

I am trying to put facebook comment in my wordpress blog for each post. I want to pass the url of the post as an xid but it doesn't work. I want to do that so that i will be able to collect the comments for each post separately. Let me know if there is any other way to collect the comments for post separately. ...

Getting friends of friends in FB graph API

Hi folks, Again a question on Facebook graph API. I would like to get friends of friends via an API call and when I try to do it, I get the following exception, { "error": { "type": "OAuthException", "message": "(#604) Can't lookup all friends of .... Can only lookup for the logged in user (...), or friends of the logged ...

Facebook App : Invalid OAuth 2.0 Access Token

Hi, I am almost done building a facebook application. Its working alright but for one problem. If a user adds the application to his profile for the first time ( by granting appropriate permissions ) it works fine. But when user removes the application from his Application Settings and then tries to add the application again, it just won...

How can I get the Api key of an existing facebook application

I've created a facebook APP and I don't know where to find the Api Key. For some reason the page http://www.facebook.com/developers/apps.php returns a partial response. I don't know where to find the Api key. Does anyone know how? ...

syncing facebook friends with Contacts - Android

Facebook and Twitter made a sync option to sync my contacts list with my friends, so when I click on one of my synced contacts from the regular phone app, I get to see their last status, pictures, etc. I would like to use this data from fb and twitter instead of building the sync process on my own, for both fb and twitter. because they ...

Integrating Facebook Connect Login/Registration with Zend Framework Application

Hi guys, I have a social networking website built upon the zend framework. My application also has extensively used htaccess's urlrewriting feature. The thing is that I want to incorporate facebook connect so users can login using their facebook logins as well. I'm stuck just on the part of how do I set it up. Like I know you have to cr...

Graph API PHP SDK - How to get FB.streampublish style box.

Hi, I am trying to get a streampublish box with facebook's new graph api example. I am using this code but its not working. Any help guys! <script> FB.ui( { method: 'stream.publish', message: 'getting educated about Facebook Connect', attachment: { name: 'Connect', caption: 'The Facebook Connect JavaScri...

Making sense of the curl command for facebook's open graph publishing??

I'm trying to post to my own feed but i do not understand the following code: curl -F 'access_token=...' \ -F 'message=I am posting to my own feed. I am awesome.' \ https://graph.facebook.com/me/feed I dun quite get curl. How can i go about doing this? ...

Objective-C: Facebook username from link returned by Graph API call

Fetching http://graph.facebook.com/514417 from the Facebook Graph API gives me the NSString @"http://www.facebook.com/mattdipasquale". How do I extract just mattdipasquale every time? Can I assume the link will be the same format every time? In that case, I could just do: NSString *fbUsername = [[result valueForKey:@"link"] substringFro...

FaceBook Api for Android

Hi all, I want to develop facebook client in android using fbrocket api.but,this api only allows input as facebook api key not the username and password. is there any solution?.. Thanks in advance ...

how to use in foreach for array_keys

hi Guys, i need to get data from array_keys the script i use in the server side: PHP: $friends = json_decode(file_get_contents( 'https://graph.facebook.com/me/friends?access_token=' . $facebook->getAccessToken() ), true); $friend_ids = array_keys($friends); the data of array look as above: { "data": [ { "name": ...

Timeframe for Iframe support on Facebook fan pages

Currently Facebook does not allow developers to use iframes on Fan Page Tabs: "The one exception: if you absolutely must create an application that appears as a tab on a Facebook Page, you will need to use FBML for now; tabs do not currently support iframes directly. We will be transitioning tabs to iframes later this year -- please see...

Is it possible to force Facebook Likes to follow 301 redirects

We have a large number of old Urls with FB likes that redirect (301) to new Urls. Is there a way to get FB to recognize the 301s and migrate or move the likes to the new Url? ...

facebook: Your link could not be shared

I'm adding the ability to share scores from my app using android's share intent: Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType("text/plain"); shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Score"); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "I scored "+score+" on "+...

facebook social plugins and http basic auhtentication rails app

My app is in alpha stage and I have http basic authentication set up (in app controller) to restrict access my hosted app. Would the callback url work with http basic authentication? ...

Facebook Connect Mobile Web - page requested not found

hey everyone, Im creating a mobile website and trying to implement facebook connect. I am using the PHP SDK I have following code: $loginUrl = $facebook->getLoginUrl(array( 'auth_token' => $session['auth_token'], 'next' => 'http://www.site.com/fbconnect', 'cancel' => 'http://www.site...

Need Recommendations for Twitter and Facebook Gems

Hi, I'm building an app in Rails 3. I currently have a user model which is authenticated via devise (email + password auth). I want to be able to show connect to facebook, connect to twitter buttons to the users once they are logged in. After obtaining the keys from Facebook and Twitter, I'd want to store it in the database for futur...

Publish to current users wall?

I wrote a small Facebook Ap[p in PHP and would like to be able to post a message to the current user's Facebook wall. The app is set to use FBML. How would I do this? ...

IE problem with facebook iframe application

Hi, I have a strange problem with my application on facebook on IE (on FF, Opera, Chrome it works fine). Application is using iframe, and when it's trying to load, IE tries to download the content of iframe instead of displaying it... Thanks in advance for any tips. ...