Facebook like page Count

42 views
Skip to first unread message

ashu

unread,
Nov 29, 2010, 12:42:29 AM11/29/10
to Ruby on Rails: Talk
How can i count a Facebook like page Count in my rails application and
need to save that in my db.

or need to know :fb_like => 'true' Or false

rajeevsharma86

unread,
Nov 29, 2010, 1:04:08 AM11/29/10
to Ruby on Rails: Talk
Or how it can be Done by Ajax OR something else please suggest 
--
Thanks:
Rajeev sharma
+919013155133

tundrax

unread,
Nov 29, 2010, 3:06:42 AM11/29/10
to Ruby on Rails: Talk
"a Facebook like page Count" what do you mean?

rajeevsharma86

unread,
Nov 29, 2010, 3:07:22 AM11/29/10
to rubyonra...@googlegroups.com
fan count of an facebook  page

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Walter Lee Davis

unread,
Nov 29, 2010, 9:57:20 AM11/29/10
to rubyonra...@googlegroups.com

On Nov 29, 2010, at 3:07 AM, rajeevsharma86 wrote:

> fan count of an facebook page

Do you want an actual Facebook Fan count? If so, there's API methods
in Facebook's developer site that you can use directly. Or if you're
building your own "Fan" implementation within your site, I would
imagine you could simply count the clicks of the Fan button in a
separate Fan model, and do a polymorphic association with your various
models. Add a counter cache to each 'Fanned' model for speed.

Walter

>
> On Mon, Nov 29, 2010 at 1:36 PM, tundrax <she...@gmail.com> wrote:
> "a Facebook like page Count" what do you mean?
>
> On Nov 29, 2:42 pm, ashu <rajeevsharm...@gmail.com> wrote:
> > How can i count a Facebook like page Count in my rails application
> and
> > need to save that in my db.
> >
> > or need to know :fb_like => 'true' Or false
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.

> To post to this group, send email to rubyonrails-
> ta...@googlegroups.com.


> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
> .
>
>
>
>
> --
> Thanks:
> Rajeev sharma
> +919013155133
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.

> To post to this group, send email to rubyonrails-
> ta...@googlegroups.com.

Andrew M. Kasper

unread,
Nov 29, 2010, 1:53:41 PM11/29/10
to Ruby on Rails: Talk
On Nov 29, 9:57 am, Walter Lee Davis <wa...@wdstudio.com> wrote:
> On Nov 29, 2010, at 3:07 AM, rajeevsharma86 wrote:
>
> > fan count of an facebook  page

This is in no way a Rails question, but here's a short answer anyway:

1. Get the ID or vanity ID of the page you're interested in. (Ex:
"40796308305" or "cocacola")
2. GET http://graph.facebook.com/<ID>
3. You will receive a JSON object. Within that object, there is a
"fan_count".

For an example, take a look at http://graph.facebook.com/cocacola

If you want more help, you'll need to either find the right mailing
list or figure out how this question relates to Rails.
Reply all
Reply to author
Forward
0 new messages