开发者

Check facebook object type

开发者 https://www.devze.com 2023-01-21 10:14 出处:网络
In my app, I have a form where user should submit a facebook page URL. How to check that it\'s correct?

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

精彩评论

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