Retrieve the page using the Graph API (using cURL
as a system call, HTTPClient
with Rails or $.getJSON()
using jQuery, for example) using http://graph.facebook.com/PAGE_ID . Unpublished pages return false
, and published pages return an array of JSON information.
This does not require access or permission tokens.
Using cURL (command line)
$ curl http://graph.facebook.com/UNPUBLISHED_PAGE_ID false $ curl http://graph.facebook.com/PAGE_ID {"id":"1234","name":"Test Page","picture":....
Using HTTPClient (with Rails)
HTTPClient.get("http://graph.facebook.com/UNPUBLISHED_PAGE_ID").body # false HTTPClient.get("http://graph.facebook.com/PAGE_ID").body # "{\"id\":\"1234\",\"name\":\"Test Page\",\"picture\"....
Using $ .getJSON () (jQuery)
$.getJSON("http://graph.facebook.com/UNPUBLISHED_PAGE_ID", function (data) { console.log(data);
Jรบlio santos
source share