We have a new project, building a fully featured facebook App on an embedded device (using Java) as a part of a new home automation system.
All is going well however we have hit a road block when it comes to adding friends. Our interface is a complete wrapper over the facebook UI (i.e. no browser). The only way I know how to add a friend is by sending a request to `http://www.facebook.com/addfriend.php?id=XXXX`
From here, the user is prompted to add a friend. The question is how should be go about wrapping up this request (i.e. mirroring it) so the user needs to click accept or deny and then forward this request off to Facebook?
AFAIK there is no API for adding friends... How can we go about mimicking this form and sending the request without having to implement a full browser? Space is also an issue so some clunky framework to try an emulate a browser window popup isnt going to work for us.
Any ideas and tips would be greatly appreciated.
以上就是Facebook API - Adding a friend via embedded device wrapper的详细内容，更多请关注web前端其它相关文章！