FIX: raise error if no data available to Instagram engine (#439)

FIX: raise error if no data available to Instagram engine (#439)

diff --git a/lib/onebox/engine/instagram_onebox.rb b/lib/onebox/engine/instagram_onebox.rb
index 6ddb2ef..858325b 100644
--- a/lib/onebox/engine/instagram_onebox.rb
+++ b/lib/onebox/engine/instagram_onebox.rb
@@ -16,6 +16,8 @@ module Onebox
 
       def data
         oembed = get_oembed
+        raise "No oEmbed data found. Ensure 'facebook_app_access_token' is valid" if oembed.data.empty?
+
         permalink = clean_url.gsub("/#{oembed.author_name}/", "/")
 
         { link: permalink,

GitHub sha: 317f6ee4

This commit appears in #439 which was approved by eviltrout. It was merged by jbrw.