module RSocial::Facebook::Client::Pages

Public Instance Methods

page(handle) click to toggle source
# File lib/rsocial/facebook/client/pages.rb, line 5
def page(handle)
  run(
    "https://www.facebook.com/#{handle}/",
    page_injections
  ).merge(:handle => handle)
end
pages_instance(handle) click to toggle source
# File lib/rsocial/facebook/client/pages.rb, line 12
def pages_instance(handle)
  wd = Driver.instance.send( "chrome" )
  wd.get "https://www.facebook.com/#{handle}/"
  wd
end

Private Instance Methods

page_injections() click to toggle source
# File lib/rsocial/facebook/client/pages.rb, line 20
def page_injections
  {
    :follower_count => "return document.getElementById('PagesLikesCountDOMID').childNodes[0].textContent"
  }
end