spree/spree_social — Issue #20: Facebook Oauth headers? 
Author: cleverlemming
Created: 2011-10-12 05:34:12+00:00
State: open

Facebook expects the following parameters as part of the authentication request: og:url, og:type, and og:title. The error message from facebook complained of an invalid_redirect_uri. Pasting the request into the Facebook debugger revealed that these parameters were required.

My solution was to put the following into a Facebook partial:

I looked at a more complete iFacebook login mplementation for Word Press that used variables instead of hard-coded strings and had an admin interface.

https://developers.facebook.com/docs/opengraph/