module RSocial::Facebook::Client::Posts

Public Instance Methods

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

Private Instance Methods

posts_injections() click to toggle source
# File lib/rsocial/facebook/client/posts.rb, line 20
def posts_injections
  {
    :last_post_reactions => "return document.getElementsByClassName('_4arz')[0].textContent"
  }
end