Creating Facebook Page programmatically through Open Graph API

You can do this programatically but it’s kind of a hack. If you include the Facebook Comments plugin it will autocreate the page for you. So if you make a general webpage that takes parameters like movieID, you can make a script that does a HTTP GET for every ID that you have available and all the graph objects will be created.

Like this:

<fb:comments href="www.mypage.com?id=<%=request.getParameter("movieid")%>" num_posts="35" width="340" colorscheme="light"></fb:comments>

Leave a Comment