Domande taggate «facebook-fql»

7
EOFError: la fine del file ha raggiunto il problema con Net :: HTTP
Sto usando ruby-1.8.7-p302 / Rails 2.3.11. Sto cercando di utilizzare FQL (API di Facebook) per ottenere statistiche per un collegamento. Ecco il mio codice: def stats(fb_post_url) url = BASE_URI + "?query=#{URI.encode("select like_count from link_stat where url=\"#{fb_post_url}\"")}" parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) request = Net::HTTP::Get.new(parsed_url.request_uri) response = http.request(request) response.inspect …
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.