views:

24

answers:

1

Hi there.

In my app, I have a form where user should submit a facebook page URL. How to check that it's correct? Presently, I'm just checking that it begins with 'http://www.facebook.com' How can I check that it is a page (where you can become a fan) and not a profile, event or whatever?

I'm using the python api and appengine.

Thanks!

A: 

You could hit up the graph api with the id and see what you get back.

https://graph.facebook.com/{OBJECTID}

UltimateBrent