Facebook like count is not changing instantly
<p>I am trying to develop a facebook app,in that I have developed the news feed data as we see in android facebook app. It contains all posts with like,comment,comment number and likes number.</p>

<p>when I press like, it should change to unlike and the count of likes should increases as quickly as we find in android facebook app.</p>

<p>I have used this code for doing this</p>

<pre><code>  likes.setOnClickListener(new OnClickListener()
     {      
        public void onClick(View v)
         {
            // TODO Auto-generated method stub
            if(like_or_ulike.get(position).equals("Like"))
             {  
                likes.setText("Unlike");
                Log.e("inlike","like");
                UrltoValue.getValuefromUrl("https://graph.facebook.com/"+objectid.get(position)+"/likes?access_token="+accesstoken+"&amp;method="+"post");
                like_or_ulike.set(position, "Unlike");
            }
            else
            {
                Log.e("unlike","unlike");
                likes.setText("Like");
                UrltoValue.getValuefromUrl("https://graph.facebook.com/"+objectid.get(position)+"/likes?access_token="+accesstoken+"&amp;method="+"DELETE");
                like_or_ulike.set(position, "Like");
            }
        }
    });
</code></pre>

<p>But it is not changing quickly,eventhough I set the text before itself,I really can't understand how can they able to change that much quickly.</p>

<p>I also don't know how they can able to change the count within fraction of seconds.I got that count from this url
       <a href="https://graph.facebook.com/me/home?access_token=" rel="nofollow">https://graph.facebook.com/me/home?access_token=</a>"+accesstoken</p>

<p>I need to call this to get the count of particular post.I think if I call this it definitely takes much time.</p>

<p>And I also have many more doubts,because I am developing the exactly same app as android facebook app.</p>

<p>please help me in doing this</p>

<p>Thanks in advance.</p>
