FAISAL
FAISAL

Reputation: 459

How to get the facebook page data using facebook's graph api?

I am trying to get the facebook page data using the following link:

https://graph.facebook.com/page/bachicheckkar

And it returns the following:

{
 "error": {
      "message": "Unknown path components: /bachicheckkar",
      "type": "OAuthException",
      "code": 2500
   }
}

What am I doing wrong here? Why doesn't it fetch the page data? I'm sorry but I'm a newbie here.

Upvotes: 0

Views: 3651

Answers (1)

Rahil Arora
Rahil Arora

Reputation: 3674

You are trying to access data in a wrong way! I'll suggest you to go through the Graph API Page Reference since you're a Newbie.

The way it's done is you simply have to make a request using this simple link:

https://graph.facebook.com/bachicheckkar

However, in your case, it says the page doesn't exists! You can try it using your page's Id. It's working fine for other pages though. For example:

https://graph.facebook.com/seewaymore

Upvotes: 4

Related Questions