{"action":"created","issue":{"url":"https://api.github.com/repos/nov/fb_graph2/issues/54","labels_url":"https://api.github.com/repos/nov/fb_graph2/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/nov/fb_graph2/issues/54/comments","events_url":"https://api.github.com/repos/nov/fb_graph2/issues/54/events","html_url":"https://github.com/nov/fb_graph2/issues/54","id":65741122,"number":54,"title":"How to populate FbGraph2::User with \"fields\"?","user":{"login":"gr8bit","id":341793,"avatar_url":"https://avatars.githubusercontent.com/u/341793?v=3","gravatar_id":"","url":"https://api.github.com/users/gr8bit","html_url":"https://github.com/gr8bit","followers_url":"https://api.github.com/users/gr8bit/followers","following_url":"https://api.github.com/users/gr8bit/following{/other_user}","gists_url":"https://api.github.com/users/gr8bit/gists{/gist_id}","starred_url":"https://api.github.com/users/gr8bit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr8bit/subscriptions","organizations_url":"https://api.github.com/users/gr8bit/orgs","repos_url":"https://api.github.com/users/gr8bit/repos","events_url":"https://api.github.com/users/gr8bit/events{/privacy}","received_events_url":"https://api.github.com/users/gr8bit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T17:48:27Z","updated_at":"2015-04-02T13:46:45Z","closed_at":null,"body":"I want to retrieve the currently signed in user with some of her attributes (like last_name) filled.\r\n\r\nMy code looks like this:\r\n```ruby\r\nauth = FbGraph2::Auth.new('<app id>', '<app secret>')\r\nuser = auth.from_signed_request('<signed_request param from canvas page>').user\r\n\r\nuser = user.fetch(fields: 'id,first_name,last_name,currency,locale,email,third_party_id,is_eligible_promo')\r\n```\r\n\r\nThis worked in FbGraph V1, now the last line throws:\r\n```\r\nRuntimeError: Called id for nil, which would mistakenly be 8 -- if you really wanted the id of nil, use object_id\r\n\tfrom /Users/luke/.rvm/gems/ruby-2.0.0-p598/gems/fb_graph2-0.5.1/lib/fb_graph2/util.rb:7:in `as_identifier'\r\n\tfrom /Users/luke/.rvm/gems/ruby-2.0.0-p598/gems/fb_graph2-0.5.1/lib/fb_graph2/node.rb:92:in `build_endpoint'\r\n\tfrom /Users/luke/.rvm/gems/ruby-2.0.0-p598/gems/fb_graph2-0.5.1/lib/fb_graph2/node.rb:61:in `block in get'\r\n\tfrom /Users/luke/.rvm/gems/ruby-2.0.0-p598/gems/fb_graph2-0.5.1/lib/fb_graph2/node.rb:108:in `handle_response'\r\n\tfrom /Users/luke/.rvm/gems/ruby-2.0.0-p598/gems/fb_graph2-0.5.1/lib/fb_graph2/node.rb:60:in `get'\r\n\tfrom /Users/luke/.rvm/gems/ruby-2.0.0-p598/gems/fb_graph2-0.5.1/lib/fb_graph2/node.rb:24:in `fetch'\r\n```\r\n\r\nObviously I'm doing something wrong. But what? :)"},"comment":{"url":"https://api.github.com/repos/nov/fb_graph2/issues/comments/88907938","html_url":"https://github.com/nov/fb_graph2/issues/54#issuecomment-88907938","issue_url":"https://api.github.com/repos/nov/fb_graph2/issues/54","id":88907938,"user":{"login":"gr8bit","id":341793,"avatar_url":"https://avatars.githubusercontent.com/u/341793?v=3","gravatar_id":"","url":"https://api.github.com/users/gr8bit","html_url":"https://github.com/gr8bit","followers_url":"https://api.github.com/users/gr8bit/followers","following_url":"https://api.github.com/users/gr8bit/following{/other_user}","gists_url":"https://api.github.com/users/gr8bit/gists{/gist_id}","starred_url":"https://api.github.com/users/gr8bit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr8bit/subscriptions","organizations_url":"https://api.github.com/users/gr8bit/orgs","repos_url":"https://api.github.com/users/gr8bit/repos","events_url":"https://api.github.com/users/gr8bit/events{/privacy}","received_events_url":"https://api.github.com/users/gr8bit/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T13:46:45Z","updated_at":"2015-04-02T13:46:45Z","body":"@nov this seems to be a major problem - even this simple snippet from the wiki's page won't work (same error as above):\r\n```ruby\r\nuser = FbGraph2::User.new('user_id').authenticate('access_token')\r\nuser.fetch\r\n```\r\nHelp please? ;)"}}