开发者

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}

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜