Last active
August 29, 2015 14:22
-
-
Save barnes7td/c752ef3e636ee523b17a to your computer and use it in GitHub Desktop.
fb_graph2 gem pry
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
[6] pry(main)> user = FbGraph2::User.new('me').authenticate('CAACEdEose0cBAOgM5S1Yi4dWgi8B638bw85lZCZBjdyIJZBxbbJI7k5s9OsCcWskpSOZA5eByoPO89JZC9cwpcSnREPMiO5rEZCrLVufTWphtzkg6FvQXmpSJIUI8Ja43ZBf2HNiVGc322j5vxDS8cAey4XSQtrV7dlO5ZAugfLa05h3LcdwgWqXBWZBZAgRuEkK8WDf01DOHzelUTNqslrZB0qOv2CZA2rW2EsZD') | |
=> #<FbGraph2::User:0x007fcd29585428 | |
@access_token= | |
"CAACEdEose0cBAOgM5S1Yi4dWgi8B638bw85lZCZBjdyIJZBxbbJI7k5s9OsCcWskpSOZA5eByoPO89JZC9cwpcSnREPMiO5rEZCrLVufTWphtzkg6FvQXmpSJIUI8Ja43ZBf2HNiVGc322j5vxDS8cAey4XSQtrV7dlO5ZAugfLa05h3LcdwgWqXBWZBZAgRuEkK8WDf01DOHzelUTNqslrZB0qOv2CZA2rW2EsZD", | |
@id="me", | |
@raw_attributes={}> | |
[7] pry(main)> user.fetch | |
=> #<FbGraph2::User:0x007fcd2a56d890 | |
@access_token= | |
"CAACEdEose0cBAOgM5S1Yi4dWgi8B638bw85lZCZBjdyIJZBxbbJI7k5s9OsCcWskpSOZA5eByoPO89JZC9cwpcSnREPMiO5rEZCrLVufTWphtzkg6FvQXmpSJIUI8Ja43ZBf2HNiVGc322j5vxDS8cAey4XSQtrV7dlO5ZAugfLa05h3LcdwgWqXBWZBZAgRuEkK8WDf01DOHzelUTNqslrZB0qOv2CZA2rW2EsZD", | |
@birthday=Fri, 21 Oct 1977, | |
@first_name="Timothy", | |
@gender="male", | |
@hometown= | |
#<FbGraph2::Page:0x007fcd298fe910 | |
@id="108090062551621", | |
@name="Vilonia, Arkansas", | |
@raw_attributes={"id"=>"108090062551621", "name"=>"Vilonia, Arkansas"}>, | |
@id="10204147369031497", | |
@last_name="Barnes", | |
@link="https://www.facebook.com/app_scoped_user_id/10204147369031497/", | |
@locale="en_US", | |
@name="Timothy Barnes", | |
@raw_attributes= | |
{"id"=>"10204147369031497", | |
"birthday"=>"10/21/1977", | |
[8] pry(main)> | |
[9] pry(main)> user.friends | |
=> [] | |
[10] pry(main)> user.friendlist | |
NoMethodError: undefined method `friendlist' for #<FbGraph2::User:0x007fcd29585428> | |
from (pry):9:in `__pry__' | |
[11] pry(main)> user.picture | |
=> #<FbGraph2::Struct::Picture:0x007fcd293b9630 | |
@is_silhouette=false, | |
@url= | |
"https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xtf1/v/t1.0-1/p50x50/11063855_10203593722150671_2488601158130525626_n.jpg?oh=6759ad71f9f949bc2f509deb3afc8996&oe=55C2047D&__gda__=1439128840_55c662d092e9a090f6668317a7a0f79c"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment