获取所有使用FQL的朋友(Get all Friends using FQL)
我的代码在这里
query = "SELECT uid FROM USER " + "WHERE uid IN (" + " SELECT uid2 FROM friend WHERE uid1 = #{fb_user_id}" + ")" url = "https://graph.facebook.com/fql?q=#{query}&access_token=#{fb_access_token}" escape_url = URI::escape(url) uri = URI.parse(escape_url) # Configure http settings to hit a url. http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(uri.request_uri) response = http.request(request) # extract the response body. response = JSON.parse(response.body)
它只返回
10个朋友
我想提取所有的朋友我怎么能这样做任何其他方式提取所有朋友列表请一些人帮助我
My code is here
query = "SELECT uid FROM USER " + "WHERE uid IN (" + " SELECT uid2 FROM friend WHERE uid1 = #{fb_user_id}" + ")" url = "https://graph.facebook.com/fql?q=#{query}&access_token=#{fb_access_token}" escape_url = URI::escape(url) uri = URI.parse(escape_url) # Configure http settings to hit a url. http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(uri.request_uri) response = http.request(request) # extract the response body. response = JSON.parse(response.body)
It return only
10 friends
I want to extract all friend how can i do this Any other way to extract all friends list Please some one help me
原文:https://stackoverflow.com/questions/24445456
更新时间:2023-01-26 06:01