title: Facebook Selenium How can I get the number of likes
body: <p>I am trying to get the numbers of people who liked the post with the below code. I tried both methods both are not working. It does return error code.</p>
  <p>Could someone assist, appreciate that.</p>
  <p><strong>Source Code :</strong> <a href="https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=3647203655325514" rel="nofollow noreferrer">https://m.facebook.com/ufi/reaction/profile/browser/?ft_ent_identifier=3647203655325514</a></p>
  <p><a href="https://i.stack.imgur.com/68YsH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/68YsH.png" alt="enter image description here" /></a></p>
  <pre><code>def get_likes(self):
      return self.driver.find_element_by_xpath('//span[@data-store=&quot;{&quot;reactionType&quot;:1}&quot;]/span/span').get_attribute(&quot;innerHTML&quot;)
  
  def get_likes(self):
  return self.driver.find_element_by_xpath('//span[@data-store=&quot;{\&quot;reactionType\&quot;:1}&quot;]/span/span').get_attribute(&quot;innerHTML&quot;)
  </code></pre>
  <p><strong>SyntaxError: Failed to execute 'evaluate' on 'Document': The string '//span[@data-store=&quot;{&quot;reactionType&quot;:1}&quot;]/span/span' is not a valid XPath expression.</strong></p>