views:

241

answers:

1

I am trying to upgrade my iPhone app to use the new facebook graph api. One thing I cannot find is how to find out if the current user connected from my app to facebook is a fan of my facebook page - (i.e. in the new paradigm - whether the user likes my page)

In the Rest Api there was a function isFan, but not in the Graph.

I can get all items the user likes and search whether one of them is my page, but certainly there must be an easier way instead of going trough thousands of records each time I must check whether he is a fan, right?

If someone already figured it out how to do that from their new docs, I'll really appreciate if you share it with me.

A: 

Right now the '//likes' graph resource is the only one available. It isn't too bad though.

https://graph.facebook.com/ngerakines/likes?access_token=
Nick Gerakines
Ican Zilb
I agree, the least they could do is allow you to filter the response server-side.
Nick Gerakines
This solution sometimes doesn't work. When Facebook have server problem it returns empty list. Old page.isFan works fine in those cases.
Tomasz Wysocki