Check facebook object type
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 开发者_Python百科the python api and appengine.
Thanks!
You could hit up the graph api with the id and see what you get back.
https://graph.facebook.com/{OBJECTID}
精彩评论