How to Test Your Facebook App Locally Using HTTPS

Facebook now requires you to use https for your Valid OAuth Redirect URIs for apps.  This is true even when your app is in development mode.

In order to get an https address, you could use a gem like tunnels or tunnelss, but I found using ngrok easier.

To get it to work:

  1. I went to their website and downloaded their program
  2. I extracted the file for the program
  3. In my console, I went into the directory where ngrok was extracted to and entered ‘grok http 3000’ on my Windows machine, other machines may use ‘./grok http 3000’
  4. After entering that, ngrok will provide you an https address which you put into the Valid OAuth Redirect URIs field in Facebook
  5. Once you fire up your server, you should be able to access it using that https address instead of localhost:3000
Advertisements

Active Merchant Line Items for PayPal

Using the Active Merchant gem, payments are going to PayPal for me, but the item details are not showing.  I was looking for tutorials on how to do this using Active Merchant after I received no responses posting on the Adaptive Payment API discussion board on x.com.  I found some results by searching, hopefully one will work:

https://groups.google.com/forum/#!searchin/activemerchant/item$20description/activemerchant/qO0I5yIlWS4/K6raaqE6ouIJ

https://groups.google.com/forum/#!searchin/activemerchant/item$20description/activemerchant/5PcnVt8jMJQ/zKvE9_c71xAJ