• So, I have had this problem for a while. When you search Twitter for a URL with the preceding “https://www”, you won’t find the mention, but if you search without the “https://www”, you will find tweets.

    Someone has posted about it, here.

    It was happening with Disqus reactions, and I think this is the same reason why my site’s mentions are not being shown by the plugin. I tested it myself, by searching for a post using “https://www” and then without using it – only the latter one showed Twitter mentions.

    Is there anyway to remove the “https://www.” part and search for remaining part only? Or, is the plugin supposed to work anyway, without making any changes?

    Anyway, I tried replacing this part on calls.php:
    $url = 'https://api.twitter.com/1.1/search/tweets.json?since_id=' . $lastID . '&q=' . urlencode( get_permalink( $postID ) );

    with this :

    $url = 'https://api.twitter.com/1.1/search/tweets.json?since_id=' . $lastID . '&q=' . urlencode( substr(get_permalink($postID),11) );

    but it does not seem to work.

    I’d appreciate some help. Thank you.

    https://www.ads-software.com/plugins/twitter-mentions-as-comments/

Viewing 1 replies (of 1 total)
  • Thread Starter Sk Nepal

    (@sknepal)

    Nevermind, it seems like search via API and real time search are two different things. When I make realtime search, I can see tweets dating long back, but when I try making an API call of the same URL, it does not return any result.

Viewing 1 replies (of 1 total)
  • The topic ‘No Twitter mention for 'https://www'’ is closed to new replies.