Facebook like page Count

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

Or how it can be Done by Ajax OR something else please suggest

On Mon, Nov 29, 2010 at 11:12 AM, ashu [email protected] 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


Thanks:
Rajeev sharma
+919013155133

“a Facebook like page Count” what do you mean?

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

fan count of an facebook page

On Mon, Nov 29, 2010 at 1:36 PM, tundrax [email protected] wrote:

“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to

[email protected][email protected]

.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Thanks:
Rajeev sharma
+919013155133

On Nov 29, 9:57am, Walter Lee D. [email protected] 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/
  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.