lib/fql.rb
# Constructs the Facebook url which will return the results from the FQL
# query. The FQL query and optional access_token are passed as GET
# parameters.
#
Constructs the Facebook url which will return the results from the FQL
query. The FQL query and optional access_token are passed as GET
parameters.
Constructs the Facebook url which will return the results from the FQL query . The FQL query and optional access_token are passed as GET parameters .
def make_url(fql_query, options = {})
      url = self::BASE_URL + URI.encode(fql_query.compose)
      url += URI.encode("&access_token=#{options[:access_token]}") if options && options[:access_token]
      url += URI.encode("&appsecret_proof=#{options[:appsecret_proof]}") if options && options[:appsecret_proof]
      URI.parse url
    end
def make_url ( fql_query , options = { } ) url = self :: BASE_URL + URI . encode ( fql_query . compose ) url += URI . encode ( "&access_token=#{options[:access_token]}" ) if options && options [ :access_token ] url += URI . encode ( "&appsecret_proof=#{options[:appsecret_proof]}" ) if options && options [ :appsecret_proof ] URI . parse url end
Constructs the Facebook url which will return the results from the FQL
query.
Constructs the Facebook url which will return the results from the FQL query .
fql_query
options