Created
July 22, 2012 12:58
-
-
Save tadyjp/3159575 to your computer and use it in GitHub Desktop.
Getting facebook friends name on Koala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Koalaでfacebookの友人の名前を言語表記(この場合は日本語)で取得するサンプル | |
# ref. https://github.com/arsduo/koala/ | |
@graph = Koala::Facebook::API.new(oauth_access_token) | |
@graph.fql_multiquery( | |
{"ids" => "SELECT uid2 FROM friend WHERE uid1=me()", | |
"names" => "SELECT id, name FROM profile WHERE id IN (SELECT uid2 FROM #ids)" }, | |
{:locale => "ja_JP"}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment