Archive

RoR

Was having this OmniAuth & Facebook: SSL certificate verify error on my Windows machine. It says SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. And everything is working fine on my Mac, so I got kinda annoyed when the mentioned hacks and workarounds in http://stackoverflow.com/questions/3977303/omniauth-facebook-certificate-verify-failed/5512518#5512518 are not working.

In the end, this is what solved it. https://gist.github.com/867550


Advertisements

Continuing from Omniauth to allow sign in through Facebook, last night I included a client-side authentication that uses Facebook Javascript SDK. Also, I was trying out the Facebook Graph API with Koala gem to fetch data from Facebook and post content through a user. There’s more that can be done to integrate Facebook into the app by using the Open Graph protocol.

How does the Open Graph works?

Any page in your application can be treated as an object in the social graph allowing the user to interact with it. But to do this, you’ll need to add the meta tags in the html page describing it as an object and Facebook will parse this, allowing you to work with it as an object in the Graph API.