Facebook - How to get Page ID?

I need get the Page ID of my page in Facebook, but I'm having troubles when I try to do this.

My page on Facebook is:

https://www.facebook.com/techsempre 

I'm trying to get the Page ID with Graph, as suggested by a lot of articles in Internet, but I'm getting error. I go to this URL:

http://graph.facebook.com/techsempre

But, instead a JSON I get the following error:

{
   "error": {
      "message": "Unsupported get request.",
      "type": "GraphMethodException",
      "code": 100
   }
}

Someone knows a good way to do that or a solution for this error?

Answers


I found the problem!

I go to "Manage Permissions" of my facebook page and I found the problem. In the field "Only show this page to viewers in these countries" someone of my editors wrote "Brazil", so my FanPage was only available for Brazilian - which did not include the Graph.

Thanks for the answers!


Need Your Help

I'm having trouble with inserting a string into an array in C

c string

I'm having trouble catching what I'm doing wrong inserting strings into an array in C. Below is the code. The printf lines show me that I am indeed reading the correct data -- but after I stick e...