Facebook development in localhost

Edit: 2-15-2012 This is how to use FB authentication for a localhost website. I find it more scalable and convenient to set up a second Facebook app. If I’m building MyApp, then I’ll make a second one called MyApp-dev. Create a new app at https://developers.facebook.com/apps (New 2/15/2012) Click the Website checkbox under ‘Select how your … Read more

Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method of `ListView`

I’ve had exactly the same problem as you for a while now, and after looking at some of the suggestions above, I finally solved the problem. It turns out (at least for me anyway), I needed to supply a key (a prop called ‘key’) to the component I am returning from my renderSeparator method. Adding … Read more

How to Test Facebook Connect Locally

It’s simple enough when you find out. Open /etc/hosts (unix) or C:\WINDOWS\system32\drivers\etc\hosts. If your domain is foo.com, then add this line: 127.0.0.1 local.foo.com When you are testing, open local.foo.com in your browser and it should work.

‘Like’ a page using Facebook Graph API

Facebook has announced support for liking URL’s outside of Facebook by using the official built-in Like action. You need to have publish_actions permissions. The graph url for this is: https://graph.facebook.com/[User FB ID]/og.likes?object=OG_OBJECT_URL&access_token=USER_ACCESS_TOKEN However, you cannot use this to like a page on Facebook currently, as the documentation states: For Facebook Pages or websites that do … Read more

Send private messages to friends

Sending private message through api is now possible. Fire this event for sending message(initialization of facebook object should be done before). to:user id of facebook function facebook_send_message(to) { FB.ui({ app_id:’xxxxxxxx’, method: ‘send’, name: “sdfds jj jjjsdj j j “, link: ‘https://apps.facebook.com/xxxxxxxaxsa’, to:to, description:’sdf sdf sfddsfdd s d fsf s ‘ }); } Properties app_id Your … Read more